diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AutoSDKHttpResponse.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AutoSDKHttpResponse.g.cs
new file mode 100644
index 0000000..4f72a14
--- /dev/null
+++ b/src/libs/ResembleAI/Generated/ResembleAI.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,121 @@
+
+#nullable enable
+
+namespace ResembleAI
+{
+ ///
+ /// Represents a successful HTTP response with status code and headers.
+ ///
+ public partial class AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri)
+ {
+ StatusCode = statusCode;
+ Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
+ RequestUri = requestUri;
+ }
+
+ ///
+ /// Gets the HTTP status code.
+ ///
+ public global::System.Net.HttpStatusCode StatusCode { get; }
+ ///
+ /// Gets the response headers.
+ ///
+ public global::System.Collections.Generic.Dictionary> Headers { get; }
+ ///
+ /// Gets the final request URI associated with the response.
+ ///
+ public global::System.Uri? RequestUri { get; }
+
+ internal static global::System.Collections.Generic.Dictionary> CreateHeaders(
+ global::System.Net.Http.HttpResponseMessage response)
+ {
+ response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+
+ var headers = global::System.Linq.Enumerable.ToDictionary(
+ response.Headers,
+ static header => header.Key,
+ static header => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.ToArray(header.Value),
+ global::System.StringComparer.OrdinalIgnoreCase);
+
+ if (response.Content?.Headers == null)
+ {
+ return headers;
+ }
+
+ foreach (var header in response.Content.Headers)
+ {
+ if (headers.TryGetValue(header.Key, out var existingValues))
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(
+ global::System.Linq.Enumerable.Concat(existingValues, header.Value));
+ }
+ else
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
+ }
+ }
+
+ return headers;
+ }
+ }
+
+ ///
+ /// Represents a successful HTTP response with status code, headers, and body.
+ ///
+ public partial class AutoSDKHttpResponse : AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ T body)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null,
+ body: body)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri,
+ T body)
+ : base(statusCode, headers, requestUri)
+ {
+ Body = body;
+ }
+
+ ///
+ /// Gets the response body.
+ ///
+ public T Body { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetAccount.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetAccount.g.cs
index 6f3257d..5e0d4ad 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetAccount.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetAccount.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageAccountClient
global::System.Threading.Tasks.Task GetAccountAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get account
+ /// Get account information
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAccountAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetBillingUsage.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetBillingUsage.g.cs
index a54bcd0..104130d 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetBillingUsage.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetBillingUsage.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageAccountClient
global::System.Threading.Tasks.Task GetBillingUsageAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get billing usage
+ /// Get billing and usage information
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetBillingUsageAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeam.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeam.g.cs
index f11cedd..e09af39 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeam.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeam.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAccountClient
global::System.Guid teamUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get team
+ /// Get specific team information
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTeamAsResponseAsync(
+ global::System.Guid teamUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeams.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeams.g.cs
index 3d4630c..a0d6ac0 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeams.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAccountClient.GetTeams.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageAccountClient
global::System.Threading.Tasks.Task GetTeamsAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get teams
+ /// Get team information
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTeamsAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs
index 83e4961..047347d 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
/// Attaches an existing knowledge item to an agent
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> AttachKnowledgeItemToAgentAsResponseAsync(
+ global::System.Guid agentUuid,
+
+ global::ResembleAI.AttachKnowledgeItemToAgentRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Attach knowledge item to agent
+ /// Attaches an existing knowledge item to an agent
+ ///
+ ///
///
/// The UUID of the knowledge item to attach
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs
index 6daa90a..e61680f 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
/// Create knowledge item
/// Creates a new knowledge item and queues it for ingestion processing
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateKnowledgeItemAsResponseAsync(
+
+ global::ResembleAI.CreateKnowledgeItemRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create knowledge item
+ /// Creates a new knowledge item and queues it for ingestion processing
+ ///
///
/// Title of the knowledge item
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs
index 572456a..eccdac0 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete knowledge item
+ /// Deletes a knowledge item and cleans up associated data
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteKnowledgeItemAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs
index 896544f..9ae18fc 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
global::System.Guid knowledgeItemUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Detach knowledge item from agent
+ /// Removes a knowledge item from an agent
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DetachKnowledgeItemFromAgentAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid knowledgeItemUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs
index 39c7b52..9b6e4c8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get knowledge item
+ /// Retrieves a single knowledge item with detailed information including attached agents
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetKnowledgeItemAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs
index 521a6ee..bd295b3 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
global::System.Guid agentUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List agent's knowledge items
+ /// Lists all knowledge items attached to a specific agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAgentKnowledgeItemsAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs
index 64dc93c..38066a4 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs
@@ -26,5 +26,27 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
int? perPage = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List knowledge items
+ /// List all knowledge items belonging to the authenticated user's team
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 20
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListKnowledgeItemsAsResponseAsync(
+ global::ResembleAI.KnowledgeItemsGetParametersStatus? status = default,
+ global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType = default,
+ int? page = default,
+ int? perPage = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs
index d25aa1e..590b2d7 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentKnowledgeBaseClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Re-ingest knowledge item
+ /// Re-runs the ingestion pipeline for an existing knowledge item
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ReingestKnowledgeItemAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs
index 64a4955..7c30383 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageAgentPhoneNumbersClient
/// Create agent phone number
/// Create a new agent phone number
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreatePhoneNumberAsResponseAsync(
+
+ global::ResembleAI.CreatePhoneNumberRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create agent phone number
+ /// Create a new agent phone number
+ ///
///
/// E.164 formatted phone number
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs
index e85b81b..cdde93c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentPhoneNumbersClient
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete agent phone number
+ /// Delete an agent phone number
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeletePhoneNumberAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs
index 1375a85..df3ff95 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentPhoneNumbersClient
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Force delete agent phone number
+ /// Force delete an agent phone number even if linked to agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ForceDeletePhoneNumberAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs
index feedd52..49b4418 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentPhoneNumbersClient
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get agent phone number
+ /// Get agent phone number details
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetPhoneNumberAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs
index aff1433..fdc53c8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageAgentPhoneNumbersClient
global::System.Threading.Tasks.Task ListPhoneNumbersAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List agent phone numbers
+ /// List all agent phone numbers
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListPhoneNumbersAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.CreateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.CreateAgentTool.g.cs
index 8b6970a..d02bf06 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.CreateAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.CreateAgentTool.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageAgentToolsClient
/// Create a new tool for an agent
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+
+ global::ResembleAI.CreateAgentToolRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create agent tool
+ /// Create a new tool for an agent
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.DeleteAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.DeleteAgentTool.g.cs
index 4a2e53b..7677c7b 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.DeleteAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.DeleteAgentTool.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageAgentToolsClient
global::System.Guid toolUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete agent tool
+ /// Delete a tool
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid toolUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.GetAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.GetAgentTool.g.cs
index f6fb38c..8e6ef26 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.GetAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.GetAgentTool.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageAgentToolsClient
global::System.Guid toolUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get agent tool
+ /// Get details of a specific tool
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid toolUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.ListAgentTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.ListAgentTools.g.cs
index 7d5f53c..03e108f 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.ListAgentTools.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.ListAgentTools.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentToolsClient
global::System.Guid agentUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List agent tools
+ /// List all tools for an agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAgentToolsAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.UpdateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.UpdateAgentTool.g.cs
index 0e42da2..7af730a 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.UpdateAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentToolsClient.UpdateAgentTool.g.cs
@@ -27,6 +27,23 @@ public partial interface ISubpackageAgentToolsClient
///
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid toolUuid,
+
+ global::ResembleAI.UpdateAgentToolRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update agent tool
+ /// Update an existing tool
+ ///
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs
index 8719b11..ffcb4b8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageAgentWebhooksClient
/// Create a new webhook for an agent
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+
+ global::ResembleAI.CreateAgentWebhookRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create agent webhook
+ /// Create a new webhook for an agent
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs
index b30548a..8cce382 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageAgentWebhooksClient
global::System.Guid webhookUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete agent webhook
+ /// Delete a webhook
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid webhookUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.GetAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.GetAgentWebhook.g.cs
index 46f925d..1d5e9f8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.GetAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.GetAgentWebhook.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageAgentWebhooksClient
global::System.Guid webhookUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get agent webhook
+ /// Get details of a specific webhook
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid webhookUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs
index 85b8285..262db8b 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentWebhooksClient
global::System.Guid agentUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List agent webhooks
+ /// List all webhooks for an agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAgentWebhooksAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.UpdateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.UpdateAgentWebhook.g.cs
index cee0fd7..5248bb4 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.UpdateAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentWebhooksClient.UpdateAgentWebhook.g.cs
@@ -27,6 +27,23 @@ public partial interface ISubpackageAgentWebhooksClient
///
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid webhookUuid,
+
+ global::ResembleAI.UpdateAgentWebhookRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update agent webhook
+ /// Update an existing webhook
+ ///
+ ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.CreateAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.CreateAgent.g.cs
index fc6602e..89f3b07 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.CreateAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.CreateAgent.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageAgentsClient
/// Create agent
/// Create a new voice agent
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAgentAsResponseAsync(
+
+ global::ResembleAI.CreateAgentRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create agent
+ /// Create a new voice agent
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DeleteAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DeleteAgent.g.cs
index 923264a..823687b 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DeleteAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DeleteAgent.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAgentsClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete agent
+ /// Delete an agent and all its configurations
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteAgentAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DispatchAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DispatchAgent.g.cs
index 03f06c2..11f636e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DispatchAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.DispatchAgent.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageAgentsClient
/// Make an outbound call with an agent
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DispatchAgentAsResponseAsync(
+ global::System.Guid uuid,
+
+ global::ResembleAI.DispatchAgentRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Dispatch agent
+ /// Make an outbound call with an agent
+ ///
+ ///
///
/// Destination phone number
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgent.g.cs
index a48721b..7b75130 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgent.g.cs
@@ -20,5 +20,21 @@ public partial interface ISubpackageAgentsClient
bool? advanced = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get agent
+ /// Retrieve a specific agent's details
+ ///
+ ///
+ ///
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAgentAsResponseAsync(
+ global::System.Guid uuid,
+ bool? advanced = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgentCapabilities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgentCapabilities.g.cs
index 71d8b7a..632a8b2 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgentCapabilities.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetAgentCapabilities.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageAgentsClient
global::System.Threading.Tasks.Task GetAgentCapabilitiesAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get capabilities
+ /// List supported ASR and LLM providers and models
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAgentCapabilitiesAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetSystemTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetSystemTools.g.cs
index 66ba118..b7d0569 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetSystemTools.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.GetSystemTools.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageAgentsClient
global::System.Threading.Tasks.Task GetSystemToolsAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get system tools
+ /// List available system tools
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetSystemToolsAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.ListAgents.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.ListAgents.g.cs
index 8984a8d..1807c1b 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.ListAgents.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.ListAgents.g.cs
@@ -20,5 +20,21 @@ public partial interface ISubpackageAgentsClient
bool? advanced = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List agents
+ /// Retrieve all agents for the authenticated team
+ ///
+ ///
+ ///
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAgentsAsResponseAsync(
+ string? phoneNumber = default,
+ bool? advanced = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.UpdateAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.UpdateAgent.g.cs
index c2de1d3..2bfd3d5 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.UpdateAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAgentsClient.UpdateAgent.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageAgentsClient
/// Update an existing agent's configuration
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateAgentAsResponseAsync(
+ global::System.Guid uuid,
+
+ global::ResembleAI.UpdateAgentRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update agent
+ /// Update an existing agent's configuration
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.CreateAudioEdit.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.CreateAudioEdit.g.cs
index 5d44e1a..aac4e91 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.CreateAudioEdit.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.CreateAudioEdit.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageAudioEditClient
/// Create audio edit
/// Edit audio segments using voice synthesis
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAudioEditAsResponseAsync(
+
+ global::ResembleAI.CreateAudioEditRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create audio edit
+ /// Edit audio segments using voice synthesis
+ ///
///
/// WAV, MP3, M4A, or WMA file (< 20 seconds)
///
@@ -47,5 +60,66 @@ public partial interface ISubpackageAudioEditClient
string voiceUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create audio edit
+ /// Edit audio segments using voice synthesis
+ ///
+ ///
+ /// WAV, MP3, M4A, or WMA file (< 20 seconds)
+ ///
+ ///
+ /// WAV, MP3, M4A, or WMA file (< 20 seconds)
+ ///
+ ///
+ /// Accurate transcript of the uploaded audio
+ ///
+ ///
+ /// Desired replacement text
+ ///
+ ///
+ /// Voice used to render the edited segment
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateAudioEditAsync(
+ global::System.IO.Stream inputAudio,
+ string inputAudioname,
+ string originalTranscript,
+ string targetTranscript,
+ string voiceUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create audio edit
+ /// Edit audio segments using voice synthesis
+ ///
+ ///
+ /// WAV, MP3, M4A, or WMA file (< 20 seconds)
+ ///
+ ///
+ /// WAV, MP3, M4A, or WMA file (< 20 seconds)
+ ///
+ ///
+ /// Accurate transcript of the uploaded audio
+ ///
+ ///
+ /// Desired replacement text
+ ///
+ ///
+ /// Voice used to render the edited segment
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAudioEditAsResponseAsync(
+ global::System.IO.Stream inputAudio,
+ string inputAudioname,
+ string originalTranscript,
+ string targetTranscript,
+ string voiceUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.GetAudioEdit.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.GetAudioEdit.g.cs
index b1a1226..441dfbb 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.GetAudioEdit.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.GetAudioEdit.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAudioEditClient
string audioEditUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get audio edit
+ /// Get status and result of an audio edit
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAudioEditAsResponseAsync(
+ string audioEditUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.ListAudioEdits.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.ListAudioEdits.g.cs
index 5dc1e44..a58df32 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.ListAudioEdits.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEditClient.ListAudioEdits.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageAudioEditClient
int page,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List audio edits
+ /// Retrieve paginated list of audio edits
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAudioEditsAsResponseAsync(
+ int page,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.CreateAudioEnhancement.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.CreateAudioEnhancement.g.cs
index baccf5f..d452ab8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.CreateAudioEnhancement.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.CreateAudioEnhancement.g.cs
@@ -23,6 +23,20 @@ public partial interface ISubpackageAudioEnhancementClient
/// Submit an audio file for enhancement. Processing happens asynchronously in the background.
/// The API defaults to the v2 enhancement engine. The v1 engine is legacy and will be sunset in a future release.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAudioEnhancementAsResponseAsync(
+
+ global::ResembleAI.CreateAudioEnhancementRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create audio enhancement
+ /// Submit an audio file for enhancement. Processing happens asynchronously in the background.
+ /// The API defaults to the v2 enhancement engine. The v1 engine is legacy and will be sunset in a future release.
+ ///
///
/// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB.
///
@@ -71,5 +85,112 @@ public partial interface ISubpackageAudioEnhancementClient
int? loudnessPeakLimit = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create audio enhancement
+ /// Submit an audio file for enhancement. Processing happens asynchronously in the background.
+ /// The API defaults to the v2 enhancement engine. The v1 engine is legacy and will be sunset in a future release.
+ ///
+ ///
+ /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB.
+ ///
+ ///
+ /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB.
+ ///
+ ///
+ /// Enhancement engine to use. Default is v2.
+ /// Default Value: v2
+ ///
+ ///
+ /// Remove background noise. Engine v2 only.
+ /// Default Value: true
+ ///
+ ///
+ /// Normalize audio levels. Engine v2 only.
+ /// Default Value: true
+ ///
+ ///
+ /// Apply studio-quality enhancement. Engine v2 only.
+ /// Default Value: true
+ ///
+ ///
+ /// Enhancement intensity (0.0 to 1.0). Engine v1 only (legacy).
+ ///
+ ///
+ /// Target loudness in LUFS. Engine v1 only (legacy).
+ /// Default Value: -14
+ ///
+ ///
+ /// Peak limit in dBTP. Engine v1 only (legacy).
+ /// Default Value: -1
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateAudioEnhancementAsync(
+ global::System.IO.Stream audioFile,
+ string audioFilename,
+ global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine? enhancementEngine = default,
+ bool? removeNoise = default,
+ bool? normalize = default,
+ bool? studioSound = default,
+ double? enhancementLevel = default,
+ int? loudnessTargetLevel = default,
+ int? loudnessPeakLimit = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create audio enhancement
+ /// Submit an audio file for enhancement. Processing happens asynchronously in the background.
+ /// The API defaults to the v2 enhancement engine. The v1 engine is legacy and will be sunset in a future release.
+ ///
+ ///
+ /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB.
+ ///
+ ///
+ /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB.
+ ///
+ ///
+ /// Enhancement engine to use. Default is v2.
+ /// Default Value: v2
+ ///
+ ///
+ /// Remove background noise. Engine v2 only.
+ /// Default Value: true
+ ///
+ ///
+ /// Normalize audio levels. Engine v2 only.
+ /// Default Value: true
+ ///
+ ///
+ /// Apply studio-quality enhancement. Engine v2 only.
+ /// Default Value: true
+ ///
+ ///
+ /// Enhancement intensity (0.0 to 1.0). Engine v1 only (legacy).
+ ///
+ ///
+ /// Target loudness in LUFS. Engine v1 only (legacy).
+ /// Default Value: -14
+ ///
+ ///
+ /// Peak limit in dBTP. Engine v1 only (legacy).
+ /// Default Value: -1
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAudioEnhancementAsResponseAsync(
+ global::System.IO.Stream audioFile,
+ string audioFilename,
+ global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine? enhancementEngine = default,
+ bool? removeNoise = default,
+ bool? normalize = default,
+ bool? studioSound = default,
+ double? enhancementLevel = default,
+ int? loudnessTargetLevel = default,
+ int? loudnessPeakLimit = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.GetAudioEnhancement.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.GetAudioEnhancement.g.cs
index 37fe080..5212b13 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.GetAudioEnhancement.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.GetAudioEnhancement.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAudioEnhancementClient
string enhancementUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get audio enhancement
+ /// Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAudioEnhancementAsResponseAsync(
+ string enhancementUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.ListAudioEnhancements.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.ListAudioEnhancements.g.cs
index 1423862..57deeb9 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.ListAudioEnhancements.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioEnhancementClient.ListAudioEnhancements.g.cs
@@ -20,5 +20,21 @@ public partial interface ISubpackageAudioEnhancementClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List audio enhancements
+ /// Returns a paginated list of all audio enhancements for your team, ordered by most recent first.
+ ///
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAudioEnhancementsAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.GetAudioSourceTracing.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.GetAudioSourceTracing.g.cs
index 4f25aa5..a7b32ad 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.GetAudioSourceTracing.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.GetAudioSourceTracing.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageAudioSourceTracingClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get audio source tracing
+ /// Retrieve a single source tracing report by its UUID
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAudioSourceTracingAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.ListAudioSourceTracings.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.ListAudioSourceTracings.g.cs
index 5f7f240..9d71179 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.ListAudioSourceTracings.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageAudioSourceTracingClient.ListAudioSourceTracings.g.cs
@@ -20,5 +20,21 @@ public partial interface ISubpackageAudioSourceTracingClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List audio source tracings
+ /// Retrieve a paginated list of all source tracing reports for the authenticated user's team
+ ///
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListAudioSourceTracingsAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.DeleteClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.DeleteClip.g.cs
index d9a8b64..127cfb4 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.DeleteClip.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.DeleteClip.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageClipsClient
string clipUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete clip
+ /// Delete a clip
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteClipAsResponseAsync(
+ string projectUuid,
+ string clipUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.GetClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.GetClip.g.cs
index 25ea066..d14919e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.GetClip.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.GetClip.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageClipsClient
string clipUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get clip
+ /// Get clip details
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetClipAsResponseAsync(
+ string projectUuid,
+ string clipUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.ListClips.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.ListClips.g.cs
index d9d7cbf..d3e87c6 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.ListClips.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.ListClips.g.cs
@@ -24,5 +24,25 @@ public partial interface ISubpackageClipsClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List clips
+ /// List clips in a project
+ ///
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListClipsAsResponseAsync(
+ string projectUuid,
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.UpdateClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.UpdateClip.g.cs
index ea27e5f..926ddcf 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.UpdateClip.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageClipsClient.UpdateClip.g.cs
@@ -27,6 +27,23 @@ public partial interface ISubpackageClipsClient
///
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateClipAsResponseAsync(
+ string projectUuid,
+ string clipUuid,
+
+ global::ResembleAI.UpdateClipRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update clip
+ /// Update a clip
+ ///
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.BulkCreatePronunciations.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.BulkCreatePronunciations.g.cs
index f36a0d5..c80fe7d 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.BulkCreatePronunciations.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.BulkCreatePronunciations.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageCustomPronunciationsClient
/// Bulk create pronunciations from ZIP
/// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BulkCreatePronunciationsAsResponseAsync(
+
+ global::ResembleAI.BulkCreatePronunciationsRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Bulk create pronunciations from ZIP
+ /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.
+ ///
///
/// ZIP file containing audio files. Max 50 files, max 100MB total.
///
@@ -35,5 +48,42 @@ public partial interface ISubpackageCustomPronunciationsClient
string zipname,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Bulk create pronunciations from ZIP
+ /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.
+ ///
+ ///
+ /// ZIP file containing audio files. Max 50 files, max 100MB total.
+ ///
+ ///
+ /// ZIP file containing audio files. Max 50 files, max 100MB total.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task BulkCreatePronunciationsAsync(
+ global::System.IO.Stream zip,
+ string zipname,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Bulk create pronunciations from ZIP
+ /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.
+ ///
+ ///
+ /// ZIP file containing audio files. Max 50 files, max 100MB total.
+ ///
+ ///
+ /// ZIP file containing audio files. Max 50 files, max 100MB total.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BulkCreatePronunciationsAsResponseAsync(
+ global::System.IO.Stream zip,
+ string zipname,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.CreatePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.CreatePronunciation.g.cs
index 983041f..7334c6c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.CreatePronunciation.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.CreatePronunciation.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageCustomPronunciationsClient
/// Create custom pronunciation
/// Upload a single pronunciation with a reference audio file.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreatePronunciationAsResponseAsync(
+
+ global::ResembleAI.CreatePronunciationRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create custom pronunciation
+ /// Upload a single pronunciation with a reference audio file.
+ ///
///
/// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only.
///
@@ -39,5 +52,50 @@ public partial interface ISubpackageCustomPronunciationsClient
string audioname,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create custom pronunciation
+ /// Upload a single pronunciation with a reference audio file.
+ ///
+ ///
+ /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only.
+ ///
+ ///
+ /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB.
+ ///
+ ///
+ /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreatePronunciationAsync(
+ string word,
+ global::System.IO.Stream audio,
+ string audioname,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create custom pronunciation
+ /// Upload a single pronunciation with a reference audio file.
+ ///
+ ///
+ /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only.
+ ///
+ ///
+ /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB.
+ ///
+ ///
+ /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreatePronunciationAsResponseAsync(
+ string word,
+ global::System.IO.Stream audio,
+ string audioname,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.DeletePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.DeletePronunciation.g.cs
index a8e92d7..e60e7be 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.DeletePronunciation.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.DeletePronunciation.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageCustomPronunciationsClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete custom pronunciation
+ /// Permanently remove a custom pronunciation. Takes effect immediately.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeletePronunciationAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.GetPronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.GetPronunciation.g.cs
index e6608a4..0e9f43d 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.GetPronunciation.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.GetPronunciation.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageCustomPronunciationsClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get custom pronunciation
+ /// Retrieve a single custom pronunciation by UUID
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetPronunciationAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.ListPronunciations.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.ListPronunciations.g.cs
index 978df58..9fe8a63 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.ListPronunciations.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.ListPronunciations.g.cs
@@ -22,5 +22,23 @@ public partial interface ISubpackageCustomPronunciationsClient
bool? active = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List custom pronunciations
+ /// Retrieve all custom pronunciations for your team, with optional filters.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListPronunciationsAsResponseAsync(
+ string? language = default,
+ string? domain = default,
+ global::ResembleAI.PronunciationsGetParametersStatus? status = default,
+ bool? active = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.UpdatePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.UpdatePronunciation.g.cs
index 7a6a040..361b9b9 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.UpdatePronunciation.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageCustomPronunciationsClient.UpdatePronunciation.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageCustomPronunciationsClient
/// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis.
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdatePronunciationAsResponseAsync(
+ global::System.Guid uuid,
+
+ global::ResembleAI.UpdatePronunciationRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Toggle pronunciation active status
+ /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis.
+ ///
+ ///
///
/// Set to false to disable, true to re-enable
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetectBatch.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetectBatch.g.cs
index 4adf0f6..dbc51e3 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetectBatch.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetectBatch.g.cs
@@ -51,6 +51,34 @@ public partial interface ISubpackageDeepfakeDetectionClient
/// - All-or-nothing billing: if the team's wallet cannot cover the projected cost
/// for every file, the request is rejected with 402 and no detects are created.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDetectBatchAsResponseAsync(
+
+ global::ResembleAI.CreateDetectBatchRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a batch deepfake detection job
+ /// Submit up to 50 files in a single request and process them as a single logical
+ /// group. Returns HTTP 202 with a batch UUID; each file is analyzed in the
+ /// background and individual results are available via `GET /detect/{uuid}` for
+ /// each entry in `detect_uuids`.
+ /// Two intake methods:
+ /// - **Multiple media files** — repeated `files[]` form fields.
+ /// - **Single zip archive** — a single `file` form field whose value is a `.zip`
+ /// containing the media files. Non-media entries are skipped.
+ /// Provide one of `files[]` or `file=<...>.zip` per request. Synchronous mode
+ /// (`Prefer: wait`) is not supported and returns 400 if sent.
+ /// Constraints:
+ /// - Maximum 50 files per batch.
+ /// - Maximum 500 MB total upload size across all files.
+ /// - Allowed file types match `POST /detect`'s direct-upload allowlist.
+ /// - All-or-nothing billing: if the team's wallet cannot cover the projected cost
+ /// for every file, the request is rejected with 402 and no detects are created.
+ ///
///
/// One or more media files. Repeat the `files[]` field for each file. Mutually exclusive with `file`.
///
@@ -118,5 +146,186 @@ public partial interface ISubpackageDeepfakeDetectionClient
bool? zeroRetentionMode = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create a batch deepfake detection job
+ /// Submit up to 50 files in a single request and process them as a single logical
+ /// group. Returns HTTP 202 with a batch UUID; each file is analyzed in the
+ /// background and individual results are available via `GET /detect/{uuid}` for
+ /// each entry in `detect_uuids`.
+ /// Two intake methods:
+ /// - **Multiple media files** — repeated `files[]` form fields.
+ /// - **Single zip archive** — a single `file` form field whose value is a `.zip`
+ /// containing the media files. Non-media entries are skipped.
+ /// Provide one of `files[]` or `file=<...>.zip` per request. Synchronous mode
+ /// (`Prefer: wait`) is not supported and returns 400 if sent.
+ /// Constraints:
+ /// - Maximum 50 files per batch.
+ /// - Maximum 500 MB total upload size across all files.
+ /// - Allowed file types match `POST /detect`'s direct-upload allowlist.
+ /// - All-or-nothing billing: if the team's wallet cannot cover the projected cost
+ /// for every file, the request is rejected with 402 and no detects are created.
+ ///
+ ///
+ /// One or more media files. Repeat the `files[]` field for each file. Mutually exclusive with `file`.
+ ///
+ ///
+ /// Optional file names to use for the multipart 'files[]' file parts.
+ ///
+ ///
+ /// A single `.zip` archive containing media files. Mutually exclusive with `files[]`.
+ ///
+ ///
+ /// A single `.zip` archive containing media files. Mutually exclusive with `files[]`.
+ ///
+ ///
+ /// POST destination invoked when the batch reaches a terminal state.
+ ///
+ ///
+ /// Run multimodal intelligence on every file in the batch.
+ /// Default Value: false
+ ///
+ ///
+ /// Run identity search against the team's saved identities (audio/video only).
+ /// Default Value: false
+ ///
+ ///
+ /// Generate visualization artifacts.
+ /// Default Value: true
+ ///
+ ///
+ /// Enable audio source tracing on each audio file.
+ /// Default Value: false
+ ///
+ ///
+ /// Window size in seconds (audio/video).
+ ///
+ ///
+ /// Start of segment to analyze (seconds).
+ ///
+ ///
+ /// End of segment to analyze (seconds).
+ ///
+ ///
+ /// Cap processed video duration.
+ ///
+ ///
+ /// Use LLM-assisted video analysis.
+ ///
+ ///
+ /// Enable Zero Retention Mode for every file in the batch.
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateDetectBatchAsync(
+ global::System.Collections.Generic.IReadOnlyList? files = default,
+ global::System.Collections.Generic.IReadOnlyList? filesFileNames = default,
+ global::System.IO.Stream? file = default,
+ string? filename = default,
+ string? callbackUrl = default,
+ bool? intelligence = default,
+ bool? searchIdentity = default,
+ bool? visualize = default,
+ bool? audioSourceTracingEnabled = default,
+ int? frameLength = default,
+ double? startRegion = default,
+ double? endRegion = default,
+ double? maxVideoSecs = default,
+ bool? useLlm = default,
+ bool? zeroRetentionMode = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a batch deepfake detection job
+ /// Submit up to 50 files in a single request and process them as a single logical
+ /// group. Returns HTTP 202 with a batch UUID; each file is analyzed in the
+ /// background and individual results are available via `GET /detect/{uuid}` for
+ /// each entry in `detect_uuids`.
+ /// Two intake methods:
+ /// - **Multiple media files** — repeated `files[]` form fields.
+ /// - **Single zip archive** — a single `file` form field whose value is a `.zip`
+ /// containing the media files. Non-media entries are skipped.
+ /// Provide one of `files[]` or `file=<...>.zip` per request. Synchronous mode
+ /// (`Prefer: wait`) is not supported and returns 400 if sent.
+ /// Constraints:
+ /// - Maximum 50 files per batch.
+ /// - Maximum 500 MB total upload size across all files.
+ /// - Allowed file types match `POST /detect`'s direct-upload allowlist.
+ /// - All-or-nothing billing: if the team's wallet cannot cover the projected cost
+ /// for every file, the request is rejected with 402 and no detects are created.
+ ///
+ ///
+ /// One or more media files. Repeat the `files[]` field for each file. Mutually exclusive with `file`.
+ ///
+ ///
+ /// Optional file names to use for the multipart 'files[]' file parts.
+ ///
+ ///
+ /// A single `.zip` archive containing media files. Mutually exclusive with `files[]`.
+ ///
+ ///
+ /// A single `.zip` archive containing media files. Mutually exclusive with `files[]`.
+ ///
+ ///
+ /// POST destination invoked when the batch reaches a terminal state.
+ ///
+ ///
+ /// Run multimodal intelligence on every file in the batch.
+ /// Default Value: false
+ ///
+ ///
+ /// Run identity search against the team's saved identities (audio/video only).
+ /// Default Value: false
+ ///
+ ///
+ /// Generate visualization artifacts.
+ /// Default Value: true
+ ///
+ ///
+ /// Enable audio source tracing on each audio file.
+ /// Default Value: false
+ ///
+ ///
+ /// Window size in seconds (audio/video).
+ ///
+ ///
+ /// Start of segment to analyze (seconds).
+ ///
+ ///
+ /// End of segment to analyze (seconds).
+ ///
+ ///
+ /// Cap processed video duration.
+ ///
+ ///
+ /// Use LLM-assisted video analysis.
+ ///
+ ///
+ /// Enable Zero Retention Mode for every file in the batch.
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDetectBatchAsResponseAsync(
+ global::System.Collections.Generic.IReadOnlyList? files = default,
+ global::System.Collections.Generic.IReadOnlyList? filesFileNames = default,
+ global::System.IO.Stream? file = default,
+ string? filename = default,
+ string? callbackUrl = default,
+ bool? intelligence = default,
+ bool? searchIdentity = default,
+ bool? visualize = default,
+ bool? audioSourceTracingEnabled = default,
+ int? frameLength = default,
+ double? startRegion = default,
+ double? endRegion = default,
+ double? maxVideoSecs = default,
+ bool? useLlm = default,
+ bool? zeroRetentionMode = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetection.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetection.g.cs
index a862deb..94fcb55 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetection.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.CreateDetection.g.cs
@@ -31,6 +31,24 @@ public partial interface ISubpackageDeepfakeDetectionClient
/// - **Secure upload token** — `application/json` with a `media_token` field obtained from `POST /secure_uploads`.
/// Exactly one of `file`, `url`, or `media_token` must be provided per request.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDetectionAsResponseAsync(
+
+ global::ResembleAI.CreateDetectionRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create deepfake detection
+ /// Analyze audio, image, and video for deepfake detection.
+ /// Supply media via one of three intake methods:
+ /// - **Direct file upload** — `multipart/form-data` with the file attached as `file`. Files must be 150 MB or smaller and use one of the supported audio/video/image extensions. For larger files, use the secure upload flow.
+ /// - **Public URL** — `application/json` with a `url` field. The API fetches the URL itself.
+ /// - **Secure upload token** — `application/json` with a `media_token` field obtained from `POST /secure_uploads`.
+ /// Exactly one of `file`, `url`, or `media_token` must be provided per request.
+ ///
///
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
///
@@ -99,5 +117,160 @@ public partial interface ISubpackageDeepfakeDetectionClient
bool? zeroRetentionMode = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create deepfake detection
+ /// Analyze audio, image, and video for deepfake detection.
+ /// Supply media via one of three intake methods:
+ /// - **Direct file upload** — `multipart/form-data` with the file attached as `file`. Files must be 150 MB or smaller and use one of the supported audio/video/image extensions. For larger files, use the secure upload flow.
+ /// - **Public URL** — `application/json` with a `url` field. The API fetches the URL itself.
+ /// - **Secure upload token** — `application/json` with a `media_token` field obtained from `POST /secure_uploads`.
+ /// Exactly one of `file`, `url`, or `media_token` must be provided per request.
+ ///
+ ///
+ /// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
+ ///
+ ///
+ /// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
+ ///
+ ///
+ /// POST destination when analysis completes
+ ///
+ ///
+ /// Generate visualization artifacts
+ ///
+ ///
+ /// Window size in seconds (audio/video)
+ /// Default Value: 2
+ ///
+ ///
+ /// Start of segment to analyze (seconds)
+ ///
+ ///
+ /// End of segment to analyze (seconds)
+ ///
+ ///
+ /// Cap processed duration
+ ///
+ ///
+ /// Use talking_head for face-swaps
+ ///
+ ///
+ /// Run multimodal intelligence analysis on the media
+ /// Default Value: false
+ ///
+ ///
+ /// Enable audio source tracing to identify synthetic audio origin
+ /// Default Value: false
+ ///
+ ///
+ /// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.
+ /// Default Value: false
+ ///
+ ///
+ /// Enable out-of-distribution detection
+ /// Default Value: false
+ ///
+ ///
+ /// Enable Zero Retention Mode to automatically delete submitted media after detection completes.
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateDetectionAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? callbackUrl = default,
+ bool? visualize = default,
+ int? frameLength = default,
+ double? startRegion = default,
+ double? endRegion = default,
+ double? maxVideoSecs = default,
+ global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModelTypes? modelTypes = default,
+ bool? intelligence = default,
+ bool? audioSourceTracing = default,
+ bool? useReverseSearch = default,
+ bool? useOodDetector = default,
+ bool? zeroRetentionMode = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create deepfake detection
+ /// Analyze audio, image, and video for deepfake detection.
+ /// Supply media via one of three intake methods:
+ /// - **Direct file upload** — `multipart/form-data` with the file attached as `file`. Files must be 150 MB or smaller and use one of the supported audio/video/image extensions. For larger files, use the secure upload flow.
+ /// - **Public URL** — `application/json` with a `url` field. The API fetches the URL itself.
+ /// - **Secure upload token** — `application/json` with a `media_token` field obtained from `POST /secure_uploads`.
+ /// Exactly one of `file`, `url`, or `media_token` must be provided per request.
+ ///
+ ///
+ /// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
+ ///
+ ///
+ /// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
+ ///
+ ///
+ /// POST destination when analysis completes
+ ///
+ ///
+ /// Generate visualization artifacts
+ ///
+ ///
+ /// Window size in seconds (audio/video)
+ /// Default Value: 2
+ ///
+ ///
+ /// Start of segment to analyze (seconds)
+ ///
+ ///
+ /// End of segment to analyze (seconds)
+ ///
+ ///
+ /// Cap processed duration
+ ///
+ ///
+ /// Use talking_head for face-swaps
+ ///
+ ///
+ /// Run multimodal intelligence analysis on the media
+ /// Default Value: false
+ ///
+ ///
+ /// Enable audio source tracing to identify synthetic audio origin
+ /// Default Value: false
+ ///
+ ///
+ /// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.
+ /// Default Value: false
+ ///
+ ///
+ /// Enable out-of-distribution detection
+ /// Default Value: false
+ ///
+ ///
+ /// Enable Zero Retention Mode to automatically delete submitted media after detection completes.
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDetectionAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? callbackUrl = default,
+ bool? visualize = default,
+ int? frameLength = default,
+ double? startRegion = default,
+ double? endRegion = default,
+ double? maxVideoSecs = default,
+ global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModelTypes? modelTypes = default,
+ bool? intelligence = default,
+ bool? audioSourceTracing = default,
+ bool? useReverseSearch = default,
+ bool? useOodDetector = default,
+ bool? zeroRetentionMode = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetectBatch.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetectBatch.g.cs
index ff9a28b..2061031 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetectBatch.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetectBatch.g.cs
@@ -19,5 +19,20 @@ public partial interface ISubpackageDeepfakeDetectionClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get batch status
+ /// Retrieve the latest aggregate status for a batch. The response shape mirrors
+ /// the create response — `status`, `completed_count`, and `failed_count` update
+ /// as child detects progress. Use the `detect_uuids` array to fetch per-file
+ /// results via `GET /detect/{uuid}`.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetDetectBatchAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetection.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetection.g.cs
index bc6ce8c..701204c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetection.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.GetDetection.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageDeepfakeDetectionClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get deepfake detection result
+ /// Get deepfake detection result by UUID
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetDetectionAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.ListDetections.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.ListDetections.g.cs
index 00e3208..a791719 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.ListDetections.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDeepfakeDetectionClient.ListDetections.g.cs
@@ -20,5 +20,21 @@ public partial interface ISubpackageDeepfakeDetectionClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List all detects
+ /// Retrieve a paginated list of all detect objects for the authenticated user's team
+ ///
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListDetectionsAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.AskDetectIntelligenceQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.AskDetectIntelligenceQuestion.g.cs
index 3cb1454..b842a55 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.AskDetectIntelligenceQuestion.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.AskDetectIntelligenceQuestion.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageDetectIntelligenceClient
/// Submit a natural-language question about a completed detection report. Returns 202 Accepted while the answer is generated in the background.
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> AskDetectIntelligenceQuestionAsResponseAsync(
+ string uuid,
+
+ global::ResembleAI.AskDetectIntelligenceQuestionRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Ask a question about a detection
+ /// Submit a natural-language question about a completed detection report. Returns 202 Accepted while the answer is generated in the background.
+ ///
+ ///
///
/// The natural-language question to ask about the detection
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.GetDetectIntelligenceQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.GetDetectIntelligenceQuestion.g.cs
index 9dce555..38434df 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.GetDetectIntelligenceQuestion.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDetectIntelligenceClient.GetDetectIntelligenceQuestion.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageDetectIntelligenceClient
string questionUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get answer to a detection question
+ /// Retrieve the status and answer for a previously submitted question. Poll until status is completed or failed.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetDetectIntelligenceQuestionAsResponseAsync(
+ string uuid,
+ string questionUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoice.g.cs
index edf0072..54708f2 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoice.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageDuetsClient
/// Create custom duet voice
/// Create a custom voice for duet generation
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDuetVoiceAsResponseAsync(
+
+ global::ResembleAI.CreateDuetVoiceRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create custom duet voice
+ /// Create a custom voice for duet generation
+ ///
///
/// Voice name
///
@@ -43,5 +56,58 @@ public partial interface ISubpackageDuetsClient
string? stylePrompt = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create custom duet voice
+ /// Create a custom voice for duet generation
+ ///
+ ///
+ /// Voice name
+ ///
+ ///
+ /// Optional style prompt
+ ///
+ ///
+ /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)
+ ///
+ ///
+ /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateDuetVoiceAsync(
+ string name,
+ global::System.IO.Stream audio,
+ string audioname,
+ string? stylePrompt = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create custom duet voice
+ /// Create a custom voice for duet generation
+ ///
+ ///
+ /// Voice name
+ ///
+ ///
+ /// Optional style prompt
+ ///
+ ///
+ /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)
+ ///
+ ///
+ /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDuetVoiceAsResponseAsync(
+ string name,
+ global::System.IO.Stream audio,
+ string audioname,
+ string? stylePrompt = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoicePair.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoicePair.g.cs
index dde16d2..7297799 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoicePair.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.CreateDuetVoicePair.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageDuetsClient
/// Create duet voice pair
/// Create a voice pair for duet generation
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateDuetVoicePairAsResponseAsync(
+
+ global::ResembleAI.CreateDuetVoicePairRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create duet voice pair
+ /// Create a voice pair for duet generation
+ ///
///
/// ID of first voice
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.DeleteDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.DeleteDuetVoice.g.cs
index 355c25a..647a9ff 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.DeleteDuetVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.DeleteDuetVoice.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageDuetsClient
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete duet voice
+ /// Delete a custom duet voice (default voices cannot be deleted)
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteDuetVoiceAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.GenerateDuet.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.GenerateDuet.g.cs
index 1406aa0..f7a9860 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.GenerateDuet.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.GenerateDuet.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageDuetsClient
/// Generate duet
/// Generate conversational audio with two speakers
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GenerateDuetAsResponseAsync(
+
+ global::ResembleAI.GenerateDuetRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Generate duet
+ /// Generate conversational audio with two speakers
+ ///
///
/// Voice pair ID to use
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoicePairs.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoicePairs.g.cs
index 8c92bcc..d1f435f 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoicePairs.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoicePairs.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageDuetsClient
global::System.Threading.Tasks.Task ListDuetVoicePairsAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List duet voice pairs
+ /// List all voice pairs for duet generation
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListDuetVoicePairsAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoices.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoices.g.cs
index 6112541..238f4c7 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoices.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.ListDuetVoices.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageDuetsClient
global::System.Threading.Tasks.Task ListDuetVoicesAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List duet voices
+ /// Returns default and custom duet voices
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListDuetVoicesAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.UpdateDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.UpdateDuetVoice.g.cs
index 09c34ae..7e15d6b 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.UpdateDuetVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageDuetsClient.UpdateDuetVoice.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageDuetsClient
/// Update a custom duet voice (default voices cannot be modified)
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateDuetVoiceAsResponseAsync(
+ int id,
+
+ global::ResembleAI.UpdateDuetVoiceRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update duet voice
+ /// Update a custom duet voice (default voices cannot be modified)
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.CreateIdentity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.CreateIdentity.g.cs
index 963a68e..1288811 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.CreateIdentity.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.CreateIdentity.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageIdentityClient
/// Create identity
/// Create a new speaker identity
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateIdentityAsResponseAsync(
+
+ global::ResembleAI.CreateIdentityRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create identity
+ /// Create a new speaker identity
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.ListIdentities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.ListIdentities.g.cs
index f8f5cb1..159f888 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.ListIdentities.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.ListIdentities.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageIdentityClient
global::System.Threading.Tasks.Task ListIdentitiesAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List identities
+ /// List all speaker identities
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListIdentitiesAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.SearchIdentities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.SearchIdentities.g.cs
index f82a123..eeb7de8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.SearchIdentities.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIdentityClient.SearchIdentities.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageIdentityClient
/// Search identities
/// Search for matching speaker identities
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> SearchIdentitiesAsResponseAsync(
+
+ global::ResembleAI.SearchIdentitiesRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Search identities
+ /// Search for matching speaker identities
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.GetIntelligence.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.GetIntelligence.g.cs
index f851ae2..99e6f6c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.GetIntelligence.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.GetIntelligence.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageIntelligenceClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get intelligence
+ /// Retrieve a single intelligence report by its UUID
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetIntelligenceAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.ListIntelligences.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.ListIntelligences.g.cs
index 2e0d6e1..fdc6eb1 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.ListIntelligences.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.ListIntelligences.g.cs
@@ -20,5 +20,21 @@ public partial interface ISubpackageIntelligenceClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List intelligences
+ /// Retrieve a paginated list of all intelligence reports for the authenticated user's team
+ ///
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListIntelligencesAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.RunIntelligence.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.RunIntelligence.g.cs
index f5b98f2..e922dbb 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.RunIntelligence.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageIntelligenceClient.RunIntelligence.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageIntelligenceClient
/// Run intelligence
/// Analyze audio, image, or video for comprehensive insights. Optionally reference an existing detect to associate.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> RunIntelligenceAsResponseAsync(
+
+ global::ResembleAI.RunIntelligenceRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Run intelligence
+ /// Analyze audio, image, or video for comprehensive insights. Optionally reference an existing detect to associate.
+ ///
///
/// Token for uploaded media file (from secure upload)
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.CreateProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.CreateProject.g.cs
index 9aca885..ee263d8 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.CreateProject.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.CreateProject.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageProjectsClient
/// Create project
/// Create a new project
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateProjectAsResponseAsync(
+
+ global::ResembleAI.CreateProjectRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create project
+ /// Create a new project
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.DeleteProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.DeleteProject.g.cs
index 520995e..34771ee 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.DeleteProject.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.DeleteProject.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageProjectsClient
string projectUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete project
+ /// Delete a project
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteProjectAsResponseAsync(
+ string projectUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.GetProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.GetProject.g.cs
index 04b84e1..8320025 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.GetProject.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.GetProject.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageProjectsClient
string projectUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get project
+ /// Get project details
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetProjectAsResponseAsync(
+ string projectUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.ListProjects.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.ListProjects.g.cs
index 3cd4a3e..d5891f3 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.ListProjects.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.ListProjects.g.cs
@@ -22,5 +22,23 @@ public partial interface ISubpackageProjectsClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List projects
+ /// List all projects
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListProjectsAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.UpdateProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.UpdateProject.g.cs
index 7a97560..d0178d2 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.UpdateProject.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageProjectsClient.UpdateProject.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageProjectsClient
/// Update a project
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateProjectAsResponseAsync(
+ string projectUuid,
+
+ global::ResembleAI.UpdateProjectRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update project
+ /// Update a project
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.CreateRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.CreateRecording.g.cs
index 33539b8..b71d084 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.CreateRecording.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.CreateRecording.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageRecordingsClient
/// Upload a new recording for voice training
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateRecordingAsResponseAsync(
+ string voiceUuid,
+
+ global::ResembleAI.CreateRecordingRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create recording
+ /// Upload a new recording for voice training
+ ///
+ ///
///
/// Audio file (WAV recommended, 1-12 seconds)
///
@@ -59,5 +74,86 @@ public partial interface ISubpackageRecordingsClient
bool? fill = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create recording
+ /// Upload a new recording for voice training
+ ///
+ ///
+ ///
+ /// Audio file (WAV recommended, 1-12 seconds)
+ ///
+ ///
+ /// Audio file (WAV recommended, 1-12 seconds)
+ ///
+ ///
+ /// Display name
+ ///
+ ///
+ /// Transcript of the clip
+ ///
+ ///
+ /// Emotion label
+ ///
+ ///
+ /// Include in training
+ ///
+ ///
+ /// Include for Resemble Fill
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateRecordingAsync(
+ string voiceUuid,
+ global::System.IO.Stream file,
+ string filename,
+ string name,
+ string text,
+ string emotion,
+ bool isActive,
+ bool? fill = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create recording
+ /// Upload a new recording for voice training
+ ///
+ ///
+ ///
+ /// Audio file (WAV recommended, 1-12 seconds)
+ ///
+ ///
+ /// Audio file (WAV recommended, 1-12 seconds)
+ ///
+ ///
+ /// Display name
+ ///
+ ///
+ /// Transcript of the clip
+ ///
+ ///
+ /// Emotion label
+ ///
+ ///
+ /// Include in training
+ ///
+ ///
+ /// Include for Resemble Fill
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateRecordingAsResponseAsync(
+ string voiceUuid,
+ global::System.IO.Stream file,
+ string filename,
+ string name,
+ string text,
+ string emotion,
+ bool isActive,
+ bool? fill = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.DeleteRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.DeleteRecording.g.cs
index ad73193..0695d6e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.DeleteRecording.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.DeleteRecording.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageRecordingsClient
string recordingId,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete recording
+ /// Delete a recording
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteRecordingAsResponseAsync(
+ string voiceUuid,
+ string recordingId,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.GetRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.GetRecording.g.cs
index 8bbe76b..6ca1f57 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.GetRecording.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.GetRecording.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageRecordingsClient
string recordingId,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get recording
+ /// Get recording details
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetRecordingAsResponseAsync(
+ string voiceUuid,
+ string recordingId,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.ListRecordings.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.ListRecordings.g.cs
index 511b5ee..af95d35 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.ListRecordings.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.ListRecordings.g.cs
@@ -24,5 +24,25 @@ public partial interface ISubpackageRecordingsClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List recordings
+ /// List all recordings for a voice
+ ///
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListRecordingsAsResponseAsync(
+ string voiceUuid,
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.UpdateRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.UpdateRecording.g.cs
index 0e94156..67771f5 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.UpdateRecording.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageRecordingsClient.UpdateRecording.g.cs
@@ -27,6 +27,23 @@ public partial interface ISubpackageRecordingsClient
///
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateRecordingAsResponseAsync(
+ string voiceUuid,
+ string recordingId,
+
+ global::ResembleAI.UpdateRecordingRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update recording
+ /// Update a recording
+ ///
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSecureUploadsClient.CreateSecureUpload.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSecureUploadsClient.CreateSecureUpload.g.cs
index 130539c..1428164 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSecureUploadsClient.CreateSecureUpload.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSecureUploadsClient.CreateSecureUpload.g.cs
@@ -31,6 +31,24 @@ public partial interface ISubpackageSecureUploadsClient
/// means you do not need to host files yourself for jobs that only need the API
/// to read them once.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateSecureUploadAsResponseAsync(
+
+ global::ResembleAI.CreateSecureUploadRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upload media securely
+ /// Upload a media file and receive a short-lived token that can be passed to
+ /// downstream endpoints (such as `/detect` and `/intelligence`) in place of a
+ /// public URL. The returned token is a JWT that expires 1 hour after issuance.
+ /// Keeping uploads private avoids exposing source media on the open internet and
+ /// means you do not need to host files yourself for jobs that only need the API
+ /// to read them once.
+ ///
///
/// The media file to upload (audio, image, or video).
///
@@ -45,5 +63,52 @@ public partial interface ISubpackageSecureUploadsClient
string filename,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Upload media securely
+ /// Upload a media file and receive a short-lived token that can be passed to
+ /// downstream endpoints (such as `/detect` and `/intelligence`) in place of a
+ /// public URL. The returned token is a JWT that expires 1 hour after issuance.
+ /// Keeping uploads private avoids exposing source media on the open internet and
+ /// means you do not need to host files yourself for jobs that only need the API
+ /// to read them once.
+ ///
+ ///
+ /// The media file to upload (audio, image, or video).
+ ///
+ ///
+ /// The media file to upload (audio, image, or video).
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateSecureUploadAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upload media securely
+ /// Upload a media file and receive a short-lived token that can be passed to
+ /// downstream endpoints (such as `/detect` and `/intelligence`) in place of a
+ /// public URL. The returned token is a JWT that expires 1 hour after issuance.
+ /// Keeping uploads private avoids exposing source media on the open internet and
+ /// means you do not need to host files yourself for jobs that only need the API
+ /// to read them once.
+ ///
+ ///
+ /// The media file to upload (audio, image, or video).
+ ///
+ ///
+ /// The media file to upload (audio, image, or video).
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateSecureUploadAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.AskTranscriptQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.AskTranscriptQuestion.g.cs
index 74f14ba..aaa60a1 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.AskTranscriptQuestion.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.AskTranscriptQuestion.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageSpeechToTextClient
/// Submit a question about a completed transcript
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> AskTranscriptQuestionAsResponseAsync(
+ global::System.Guid uuid,
+
+ global::ResembleAI.AskTranscriptQuestionRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Ask intelligence question
+ /// Submit a question about a completed transcript
+ ///
+ ///
///
/// Question to ask about the transcript
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.CreateTranscript.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.CreateTranscript.g.cs
index 19c3d74..6c3809c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.CreateTranscript.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.CreateTranscript.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageSpeechToTextClient
/// Create transcript job
/// Submit audio or video for transcription
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateTranscriptAsResponseAsync(
+
+ global::ResembleAI.CreateTranscriptRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create transcript job
+ /// Submit audio or video for transcription
+ ///
///
/// Audio or video file (max 500 MB, 20 minutes)
///
@@ -39,5 +52,50 @@ public partial interface ISubpackageSpeechToTextClient
string? query = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create transcript job
+ /// Submit audio or video for transcription
+ ///
+ ///
+ /// Audio or video file (max 500 MB, 20 minutes)
+ ///
+ ///
+ /// Audio or video file (max 500 MB, 20 minutes)
+ ///
+ ///
+ /// Optional intelligence question to evaluate after transcription
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateTranscriptAsync(
+ global::System.IO.Stream? file = default,
+ string? filename = default,
+ string? query = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create transcript job
+ /// Submit audio or video for transcription
+ ///
+ ///
+ /// Audio or video file (max 500 MB, 20 minutes)
+ ///
+ ///
+ /// Audio or video file (max 500 MB, 20 minutes)
+ ///
+ ///
+ /// Optional intelligence question to evaluate after transcription
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateTranscriptAsResponseAsync(
+ global::System.IO.Stream? file = default,
+ string? filename = default,
+ string? query = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscript.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscript.g.cs
index 4ee239b..3f4b2f5 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscript.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscript.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageSpeechToTextClient
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get transcript
+ /// Retrieve transcript status, text, and timestamps
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTranscriptAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscriptQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscriptQuestion.g.cs
index 1946024..c60e831 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscriptQuestion.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.GetTranscriptQuestion.g.cs
@@ -18,5 +18,19 @@ public partial interface ISubpackageSpeechToTextClient
global::System.Guid questionUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get intelligence question status
+ /// Check the status of a specific question
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTranscriptQuestionAsResponseAsync(
+ global::System.Guid uuid,
+ global::System.Guid questionUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscriptQuestions.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscriptQuestions.g.cs
index e38b370..e3b0845 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscriptQuestions.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscriptQuestions.g.cs
@@ -24,5 +24,25 @@ public partial interface ISubpackageSpeechToTextClient
int? perPage = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List intelligence questions
+ /// List all questions asked about a transcript
+ ///
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 25
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListTranscriptQuestionsAsResponseAsync(
+ global::System.Guid uuid,
+ int page,
+ int? perPage = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscripts.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscripts.g.cs
index cd70f10..8a3f532 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscripts.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageSpeechToTextClient.ListTranscripts.g.cs
@@ -22,5 +22,23 @@ public partial interface ISubpackageSpeechToTextClient
int? perPage = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List transcripts
+ /// Retrieve paginated list of transcript jobs
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 25
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListTranscriptsAsResponseAsync(
+ int page,
+ int? perPage = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.CreateTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.CreateTermSubstitution.g.cs
index 061075e..3ba2997 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.CreateTermSubstitution.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.CreateTermSubstitution.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageTermSubstitutionsClient
/// Create term substitution
/// Create a new pronunciation substitution
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateTermSubstitutionAsResponseAsync(
+
+ global::ResembleAI.CreateTermSubstitutionRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create term substitution
+ /// Create a new pronunciation substitution
+ ///
///
/// Original text to substitute
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.DeleteTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.DeleteTermSubstitution.g.cs
index 4c71266..399e6d3 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.DeleteTermSubstitution.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.DeleteTermSubstitution.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageTermSubstitutionsClient
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete term substitution
+ /// Delete a term substitution
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteTermSubstitutionAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.GetTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.GetTermSubstitution.g.cs
index b56a3db..6536ef5 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.GetTermSubstitution.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.GetTermSubstitution.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageTermSubstitutionsClient
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get term substitution
+ /// Get term substitution details
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTermSubstitutionAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.ListTermSubstitutions.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.ListTermSubstitutions.g.cs
index 8b6bd26..a0696b1 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.ListTermSubstitutions.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTermSubstitutionsClient.ListTermSubstitutions.g.cs
@@ -22,5 +22,23 @@ public partial interface ISubpackageTermSubstitutionsClient
int? pageSize = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List term substitutions
+ /// List all term substitutions
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListTermSubstitutionsAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.StreamSynthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.StreamSynthesize.g.cs
index 4fa838a..4f53e45 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.StreamSynthesize.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.StreamSynthesize.g.cs
@@ -21,6 +21,32 @@ public partial interface ISubpackageTextToSpeechClient
/// Streaming text-to-speech synthesis (HTTP)
/// Stream audio as it's generated. Returns chunked WAV data for progressive playback.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task StreamSynthesizeAsStreamAsync(
+
+ global::ResembleAI.StreamSynthesizeRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Streaming text-to-speech synthesis (HTTP)
+ /// Stream audio as it's generated. Returns chunked WAV data for progressive playback.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> StreamSynthesizeAsResponseAsync(
+
+ global::ResembleAI.StreamSynthesizeRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Streaming text-to-speech synthesis (HTTP)
+ /// Stream audio as it's generated. Returns chunked WAV data for progressive playback.
+ ///
///
/// Voice UUID to use for synthesis
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.Synthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.Synthesize.g.cs
index aae3517..b898d97 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.Synthesize.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageTextToSpeechClient.Synthesize.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageTextToSpeechClient
/// Synchronous text-to-speech synthesis
/// Generate speech synchronously from text or SSML. Returns complete audio as base64.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> SynthesizeAsResponseAsync(
+
+ global::ResembleAI.SynthesizeRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Synchronous text-to-speech synthesis
+ /// Generate speech synchronously from text or SSML. Returns complete audio as base64.
+ ///
///
/// Voice UUID to use for synthesis
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.CreateVoiceFromCandidate.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.CreateVoiceFromCandidate.g.cs
index 388bf07..b62e531 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.CreateVoiceFromCandidate.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.CreateVoiceFromCandidate.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageVoiceDesignClient
/// Create voice from candidate
/// Create a voice from a voice design candidate
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateVoiceFromCandidateAsResponseAsync(
+
+ global::ResembleAI.CreateVoiceFromCandidateRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create voice from candidate
+ /// Create a voice from a voice design candidate
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.GenerateVoiceDesign.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.GenerateVoiceDesign.g.cs
index bf796a8..670f2a6 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.GenerateVoiceDesign.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceDesignClient.GenerateVoiceDesign.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageVoiceDesignClient
/// Generate voice candidates
/// Generate three voice candidates from a text prompt
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GenerateVoiceDesignAsResponseAsync(
+
+ global::ResembleAI.GenerateVoiceDesignRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Generate voice candidates
+ /// Generate three voice candidates from a text prompt
+ ///
///
/// Description of desired voice
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs
index 2882202..3993181 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageVoiceSettingsPresetsClient
/// Create voice settings preset
/// Create a new voice settings preset (max 5 per user)
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateVoiceSettingsPresetAsResponseAsync(
+
+ global::ResembleAI.CreateVoiceSettingsPresetRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create voice settings preset
+ /// Create a new voice settings preset (max 5 per user)
+ ///
///
/// Preset name (unique, max 30 characters)
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs
index ac2ac19..4cf9e79 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageVoiceSettingsPresetsClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete voice settings preset
+ /// Delete a preset
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteVoiceSettingsPresetAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs
index 86775a2..aba5afb 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageVoiceSettingsPresetsClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get voice settings preset
+ /// Get preset details
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetVoiceSettingsPresetAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs
index 3666f1b..9a0cd8e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs
@@ -14,5 +14,15 @@ public partial interface ISubpackageVoiceSettingsPresetsClient
global::System.Threading.Tasks.Task ListVoiceSettingsPresetsAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List voice settings presets
+ /// List all voice settings presets
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListVoiceSettingsPresetsAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs
index 9ef809a..1335016 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageVoiceSettingsPresetsClient
/// Update a preset
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> UpdateVoiceSettingsPresetAsResponseAsync(
+ string uuid,
+
+ global::ResembleAI.UpdateVoiceSettingsPresetRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update voice settings preset
+ /// Update a preset
+ ///
+ ///
///
///
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.BuildVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.BuildVoice.g.cs
index 50249fe..f492e68 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.BuildVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.BuildVoice.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageVoicesClient
/// Start voice training
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BuildVoiceAsResponseAsync(
+ string voiceUuid,
+
+ global::ResembleAI.BuildVoiceRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Build voice
+ /// Start voice training
+ ///
+ ///
///
/// Default Value: false
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.CreateVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.CreateVoice.g.cs
index 6ae1a10..e92da13 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.CreateVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.CreateVoice.g.cs
@@ -21,6 +21,19 @@ public partial interface ISubpackageVoicesClient
/// Create voice
/// Create a new voice
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateVoiceAsResponseAsync(
+
+ global::ResembleAI.CreateVoiceRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create voice
+ /// Create a new voice
+ ///
///
///
/// Default Value: professional
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.DeleteVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.DeleteVoice.g.cs
index 222d2ce..c71d9fd 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.DeleteVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.DeleteVoice.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageVoicesClient
string voiceUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete voice
+ /// Delete a voice
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DeleteVoiceAsResponseAsync(
+ string voiceUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.GetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.GetVoice.g.cs
index 9494e11..a408c9e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.GetVoice.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.GetVoice.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageVoicesClient
string voiceUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get voice
+ /// Get voice details
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetVoiceAsResponseAsync(
+ string voiceUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.ListVoices.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.ListVoices.g.cs
index 7c327ec..19b6ea7 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.ListVoices.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageVoicesClient.ListVoices.g.cs
@@ -26,5 +26,27 @@ public partial interface ISubpackageVoicesClient
bool? advanced = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List voices
+ /// Retrieve voice metadata
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListVoicesAsResponseAsync(
+ int page,
+ int? pageSize = default,
+ bool? advanced = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.ApplyWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.ApplyWatermark.g.cs
index c29e7c7..71e10d0 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.ApplyWatermark.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.ApplyWatermark.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageWatermarkClient
/// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ApplyWatermarkAsResponseAsync(
+
+ global::ResembleAI.ApplyWatermarkRequest request,
+ global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Apply watermark
+ /// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
+ ///
+ ///
///
/// HTTPS URL to the media file (audio, image, or video).
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.DetectWatermark.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.DetectWatermark.g.cs
index 3556009..771a9a2 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.DetectWatermark.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.DetectWatermark.g.cs
@@ -24,6 +24,21 @@ public partial interface ISubpackageWatermarkClient
/// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DetectWatermarkAsResponseAsync(
+
+ global::ResembleAI.DetectWatermarkRequest request,
+ global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Detect watermark
+ /// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
+ ///
+ ///
///
/// HTTPS URL to the media file (audio, image, or video).
///
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkApplyResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkApplyResult.g.cs
index e13ffad..f21423c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkApplyResult.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkApplyResult.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageWatermarkClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get watermark apply result
+ /// Retrieve the result of a watermark apply job.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetWatermarkApplyResultAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkDetectionResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkDetectionResult.g.cs
index f7d06e8..8b9831f 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkDetectionResult.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ISubpackageWatermarkClient.GetWatermarkDetectionResult.g.cs
@@ -16,5 +16,17 @@ public partial interface ISubpackageWatermarkClient
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get watermark detection result
+ /// Retrieve the result of a watermark detection.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetWatermarkDetectionResultAsResponseAsync(
+ string uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.OptionsSupport.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.OptionsSupport.g.cs
index 45a5445..0688739 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.OptionsSupport.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.OptionsSupport.g.cs
@@ -101,9 +101,45 @@ public sealed class AutoSDKRetryOptions
public int MaxAttempts { get; set; } = 1;
///
- /// Optional fixed delay between retry attempts.
+ /// Optional fixed delay between retry attempts. When set, this takes precedence over exponential backoff.
///
public global::System.TimeSpan? Delay { get; set; }
+
+ ///
+ /// Initial exponential backoff delay used when is not set.
+ ///
+ public global::System.TimeSpan InitialDelay { get; set; } = global::System.TimeSpan.FromSeconds(1);
+
+ ///
+ /// Maximum retry delay after applying retry headers, backoff, and jitter.
+ ///
+ public global::System.TimeSpan MaxDelay { get; set; } = global::System.TimeSpan.FromSeconds(30);
+
+ ///
+ /// Multiplier applied to exponential backoff after each failed attempt.
+ /// Values below 1 are normalized to 1.
+ ///
+ public double BackoffMultiplier { get; set; } = 2D;
+
+ ///
+ /// Randomizes computed backoff by plus or minus this ratio. Values are clamped to 0..1.
+ ///
+ public double JitterRatio { get; set; } = 0.2D;
+
+ ///
+ /// Whether Retry-After response headers should control retry delay when present.
+ ///
+ public bool UseRetryAfterHeader { get; set; } = true;
+
+ ///
+ /// Whether a rate-limit reset response header should control retry delay when present.
+ ///
+ public bool UseRateLimitResetHeader { get; set; }
+
+ ///
+ /// Optional provider-specific rate-limit reset header name. Values may be Unix seconds or an HTTP date.
+ ///
+ public string? RateLimitResetHeaderName { get; set; } = "X-RateLimit-Reset";
}
@@ -231,6 +267,16 @@ public sealed class AutoSDKHookContext
///
public bool WillRetry { get; set; }
+ ///
+ /// The computed retry delay when is true.
+ ///
+ public global::System.TimeSpan? RetryDelay { get; set; }
+
+ ///
+ /// A short retry reason such as exception or status:429.
+ ///
+ public string RetryReason { get; set; } = string.Empty;
+
///
/// The effective cancellation token for the current request attempt.
///
@@ -254,6 +300,8 @@ internal static class AutoSDKRequestOptionsSupport
int attempt,
int maxAttempts,
bool willRetry,
+ global::System.TimeSpan? retryDelay,
+ string retryReason,
global::System.Threading.CancellationToken cancellationToken)
{
return new global::ResembleAI.AutoSDKHookContext
@@ -271,6 +319,8 @@ internal static class AutoSDKRequestOptionsSupport
Attempt = attempt,
MaxAttempts = maxAttempts,
WillRetry = willRetry,
+ RetryDelay = retryDelay,
+ RetryReason = retryReason ?? string.Empty,
CancellationToken = cancellationToken,
};
}
@@ -338,19 +388,188 @@ internal static int GetMaxAttempts(
return maxAttempts < 1 ? 1 : maxAttempts;
}
- internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ internal static global::System.TimeSpan GetRetryDelay(
global::ResembleAI.AutoSDKClientOptions clientOptions,
global::ResembleAI.AutoSDKRequestOptions? requestOptions,
+ global::System.Net.Http.HttpResponseMessage? response,
+ int attempt)
+ {
+ var retryOptions = requestOptions?.Retry ?? clientOptions.Retry ?? new global::ResembleAI.AutoSDKRetryOptions();
+
+ if (retryOptions.UseRetryAfterHeader &&
+ TryGetRetryAfterDelay(response, out var retryAfterDelay))
+ {
+ return ClampRetryDelay(retryAfterDelay, retryOptions);
+ }
+
+ if (retryOptions.UseRateLimitResetHeader &&
+ TryGetRateLimitResetDelay(response, retryOptions.RateLimitResetHeaderName, out var rateLimitResetDelay))
+ {
+ return ClampRetryDelay(rateLimitResetDelay, retryOptions);
+ }
+
+ if (retryOptions.Delay.HasValue)
+ {
+ return ClampRetryDelay(retryOptions.Delay.Value, retryOptions);
+ }
+
+ var initialDelay = retryOptions.InitialDelay;
+ if (initialDelay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var multiplier = retryOptions.BackoffMultiplier < 1D ? 1D : retryOptions.BackoffMultiplier;
+ var exponent = attempt <= 1 ? 0 : attempt - 1;
+ var delayMilliseconds = initialDelay.TotalMilliseconds * global::System.Math.Pow(multiplier, exponent);
+ if (double.IsNaN(delayMilliseconds) || double.IsInfinity(delayMilliseconds) || delayMilliseconds < 0D)
+ {
+ delayMilliseconds = 0D;
+ }
+
+ var delay = global::System.TimeSpan.FromMilliseconds(delayMilliseconds);
+ delay = ApplyJitter(delay, retryOptions.JitterRatio);
+ return ClampRetryDelay(delay, retryOptions);
+ }
+
+ internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ global::System.TimeSpan retryDelay,
global::System.Threading.CancellationToken cancellationToken)
{
- var delay = requestOptions?.Retry?.Delay ??
- clientOptions.Retry?.Delay;
- if (!delay.HasValue || delay.Value <= global::System.TimeSpan.Zero)
+ if (retryDelay <= global::System.TimeSpan.Zero)
{
return;
}
- await global::System.Threading.Tasks.Task.Delay(delay.Value, cancellationToken).ConfigureAwait(false);
+ await global::System.Threading.Tasks.Task.Delay(retryDelay, cancellationToken).ConfigureAwait(false);
+ }
+
+ private static bool TryGetRetryAfterDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ var retryAfter = response?.Headers.RetryAfter;
+ if (retryAfter == null)
+ {
+ return false;
+ }
+
+ if (retryAfter.Delta.HasValue)
+ {
+ delay = retryAfter.Delta.Value;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (retryAfter.Date.HasValue)
+ {
+ delay = retryAfter.Date.Value - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static bool TryGetRateLimitResetDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ string? headerName,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ if (response == null || string.IsNullOrWhiteSpace(headerName))
+ {
+ return false;
+ }
+
+ if (!response.Headers.TryGetValues(headerName, out var values) &&
+ (response.Content?.Headers == null || !response.Content.Headers.TryGetValues(headerName, out values)))
+ {
+ return false;
+ }
+
+ var value = global::System.Linq.Enumerable.FirstOrDefault(values);
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return false;
+ }
+
+ value = value.Trim();
+ if (long.TryParse(
+ value,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var unixSeconds))
+ {
+ delay = global::System.DateTimeOffset.FromUnixTimeSeconds(unixSeconds) - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ value,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var resetAt))
+ {
+ delay = resetAt - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static global::System.TimeSpan ApplyJitter(
+ global::System.TimeSpan delay,
+ double jitterRatio)
+ {
+ if (delay <= global::System.TimeSpan.Zero || jitterRatio <= 0D)
+ {
+ return delay;
+ }
+
+ if (jitterRatio > 1D)
+ {
+ jitterRatio = 1D;
+ }
+
+ var sample = NextJitterSample();
+ var multiplier = 1D - jitterRatio + (sample * jitterRatio * 2D);
+ var milliseconds = delay.TotalMilliseconds * multiplier;
+ if (double.IsNaN(milliseconds) || double.IsInfinity(milliseconds) || milliseconds < 0D)
+ {
+ milliseconds = 0D;
+ }
+
+ return global::System.TimeSpan.FromMilliseconds(milliseconds);
+ }
+
+ private static double NextJitterSample()
+ {
+ var bytes = new byte[8];
+ using (var randomNumberGenerator = global::System.Security.Cryptography.RandomNumberGenerator.Create())
+ {
+ randomNumberGenerator.GetBytes(bytes);
+ }
+
+ var value = global::System.BitConverter.ToUInt64(bytes, 0);
+ return value / (double)ulong.MaxValue;
+ }
+
+ private static global::System.TimeSpan ClampRetryDelay(
+ global::System.TimeSpan delay,
+ global::ResembleAI.AutoSDKRetryOptions retryOptions)
+ {
+ if (delay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var maxDelay = retryOptions.MaxDelay;
+ if (maxDelay > global::System.TimeSpan.Zero && delay > maxDelay)
+ {
+ return maxDelay;
+ }
+
+ return delay;
}
internal static bool ShouldRetryStatusCode(
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs
index c1e630f..0e26e33 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs
@@ -45,7 +45,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAccountClient SubpackageAccount => new SubpackageAccountClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAccountClient SubpackageAccount => new SubpackageAccountClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -55,7 +55,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAgentKnowledgeBaseClient SubpackageAgentKnowledgeBase => new SubpackageAgentKnowledgeBaseClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAgentKnowledgeBaseClient SubpackageAgentKnowledgeBase => new SubpackageAgentKnowledgeBaseClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -65,7 +65,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAgentPhoneNumbersClient SubpackageAgentPhoneNumbers => new SubpackageAgentPhoneNumbersClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAgentPhoneNumbersClient SubpackageAgentPhoneNumbers => new SubpackageAgentPhoneNumbersClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -75,7 +75,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAgentToolsClient SubpackageAgentTools => new SubpackageAgentToolsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAgentToolsClient SubpackageAgentTools => new SubpackageAgentToolsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -85,7 +85,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAgentWebhooksClient SubpackageAgentWebhooks => new SubpackageAgentWebhooksClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAgentWebhooksClient SubpackageAgentWebhooks => new SubpackageAgentWebhooksClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -95,7 +95,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAgentsClient SubpackageAgents => new SubpackageAgentsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAgentsClient SubpackageAgents => new SubpackageAgentsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -105,7 +105,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAudioEditClient SubpackageAudioEdit => new SubpackageAudioEditClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAudioEditClient SubpackageAudioEdit => new SubpackageAudioEditClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -115,7 +115,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAudioEnhancementClient SubpackageAudioEnhancement => new SubpackageAudioEnhancementClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAudioEnhancementClient SubpackageAudioEnhancement => new SubpackageAudioEnhancementClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -125,7 +125,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageAudioSourceTracingClient SubpackageAudioSourceTracing => new SubpackageAudioSourceTracingClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageAudioSourceTracingClient SubpackageAudioSourceTracing => new SubpackageAudioSourceTracingClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -135,7 +135,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageClipsClient SubpackageClips => new SubpackageClipsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageClipsClient SubpackageClips => new SubpackageClipsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -145,7 +145,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageCustomPronunciationsClient SubpackageCustomPronunciations => new SubpackageCustomPronunciationsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageCustomPronunciationsClient SubpackageCustomPronunciations => new SubpackageCustomPronunciationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -155,7 +155,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageDeepfakeDetectionClient SubpackageDeepfakeDetection => new SubpackageDeepfakeDetectionClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageDeepfakeDetectionClient SubpackageDeepfakeDetection => new SubpackageDeepfakeDetectionClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -165,7 +165,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageDetectIntelligenceClient SubpackageDetectIntelligence => new SubpackageDetectIntelligenceClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageDetectIntelligenceClient SubpackageDetectIntelligence => new SubpackageDetectIntelligenceClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -175,7 +175,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageDuetsClient SubpackageDuets => new SubpackageDuetsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageDuetsClient SubpackageDuets => new SubpackageDuetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -185,7 +185,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageIdentityClient SubpackageIdentity => new SubpackageIdentityClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageIdentityClient SubpackageIdentity => new SubpackageIdentityClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -195,7 +195,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageIntelligenceClient SubpackageIntelligence => new SubpackageIntelligenceClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageIntelligenceClient SubpackageIntelligence => new SubpackageIntelligenceClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -205,7 +205,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageProjectsClient SubpackageProjects => new SubpackageProjectsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageProjectsClient SubpackageProjects => new SubpackageProjectsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -215,7 +215,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageRecordingsClient SubpackageRecordings => new SubpackageRecordingsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageRecordingsClient SubpackageRecordings => new SubpackageRecordingsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -225,7 +225,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageSecureUploadsClient SubpackageSecureUploads => new SubpackageSecureUploadsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageSecureUploadsClient SubpackageSecureUploads => new SubpackageSecureUploadsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -235,7 +235,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageSpeechToTextClient SubpackageSpeechToText => new SubpackageSpeechToTextClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageSpeechToTextClient SubpackageSpeechToText => new SubpackageSpeechToTextClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -245,7 +245,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageTermSubstitutionsClient SubpackageTermSubstitutions => new SubpackageTermSubstitutionsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageTermSubstitutionsClient SubpackageTermSubstitutions => new SubpackageTermSubstitutionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -255,7 +255,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageTextToSpeechClient SubpackageTextToSpeech => new SubpackageTextToSpeechClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageTextToSpeechClient SubpackageTextToSpeech => new SubpackageTextToSpeechClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -265,7 +265,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageVoiceDesignClient SubpackageVoiceDesign => new SubpackageVoiceDesignClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageVoiceDesignClient SubpackageVoiceDesign => new SubpackageVoiceDesignClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -275,7 +275,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageVoiceSettingsPresetsClient SubpackageVoiceSettingsPresets => new SubpackageVoiceSettingsPresetsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageVoiceSettingsPresetsClient SubpackageVoiceSettingsPresets => new SubpackageVoiceSettingsPresetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -285,7 +285,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageVoicesClient SubpackageVoices => new SubpackageVoicesClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageVoicesClient SubpackageVoices => new SubpackageVoicesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -295,7 +295,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli
///
///
///
- public SubpackageWatermarkClient SubpackageWatermark => new SubpackageWatermarkClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SubpackageWatermarkClient SubpackageWatermark => new SubpackageWatermarkClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -363,10 +363,10 @@ public ResembleAIClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public ResembleAIClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::ResembleAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::ResembleAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ResponseStream.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ResponseStream.g.cs
new file mode 100644
index 0000000..c1cad25
--- /dev/null
+++ b/src/libs/ResembleAI/Generated/ResembleAI.ResponseStream.g.cs
@@ -0,0 +1,117 @@
+
+#nullable enable
+
+namespace ResembleAI
+{
+ internal sealed class ResponseStream : global::System.IO.Stream
+ {
+ private readonly global::System.Net.Http.HttpResponseMessage _response;
+ private readonly global::System.IO.Stream _stream;
+ private bool _disposed;
+
+ public ResponseStream(
+ global::System.Net.Http.HttpResponseMessage response,
+ global::System.IO.Stream stream)
+ {
+ _response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+ _stream = stream ?? throw new global::System.ArgumentNullException(nameof(stream));
+ }
+
+ public override bool CanRead => _stream.CanRead;
+ public override bool CanSeek => _stream.CanSeek;
+ public override bool CanWrite => _stream.CanWrite;
+ public override bool CanTimeout => _stream.CanTimeout;
+ public override long Length => _stream.Length;
+
+ public override long Position
+ {
+ get => _stream.Position;
+ set => _stream.Position = value;
+ }
+
+ public override int ReadTimeout
+ {
+ get => _stream.ReadTimeout;
+ set => _stream.ReadTimeout = value;
+ }
+
+ public override int WriteTimeout
+ {
+ get => _stream.WriteTimeout;
+ set => _stream.WriteTimeout = value;
+ }
+
+ public override void Flush() => _stream.Flush();
+
+ public override global::System.Threading.Tasks.Task FlushAsync(
+ global::System.Threading.CancellationToken cancellationToken) =>
+ _stream.FlushAsync(cancellationToken);
+
+ public override int Read(byte[] buffer, int offset, int count) =>
+ _stream.Read(buffer, offset, count);
+
+ public override global::System.Threading.Tasks.Task ReadAsync(
+ byte[] buffer,
+ int offset,
+ int count,
+ global::System.Threading.CancellationToken cancellationToken) =>
+ _stream.ReadAsync(buffer, offset, count, cancellationToken);
+
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
+ public override global::System.Threading.Tasks.ValueTask ReadAsync(
+ global::System.Memory buffer,
+ global::System.Threading.CancellationToken cancellationToken = default) =>
+ _stream.ReadAsync(buffer, cancellationToken);
+#endif
+
+ public override long Seek(long offset, global::System.IO.SeekOrigin origin) =>
+ _stream.Seek(offset, origin);
+
+ public override void SetLength(long value) =>
+ _stream.SetLength(value);
+
+ public override void Write(byte[] buffer, int offset, int count) =>
+ _stream.Write(buffer, offset, count);
+
+ public override global::System.Threading.Tasks.Task WriteAsync(
+ byte[] buffer,
+ int offset,
+ int count,
+ global::System.Threading.CancellationToken cancellationToken) =>
+ _stream.WriteAsync(buffer, offset, count, cancellationToken);
+
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
+ public override global::System.Threading.Tasks.ValueTask WriteAsync(
+ global::System.ReadOnlyMemory buffer,
+ global::System.Threading.CancellationToken cancellationToken = default) =>
+ _stream.WriteAsync(buffer, cancellationToken);
+#endif
+
+ protected override void Dispose(bool disposing)
+ {
+ if (!_disposed && disposing)
+ {
+ _disposed = true;
+ _stream.Dispose();
+ _response.Dispose();
+ }
+
+ base.Dispose(disposing);
+ }
+
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER
+ public override async global::System.Threading.Tasks.ValueTask DisposeAsync()
+ {
+ if (_disposed)
+ {
+ return;
+ }
+
+ _disposed = true;
+ await _stream.DisposeAsync().ConfigureAwait(false);
+ _response.Dispose();
+ await base.DisposeAsync().ConfigureAwait(false);
+ }
+#endif
+ }
+}
\ No newline at end of file
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetAccount.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetAccount.g.cs
index ba1f097..2aa933e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetAccount.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetAccount.g.cs
@@ -62,6 +62,24 @@ partial void ProcessGetAccountResponseContent(
public async global::System.Threading.Tasks.Task GetAccountAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetAccountAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get account
+ /// Get account information
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetAccountAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -90,6 +108,7 @@ partial void ProcessGetAccountResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/account",
baseUri: ResolveBaseUri(
@@ -164,6 +183,8 @@ partial void ProcessGetAccountResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -174,6 +195,11 @@ partial void ProcessGetAccountResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -191,6 +217,8 @@ partial void ProcessGetAccountResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -200,8 +228,7 @@ partial void ProcessGetAccountResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -210,6 +237,11 @@ partial void ProcessGetAccountResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -226,14 +258,15 @@ partial void ProcessGetAccountResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -273,6 +306,8 @@ partial void ProcessGetAccountResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -293,6 +328,8 @@ partial void ProcessGetAccountResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -317,9 +354,13 @@ partial void ProcessGetAccountResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AccountGetAccountResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AccountGetAccountResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -347,9 +388,13 @@ partial void ProcessGetAccountResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AccountGetAccountResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AccountGetAccountResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetBillingUsage.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetBillingUsage.g.cs
index fa92926..91bde99 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetBillingUsage.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetBillingUsage.g.cs
@@ -62,6 +62,24 @@ partial void ProcessGetBillingUsageResponseContent(
public async global::System.Threading.Tasks.Task GetBillingUsageAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetBillingUsageAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get billing usage
+ /// Get billing and usage information
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetBillingUsageAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -90,6 +108,7 @@ partial void ProcessGetBillingUsageResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/account/billing_usage",
baseUri: ResolveBaseUri(
@@ -164,6 +183,8 @@ partial void ProcessGetBillingUsageResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -174,6 +195,11 @@ partial void ProcessGetBillingUsageResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -191,6 +217,8 @@ partial void ProcessGetBillingUsageResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -200,8 +228,7 @@ partial void ProcessGetBillingUsageResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -210,6 +237,11 @@ partial void ProcessGetBillingUsageResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -226,14 +258,15 @@ partial void ProcessGetBillingUsageResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -273,6 +306,8 @@ partial void ProcessGetBillingUsageResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -293,6 +328,8 @@ partial void ProcessGetBillingUsageResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -317,9 +354,13 @@ partial void ProcessGetBillingUsageResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AccountGetBillingUsageResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AccountGetBillingUsageResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -347,9 +388,13 @@ partial void ProcessGetBillingUsageResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AccountGetBillingUsageResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AccountGetBillingUsageResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeam.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeam.g.cs
index 0dbd8c6..104ba2f 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeam.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeam.g.cs
@@ -66,6 +66,27 @@ partial void ProcessGetTeamResponseContent(
global::System.Guid teamUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetTeamAsResponseAsync(
+ teamUuid: teamUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get team
+ /// Get specific team information
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetTeamAsResponseAsync(
+ global::System.Guid teamUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessGetTeamResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/account/teams/{teamUuid}",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessGetTeamResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessGetTeamResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessGetTeamResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessGetTeamResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessGetTeamResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessGetTeamResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessGetTeamResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessGetTeamResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +363,13 @@ partial void ProcessGetTeamResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AccountGetTeamResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AccountGetTeamResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +397,13 @@ partial void ProcessGetTeamResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AccountGetTeamResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AccountGetTeamResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeams.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeams.g.cs
index 88bf563..5982c6f 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeams.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.GetTeams.g.cs
@@ -62,6 +62,24 @@ partial void ProcessGetTeamsResponseContent(
public async global::System.Threading.Tasks.Task GetTeamsAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetTeamsAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get teams
+ /// Get team information
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetTeamsAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -90,6 +108,7 @@ partial void ProcessGetTeamsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/account/teams",
baseUri: ResolveBaseUri(
@@ -164,6 +183,8 @@ partial void ProcessGetTeamsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -174,6 +195,11 @@ partial void ProcessGetTeamsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -191,6 +217,8 @@ partial void ProcessGetTeamsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -200,8 +228,7 @@ partial void ProcessGetTeamsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -210,6 +237,11 @@ partial void ProcessGetTeamsResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -226,14 +258,15 @@ partial void ProcessGetTeamsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -273,6 +306,8 @@ partial void ProcessGetTeamsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -293,6 +328,8 @@ partial void ProcessGetTeamsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -317,9 +354,13 @@ partial void ProcessGetTeamsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AccountGetTeamsResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AccountGetTeamsResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -347,9 +388,13 @@ partial void ProcessGetTeamsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AccountGetTeamsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AccountGetTeamsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.g.cs
index 11f376c..1cd3597 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAccountClient.g.cs
@@ -103,10 +103,10 @@ public SubpackageAccountClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public SubpackageAccountClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::ResembleAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::ResembleAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs
index 189fab0..4225f16 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs
@@ -68,6 +68,32 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
public async global::System.Threading.Tasks.Task AttachKnowledgeItemToAgentAsync(
global::System.Guid agentUuid,
+ global::ResembleAI.AttachKnowledgeItemToAgentRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await AttachKnowledgeItemToAgentAsResponseAsync(
+ agentUuid: agentUuid,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Attach knowledge item to agent
+ /// Attaches an existing knowledge item to an agent
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> AttachKnowledgeItemToAgentAsResponseAsync(
+ global::System.Guid agentUuid,
+
global::ResembleAI.AttachKnowledgeItemToAgentRequest request,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -103,6 +129,7 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/knowledge_items",
baseUri: ResolveBaseUri(
@@ -185,6 +212,8 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +224,11 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +246,8 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +257,7 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +266,11 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +287,15 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +335,8 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +357,8 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation error (not ready, already attached, etc.)
@@ -376,9 +421,13 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -406,9 +455,13 @@ partial void ProcessAttachKnowledgeItemToAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs
index bd0a999..577e1f7 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs
@@ -64,6 +64,29 @@ partial void ProcessCreateKnowledgeItemResponseContent(
///
public async global::System.Threading.Tasks.Task CreateKnowledgeItemAsync(
+ global::ResembleAI.CreateKnowledgeItemRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateKnowledgeItemAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create knowledge item
+ /// Creates a new knowledge item and queues it for ingestion processing
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateKnowledgeItemAsResponseAsync(
+
global::ResembleAI.CreateKnowledgeItemRequest request,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -98,6 +121,7 @@ partial void ProcessCreateKnowledgeItemResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/knowledge_items",
baseUri: ResolveBaseUri(
@@ -179,6 +203,8 @@ partial void ProcessCreateKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -189,6 +215,11 @@ partial void ProcessCreateKnowledgeItemResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -206,6 +237,8 @@ partial void ProcessCreateKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -215,8 +248,7 @@ partial void ProcessCreateKnowledgeItemResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -225,6 +257,11 @@ partial void ProcessCreateKnowledgeItemResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -241,14 +278,15 @@ partial void ProcessCreateKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -288,6 +326,8 @@ partial void ProcessCreateKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -308,6 +348,8 @@ partial void ProcessCreateKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation error
@@ -370,9 +412,13 @@ partial void ProcessCreateKnowledgeItemResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -400,9 +446,13 @@ partial void ProcessCreateKnowledgeItemResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs
index c689561..ad3e6df 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs
@@ -66,6 +66,27 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteKnowledgeItemAsResponseAsync(
+ uuid: uuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete knowledge item
+ /// Deletes a knowledge item and cleans up associated data
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DeleteKnowledgeItemAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/knowledge_items/{uuid}",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Knowledge item not found
@@ -361,9 +401,13 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -391,9 +435,13 @@ partial void ProcessDeleteKnowledgeItemResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs
index f1de210..d84d759 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs
@@ -70,6 +70,30 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
global::System.Guid knowledgeItemUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DetachKnowledgeItemFromAgentAsResponseAsync(
+ agentUuid: agentUuid,
+ knowledgeItemUuid: knowledgeItemUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Detach knowledge item from agent
+ /// Removes a knowledge item from an agent
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DetachKnowledgeItemFromAgentAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid knowledgeItemUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -100,6 +124,7 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}",
baseUri: ResolveBaseUri(
@@ -176,6 +201,8 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -186,6 +213,11 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -203,6 +235,8 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -212,8 +246,7 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -222,6 +255,11 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -238,14 +276,15 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -285,6 +324,8 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -305,6 +346,8 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Agent or knowledge item not found
@@ -405,9 +448,13 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -435,9 +482,13 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs
index 9db2f01..ad7cfd2 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs
@@ -66,6 +66,27 @@ partial void ProcessGetKnowledgeItemResponseContent(
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetKnowledgeItemAsResponseAsync(
+ uuid: uuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get knowledge item
+ /// Retrieves a single knowledge item with detailed information including attached agents
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetKnowledgeItemAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessGetKnowledgeItemResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/knowledge_items/{uuid}",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessGetKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessGetKnowledgeItemResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessGetKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessGetKnowledgeItemResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessGetKnowledgeItemResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessGetKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessGetKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessGetKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Knowledge item not found
@@ -361,9 +401,13 @@ partial void ProcessGetKnowledgeItemResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -391,9 +435,13 @@ partial void ProcessGetKnowledgeItemResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs
index 6837da1..2ad65b3 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs
@@ -66,6 +66,27 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
global::System.Guid agentUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListAgentKnowledgeItemsAsResponseAsync(
+ agentUuid: agentUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List agent's knowledge items
+ /// Lists all knowledge items attached to a specific agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> ListAgentKnowledgeItemsAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/knowledge_items",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Agent not found
@@ -361,9 +401,13 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -391,9 +435,13 @@ partial void ProcessListAgentKnowledgeItemsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs
index d4b93e3..807717e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs
@@ -82,6 +82,40 @@ partial void ProcessListKnowledgeItemsResponseContent(
int? perPage = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListKnowledgeItemsAsResponseAsync(
+ status: status,
+ sourceType: sourceType,
+ page: page,
+ perPage: perPage,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List knowledge items
+ /// List all knowledge items belonging to the authenticated user's team
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 20
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> ListKnowledgeItemsAsResponseAsync(
+ global::ResembleAI.KnowledgeItemsGetParametersStatus? status = default,
+ global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType = default,
+ int? page = default,
+ int? perPage = default,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -114,16 +148,17 @@ partial void ProcessListKnowledgeItemsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/knowledge_items",
baseUri: ResolveBaseUri(
servers: s_ListKnowledgeItemsServers,
- defaultBaseUrl: "https://f.cluster.resemble.ai/"));
+ defaultBaseUrl: "https://f.cluster.resemble.ai/"));
__pathBuilder
.AddOptionalParameter("status", status?.ToValueString())
.AddOptionalParameter("source_type", sourceType?.ToValueString())
.AddOptionalParameter("page", page?.ToString())
- .AddOptionalParameter("per_page", perPage?.ToString())
+ .AddOptionalParameter("per_page", perPage?.ToString())
;
var __path = __pathBuilder.ToString();
__path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -198,6 +233,8 @@ partial void ProcessListKnowledgeItemsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -208,6 +245,11 @@ partial void ProcessListKnowledgeItemsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -225,6 +267,8 @@ partial void ProcessListKnowledgeItemsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -234,8 +278,7 @@ partial void ProcessListKnowledgeItemsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -244,6 +287,11 @@ partial void ProcessListKnowledgeItemsResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -260,14 +308,15 @@ partial void ProcessListKnowledgeItemsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -307,6 +356,8 @@ partial void ProcessListKnowledgeItemsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -327,6 +378,8 @@ partial void ProcessListKnowledgeItemsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -351,9 +404,13 @@ partial void ProcessListKnowledgeItemsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -381,9 +438,13 @@ partial void ProcessListKnowledgeItemsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs
index 3f7d70f..5924f58 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs
@@ -66,6 +66,27 @@ partial void ProcessReingestKnowledgeItemResponseContent(
global::System.Guid uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ReingestKnowledgeItemAsResponseAsync(
+ uuid: uuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Re-ingest knowledge item
+ /// Re-runs the ingestion pipeline for an existing knowledge item
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> ReingestKnowledgeItemAsResponseAsync(
+ global::System.Guid uuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessReingestKnowledgeItemResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/knowledge_items/{uuid}/reingest",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessReingestKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessReingestKnowledgeItemResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessReingestKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessReingestKnowledgeItemResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessReingestKnowledgeItemResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessReingestKnowledgeItemResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessReingestKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessReingestKnowledgeItemResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Cannot reingest (already processing or rate limited)
@@ -361,9 +401,13 @@ partial void ProcessReingestKnowledgeItemResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -391,9 +435,13 @@ partial void ProcessReingestKnowledgeItemResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.g.cs
index ee3360f..6338960 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentKnowledgeBaseClient.g.cs
@@ -103,10 +103,10 @@ public SubpackageAgentKnowledgeBaseClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public SubpackageAgentKnowledgeBaseClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::ResembleAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::ResembleAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs
index 51ed59a..8bde087 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.CreatePhoneNumber.g.cs
@@ -64,6 +64,29 @@ partial void ProcessCreatePhoneNumberResponseContent(
///
public async global::System.Threading.Tasks.Task CreatePhoneNumberAsync(
+ global::ResembleAI.CreatePhoneNumberRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreatePhoneNumberAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create agent phone number
+ /// Create a new agent phone number
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreatePhoneNumberAsResponseAsync(
+
global::ResembleAI.CreatePhoneNumberRequest request,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -98,6 +121,7 @@ partial void ProcessCreatePhoneNumberResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/phone_numbers",
baseUri: ResolveBaseUri(
@@ -179,6 +203,8 @@ partial void ProcessCreatePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -189,6 +215,11 @@ partial void ProcessCreatePhoneNumberResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -206,6 +237,8 @@ partial void ProcessCreatePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -215,8 +248,7 @@ partial void ProcessCreatePhoneNumberResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -225,6 +257,11 @@ partial void ProcessCreatePhoneNumberResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -241,14 +278,15 @@ partial void ProcessCreatePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -288,6 +326,8 @@ partial void ProcessCreatePhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -308,6 +348,8 @@ partial void ProcessCreatePhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -332,9 +374,13 @@ partial void ProcessCreatePhoneNumberResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -362,9 +408,13 @@ partial void ProcessCreatePhoneNumberResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs
index 8674213..80f4b0c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.DeletePhoneNumber.g.cs
@@ -66,6 +66,27 @@ partial void ProcessDeletePhoneNumberResponseContent(
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeletePhoneNumberAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete agent phone number
+ /// Delete an agent phone number
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DeletePhoneNumberAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessDeletePhoneNumberResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/phone_numbers/{id}",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessDeletePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessDeletePhoneNumberResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessDeletePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessDeletePhoneNumberResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessDeletePhoneNumberResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessDeletePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessDeletePhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessDeletePhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +363,13 @@ partial void ProcessDeletePhoneNumberResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +397,13 @@ partial void ProcessDeletePhoneNumberResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs
index 259da1f..6171b84 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs
@@ -66,6 +66,27 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ForceDeletePhoneNumberAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Force delete agent phone number
+ /// Force delete an agent phone number even if linked to agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> ForceDeletePhoneNumberAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/phone_numbers/{id}/force",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +363,13 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +397,13 @@ partial void ProcessForceDeletePhoneNumberResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs
index 9e29b20..dd7ca2a 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.GetPhoneNumber.g.cs
@@ -66,6 +66,27 @@ partial void ProcessGetPhoneNumberResponseContent(
int id,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetPhoneNumberAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get agent phone number
+ /// Get agent phone number details
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetPhoneNumberAsResponseAsync(
+ int id,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessGetPhoneNumberResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/phone_numbers/{id}",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessGetPhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessGetPhoneNumberResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessGetPhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessGetPhoneNumberResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessGetPhoneNumberResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessGetPhoneNumberResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessGetPhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessGetPhoneNumberResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +363,13 @@ partial void ProcessGetPhoneNumberResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +397,13 @@ partial void ProcessGetPhoneNumberResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs
index 997ce62..e911473 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.ListPhoneNumbers.g.cs
@@ -62,6 +62,24 @@ partial void ProcessListPhoneNumbersResponseContent(
public async global::System.Threading.Tasks.Task ListPhoneNumbersAsync(
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListPhoneNumbersAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List agent phone numbers
+ /// List all agent phone numbers
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> ListPhoneNumbersAsResponseAsync(
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -90,6 +108,7 @@ partial void ProcessListPhoneNumbersResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: "/phone_numbers",
baseUri: ResolveBaseUri(
@@ -164,6 +183,8 @@ partial void ProcessListPhoneNumbersResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -174,6 +195,11 @@ partial void ProcessListPhoneNumbersResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -191,6 +217,8 @@ partial void ProcessListPhoneNumbersResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -200,8 +228,7 @@ partial void ProcessListPhoneNumbersResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -210,6 +237,11 @@ partial void ProcessListPhoneNumbersResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -226,14 +258,15 @@ partial void ProcessListPhoneNumbersResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -273,6 +306,8 @@ partial void ProcessListPhoneNumbersResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -293,6 +328,8 @@ partial void ProcessListPhoneNumbersResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -317,9 +354,13 @@ partial void ProcessListPhoneNumbersResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -347,9 +388,13 @@ partial void ProcessListPhoneNumbersResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.g.cs
index 3ba4bf1..34a8931 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentPhoneNumbersClient.g.cs
@@ -103,10 +103,10 @@ public SubpackageAgentPhoneNumbersClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public SubpackageAgentPhoneNumbersClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::ResembleAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::ResembleAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.CreateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.CreateAgentTool.g.cs
index 8d4141f..fa75a4b 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.CreateAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.CreateAgentTool.g.cs
@@ -68,6 +68,32 @@ partial void ProcessCreateAgentToolResponseContent(
public async global::System.Threading.Tasks.Task CreateAgentToolAsync(
global::System.Guid agentUuid,
+ global::ResembleAI.CreateAgentToolRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateAgentToolAsResponseAsync(
+ agentUuid: agentUuid,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create agent tool
+ /// Create a new tool for an agent
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+
global::ResembleAI.CreateAgentToolRequest request,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -103,6 +129,7 @@ partial void ProcessCreateAgentToolResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/tools",
baseUri: ResolveBaseUri(
@@ -185,6 +212,8 @@ partial void ProcessCreateAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +224,11 @@ partial void ProcessCreateAgentToolResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +246,8 @@ partial void ProcessCreateAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +257,7 @@ partial void ProcessCreateAgentToolResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +266,11 @@ partial void ProcessCreateAgentToolResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +287,15 @@ partial void ProcessCreateAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +335,8 @@ partial void ProcessCreateAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +357,8 @@ partial void ProcessCreateAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -338,9 +383,13 @@ partial void ProcessCreateAgentToolResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentToolsCreateAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentToolsCreateAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -368,9 +417,13 @@ partial void ProcessCreateAgentToolResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentToolsCreateAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentToolsCreateAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.DeleteAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.DeleteAgentTool.g.cs
index fa4cbf9..789041e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.DeleteAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.DeleteAgentTool.g.cs
@@ -70,6 +70,30 @@ partial void ProcessDeleteAgentToolResponseContent(
global::System.Guid toolUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteAgentToolAsResponseAsync(
+ agentUuid: agentUuid,
+ toolUuid: toolUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete agent tool
+ /// Delete a tool
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DeleteAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid toolUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -100,6 +124,7 @@ partial void ProcessDeleteAgentToolResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/tools/{toolUuid}",
baseUri: ResolveBaseUri(
@@ -176,6 +201,8 @@ partial void ProcessDeleteAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -186,6 +213,11 @@ partial void ProcessDeleteAgentToolResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -203,6 +235,8 @@ partial void ProcessDeleteAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -212,8 +246,7 @@ partial void ProcessDeleteAgentToolResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -222,6 +255,11 @@ partial void ProcessDeleteAgentToolResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -238,14 +276,15 @@ partial void ProcessDeleteAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -285,6 +324,8 @@ partial void ProcessDeleteAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -305,6 +346,8 @@ partial void ProcessDeleteAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -329,9 +372,13 @@ partial void ProcessDeleteAgentToolResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentToolsDeleteAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentToolsDeleteAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -359,9 +406,13 @@ partial void ProcessDeleteAgentToolResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentToolsDeleteAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentToolsDeleteAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.GetAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.GetAgentTool.g.cs
index 9a813e6..2ef1e1e 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.GetAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.GetAgentTool.g.cs
@@ -70,6 +70,30 @@ partial void ProcessGetAgentToolResponseContent(
global::System.Guid toolUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetAgentToolAsResponseAsync(
+ agentUuid: agentUuid,
+ toolUuid: toolUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get agent tool
+ /// Get details of a specific tool
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid toolUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -100,6 +124,7 @@ partial void ProcessGetAgentToolResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/tools/{toolUuid}",
baseUri: ResolveBaseUri(
@@ -176,6 +201,8 @@ partial void ProcessGetAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -186,6 +213,11 @@ partial void ProcessGetAgentToolResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -203,6 +235,8 @@ partial void ProcessGetAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -212,8 +246,7 @@ partial void ProcessGetAgentToolResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -222,6 +255,11 @@ partial void ProcessGetAgentToolResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -238,14 +276,15 @@ partial void ProcessGetAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -285,6 +324,8 @@ partial void ProcessGetAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -305,6 +346,8 @@ partial void ProcessGetAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -329,9 +372,13 @@ partial void ProcessGetAgentToolResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentToolsGetAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentToolsGetAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -359,9 +406,13 @@ partial void ProcessGetAgentToolResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentToolsGetAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentToolsGetAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.ListAgentTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.ListAgentTools.g.cs
index 12fb173..4192c11 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.ListAgentTools.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.ListAgentTools.g.cs
@@ -66,6 +66,27 @@ partial void ProcessListAgentToolsResponseContent(
global::System.Guid agentUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListAgentToolsAsResponseAsync(
+ agentUuid: agentUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List agent tools
+ /// List all tools for an agent
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> ListAgentToolsAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,6 +116,7 @@ partial void ProcessListAgentToolsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/tools",
baseUri: ResolveBaseUri(
@@ -170,6 +192,8 @@ partial void ProcessListAgentToolsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -180,6 +204,11 @@ partial void ProcessListAgentToolsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -197,6 +226,8 @@ partial void ProcessListAgentToolsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -206,8 +237,7 @@ partial void ProcessListAgentToolsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -216,6 +246,11 @@ partial void ProcessListAgentToolsResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -232,14 +267,15 @@ partial void ProcessListAgentToolsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -279,6 +315,8 @@ partial void ProcessListAgentToolsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -299,6 +337,8 @@ partial void ProcessListAgentToolsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -323,9 +363,13 @@ partial void ProcessListAgentToolsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentToolsListAgentToolsResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentToolsListAgentToolsResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -353,9 +397,13 @@ partial void ProcessListAgentToolsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentToolsListAgentToolsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentToolsListAgentToolsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.UpdateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.UpdateAgentTool.g.cs
index e1f22da..6ea4038 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.UpdateAgentTool.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.UpdateAgentTool.g.cs
@@ -72,6 +72,35 @@ partial void ProcessUpdateAgentToolResponseContent(
global::System.Guid agentUuid,
global::System.Guid toolUuid,
+ global::ResembleAI.UpdateAgentToolRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await UpdateAgentToolAsResponseAsync(
+ agentUuid: agentUuid,
+ toolUuid: toolUuid,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Update agent tool
+ /// Update an existing tool
+ ///
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> UpdateAgentToolAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid toolUuid,
+
global::ResembleAI.UpdateAgentToolRequest request,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -108,6 +137,7 @@ partial void ProcessUpdateAgentToolResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/tools/{toolUuid}",
baseUri: ResolveBaseUri(
@@ -191,6 +221,8 @@ partial void ProcessUpdateAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -201,6 +233,11 @@ partial void ProcessUpdateAgentToolResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -218,6 +255,8 @@ partial void ProcessUpdateAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -227,8 +266,7 @@ partial void ProcessUpdateAgentToolResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -237,6 +275,11 @@ partial void ProcessUpdateAgentToolResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -253,14 +296,15 @@ partial void ProcessUpdateAgentToolResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -300,6 +344,8 @@ partial void ProcessUpdateAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -320,6 +366,8 @@ partial void ProcessUpdateAgentToolResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -344,9 +392,13 @@ partial void ProcessUpdateAgentToolResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentToolsUpdateAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentToolsUpdateAgentToolResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -374,9 +426,13 @@ partial void ProcessUpdateAgentToolResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentToolsUpdateAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentToolsUpdateAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.g.cs
index 71b06e6..e5c79cf 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentToolsClient.g.cs
@@ -103,10 +103,10 @@ public SubpackageAgentToolsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public SubpackageAgentToolsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::ResembleAI.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::ResembleAI.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs
index 2b9dd7d..af20383 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.CreateAgentWebhook.g.cs
@@ -68,6 +68,32 @@ partial void ProcessCreateAgentWebhookResponseContent(
public async global::System.Threading.Tasks.Task CreateAgentWebhookAsync(
global::System.Guid agentUuid,
+ global::ResembleAI.CreateAgentWebhookRequest request,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateAgentWebhookAsResponseAsync(
+ agentUuid: agentUuid,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create agent webhook
+ /// Create a new webhook for an agent
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+
global::ResembleAI.CreateAgentWebhookRequest request,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -103,6 +129,7 @@ partial void ProcessCreateAgentWebhookResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/webhooks",
baseUri: ResolveBaseUri(
@@ -185,6 +212,8 @@ partial void ProcessCreateAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -195,6 +224,11 @@ partial void ProcessCreateAgentWebhookResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -212,6 +246,8 @@ partial void ProcessCreateAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -221,8 +257,7 @@ partial void ProcessCreateAgentWebhookResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -231,6 +266,11 @@ partial void ProcessCreateAgentWebhookResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -247,14 +287,15 @@ partial void ProcessCreateAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -294,6 +335,8 @@ partial void ProcessCreateAgentWebhookResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -314,6 +357,8 @@ partial void ProcessCreateAgentWebhookResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -338,9 +383,13 @@ partial void ProcessCreateAgentWebhookResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -368,9 +417,13 @@ partial void ProcessCreateAgentWebhookResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs
index 2dae17c..2f6e0c0 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.DeleteAgentWebhook.g.cs
@@ -70,6 +70,30 @@ partial void ProcessDeleteAgentWebhookResponseContent(
global::System.Guid webhookUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteAgentWebhookAsResponseAsync(
+ agentUuid: agentUuid,
+ webhookUuid: webhookUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete agent webhook
+ /// Delete a webhook
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DeleteAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid webhookUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -100,6 +124,7 @@ partial void ProcessDeleteAgentWebhookResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/webhooks/{webhookUuid}",
baseUri: ResolveBaseUri(
@@ -176,6 +201,8 @@ partial void ProcessDeleteAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -186,6 +213,11 @@ partial void ProcessDeleteAgentWebhookResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -203,6 +235,8 @@ partial void ProcessDeleteAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -212,8 +246,7 @@ partial void ProcessDeleteAgentWebhookResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -222,6 +255,11 @@ partial void ProcessDeleteAgentWebhookResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -238,14 +276,15 @@ partial void ProcessDeleteAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -285,6 +324,8 @@ partial void ProcessDeleteAgentWebhookResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -305,6 +346,8 @@ partial void ProcessDeleteAgentWebhookResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -329,9 +372,13 @@ partial void ProcessDeleteAgentWebhookResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -359,9 +406,13 @@ partial void ProcessDeleteAgentWebhookResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.GetAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.GetAgentWebhook.g.cs
index f910f6a..fff2b22 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.GetAgentWebhook.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.GetAgentWebhook.g.cs
@@ -70,6 +70,30 @@ partial void ProcessGetAgentWebhookResponseContent(
global::System.Guid webhookUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetAgentWebhookAsResponseAsync(
+ agentUuid: agentUuid,
+ webhookUuid: webhookUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get agent webhook
+ /// Get details of a specific webhook
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetAgentWebhookAsResponseAsync(
+ global::System.Guid agentUuid,
+ global::System.Guid webhookUuid,
+ global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -100,6 +124,7 @@ partial void ProcessGetAgentWebhookResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::ResembleAI.PathBuilder(
path: $"/agents/{agentUuid}/webhooks/{webhookUuid}",
baseUri: ResolveBaseUri(
@@ -176,6 +201,8 @@ partial void ProcessGetAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -186,6 +213,11 @@ partial void ProcessGetAgentWebhookResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -203,6 +235,8 @@ partial void ProcessGetAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -212,8 +246,7 @@ partial void ProcessGetAgentWebhookResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -222,6 +255,11 @@ partial void ProcessGetAgentWebhookResponseContent(
__attempt < __maxAttempts &&
global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -238,14 +276,15 @@ partial void ProcessGetAgentWebhookResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -285,6 +324,8 @@ partial void ProcessGetAgentWebhookResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -305,6 +346,8 @@ partial void ProcessGetAgentWebhookResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -329,9 +372,13 @@ partial void ProcessGetAgentWebhookResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -359,9 +406,13 @@ partial void ProcessGetAgentWebhookResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::ResembleAI.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs
index 740176c..2756f7c 100644
--- a/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs
+++ b/src/libs/ResembleAI/Generated/ResembleAI.SubpackageAgentWebhooksClient.ListAgentWebhooks.g.cs
@@ -66,6 +66,27 @@ partial void ProcessListAgentWebhooksResponseContent(
global::System.Guid agentUuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListAgentWebhooksAsResponseAsync(
+ agentUuid: agentUuid,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List agent webhooks