diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs
new file mode 100644
index 0000000..e83677e
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.AuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs
@@ -0,0 +1,474 @@
+
+#nullable enable
+
+namespace Presenton
+{
+ public partial class AuthClient
+ {
+
+
+ private static readonly global::Presenton.EndPointSecurityRequirement s_ChangePasswordApiV1AuthProfileChangePasswordPostSecurityRequirement0 =
+ new global::Presenton.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
+ { new global::Presenton.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_ChangePasswordApiV1AuthProfileChangePasswordPostSecurityRequirements =
+ new global::Presenton.EndPointSecurityRequirement[]
+ { s_ChangePasswordApiV1AuthProfileChangePasswordPostSecurityRequirement0,
+ };
+ partial void PrepareChangePasswordApiV1AuthProfileChangePasswordPostArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Presenton.ChangePasswordRequest request);
+ partial void PrepareChangePasswordApiV1AuthProfileChangePasswordPostRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Presenton.ChangePasswordRequest request);
+ partial void ProcessChangePasswordApiV1AuthProfileChangePasswordPostResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ ///
+ /// Change Password
+ ///
+ ///
+ /// 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 ChangePasswordApiV1AuthProfileChangePasswordPostAsync(
+
+ global::Presenton.ChangePasswordRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await ChangePasswordApiV1AuthProfileChangePasswordPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Change Password
+ ///
+ ///
+ /// 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 ChangePasswordApiV1AuthProfileChangePasswordPostAsResponseAsync(
+
+ global::Presenton.ChangePasswordRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareChangePasswordApiV1AuthProfileChangePasswordPostArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ChangePasswordApiV1AuthProfileChangePasswordPostSecurityRequirements,
+ operationName: "ChangePasswordApiV1AuthProfileChangePasswordPostAsync");
+
+ using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Presenton.PathBuilder(
+ path: "/api/v1/auth/profile/change-password",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareChangePasswordApiV1AuthProfileChangePasswordPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChangePasswordApiV1AuthProfileChangePasswordPost",
+ methodName: "ChangePasswordApiV1AuthProfileChangePasswordPostAsync",
+ pathTemplate: "\"/api/v1/auth/profile/change-password\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChangePasswordApiV1AuthProfileChangePasswordPost",
+ methodName: "ChangePasswordApiV1AuthProfileChangePasswordPostAsync",
+ pathTemplate: "\"/api/v1/auth/profile/change-password\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChangePasswordApiV1AuthProfileChangePasswordPost",
+ methodName: "ChangePasswordApiV1AuthProfileChangePasswordPostAsync",
+ pathTemplate: "\"/api/v1/auth/profile/change-password\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessChangePasswordApiV1AuthProfileChangePasswordPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChangePasswordApiV1AuthProfileChangePasswordPost",
+ methodName: "ChangePasswordApiV1AuthProfileChangePasswordPostAsync",
+ pathTemplate: "\"/api/v1/auth/profile/change-password\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChangePasswordApiV1AuthProfileChangePasswordPost",
+ methodName: "ChangePasswordApiV1AuthProfileChangePasswordPostAsync",
+ pathTemplate: "\"/api/v1/auth/profile/change-password\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Presenton.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ responseBody: __content_422,
+ responseObject: __value_422,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return new global::Presenton.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ return new global::Presenton.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Change Password
+ ///
+ ///
+ ///
+ /// 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 ChangePasswordApiV1AuthProfileChangePasswordPostAsync(
+ string currentPassword,
+ string newPassword,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Presenton.ChangePasswordRequest
+ {
+ CurrentPassword = currentPassword,
+ NewPassword = newPassword,
+ };
+
+ await ChangePasswordApiV1AuthProfileChangePasswordPostAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs
index 3a28ba6..db776ef 100644
--- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs
@@ -335,70 +335,70 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
- // Bad Request
- if ((int)__response.StatusCode == 400)
+ //
+ if ((int)__response.StatusCode == 401)
{
- string? __content_400 = null;
- global::System.Exception? __exception_400 = null;
- global::Presenton.ErrorModel? __value_400 = null;
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
try
{
if (__effectiveReadResponseAsString)
{
- __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
else
{
- __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
{
- __exception_400 = __ex;
+ __exception_401 = __ex;
}
- throw global::Presenton.ApiException.Create(
+ throw global::Presenton.ApiException.Create(
statusCode: __response.StatusCode,
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- responseBody: __content_400,
- responseObject: __value_400,
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ responseBody: __content_401,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
- //
- if ((int)__response.StatusCode == 401)
+ // Bad Request
+ if ((int)__response.StatusCode == 400)
{
- string? __content_401 = null;
- global::System.Exception? __exception_401 = null;
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ global::Presenton.ErrorModel? __value_400 = null;
try
{
if (__effectiveReadResponseAsString)
{
- __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
}
else
{
- __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
- __exception_401 = __ex;
+ __exception_400 = __ex;
}
- throw global::Presenton.ApiException.Create(
+ throw global::Presenton.ApiException.Create(
statusCode: __response.StatusCode,
- message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_401,
- responseBody: __content_401,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs
index 67a6a9b..542b1bf 100644
--- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs
@@ -344,43 +344,6 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
- // Bad Request
- if ((int)__response.StatusCode == 400)
- {
- string? __content_400 = null;
- global::System.Exception? __exception_400 = null;
- global::Presenton.ErrorModel? __value_400 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
- }
- else
- {
- __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_400 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_400,
- responseBody: __content_400,
- responseObject: __value_400,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
//
if ((int)__response.StatusCode == 401)
{
@@ -477,6 +440,43 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent(
h => h.Key,
h => h.Value));
}
+ // Bad Request
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ global::Presenton.ErrorModel? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
// Validation Error
if ((int)__response.StatusCode == 422)
{
diff --git a/src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.ChatMessageApiV3ChatMessagePost.g.cs
similarity index 84%
rename from src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.ChatClient.ChatMessageApiV3ChatMessagePost.g.cs
index 064bfdf..6b87d1f 100644
--- a/src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.ChatMessageApiV3ChatMessagePost.g.cs
@@ -3,11 +3,11 @@
namespace Presenton
{
- public partial class SlideToReactClient
+ public partial class ChatClient
{
- private static readonly global::Presenton.EndPointSecurityRequirement s_ConvertSlideToReactApiV1PptSlideToReactPostSecurityRequirement0 =
+ private static readonly global::Presenton.EndPointSecurityRequirement s_ChatMessageApiV3ChatMessagePostSecurityRequirement0 =
new global::Presenton.EndPointSecurityRequirement
{
Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
@@ -21,40 +21,40 @@ public partial class SlideToReactClient
},
},
};
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_ConvertSlideToReactApiV1PptSlideToReactPostSecurityRequirements =
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_ChatMessageApiV3ChatMessagePostSecurityRequirements =
new global::Presenton.EndPointSecurityRequirement[]
- { s_ConvertSlideToReactApiV1PptSlideToReactPostSecurityRequirement0,
+ { s_ChatMessageApiV3ChatMessagePostSecurityRequirement0,
};
- partial void PrepareConvertSlideToReactApiV1PptSlideToReactPostArguments(
+ partial void PrepareChatMessageApiV3ChatMessagePostArguments(
global::System.Net.Http.HttpClient httpClient,
- global::Presenton.SlideToReactRequest request);
- partial void PrepareConvertSlideToReactApiV1PptSlideToReactPostRequest(
+ global::Presenton.ChatMessageRequest request);
+ partial void PrepareChatMessageApiV3ChatMessagePostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.SlideToReactRequest request);
- partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponse(
+ global::Presenton.ChatMessageRequest request);
+ partial void ProcessChatMessageApiV3ChatMessagePostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
+ partial void ProcessChatMessageApiV3ChatMessagePostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Convert Slide To React
+ /// Chat Message
///
///
/// 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 ConvertSlideToReactApiV1PptSlideToReactPostAsync(
+ public async global::System.Threading.Tasks.Task ChatMessageApiV3ChatMessagePostAsync(
- global::Presenton.SlideToReactRequest request,
+ global::Presenton.ChatMessageRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await ConvertSlideToReactApiV1PptSlideToReactPostAsResponseAsync(
+ var __response = await ChatMessageApiV3ChatMessagePostAsResponseAsync(
request: request,
requestOptions: requestOptions,
@@ -64,15 +64,15 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
return __response.Body;
}
///
- /// Convert Slide To React
+ /// Chat Message
///
///
/// 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> ConvertSlideToReactApiV1PptSlideToReactPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> ChatMessageApiV3ChatMessagePostAsResponseAsync(
- global::Presenton.SlideToReactRequest request,
+ global::Presenton.ChatMessageRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -80,15 +80,15 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
PrepareArguments(
client: HttpClient);
- PrepareConvertSlideToReactApiV1PptSlideToReactPostArguments(
+ PrepareChatMessageApiV3ChatMessagePostArguments(
httpClient: HttpClient,
request: request);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_ConvertSlideToReactApiV1PptSlideToReactPostSecurityRequirements,
- operationName: "ConvertSlideToReactApiV1PptSlideToReactPostAsync");
+ securityRequirements: s_ChatMessageApiV3ChatMessagePostSecurityRequirements,
+ operationName: "ChatMessageApiV3ChatMessagePostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -108,7 +108,7 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
{
var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/slide-to-react/",
+ path: "/api/v3/chat/message",
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
__path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -153,7 +153,7 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareConvertSlideToReactApiV1PptSlideToReactPostRequest(
+ PrepareChatMessageApiV3ChatMessagePostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -173,9 +173,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToReactApiV1PptSlideToReactPost",
- methodName: "ConvertSlideToReactApiV1PptSlideToReactPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-react/\"",
+ operationId: "ChatMessageApiV3ChatMessagePost",
+ methodName: "ChatMessageApiV3ChatMessagePostAsync",
+ pathTemplate: "\"/api/v3/chat/message\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -207,9 +207,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToReactApiV1PptSlideToReactPost",
- methodName: "ConvertSlideToReactApiV1PptSlideToReactPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-react/\"",
+ operationId: "ChatMessageApiV3ChatMessagePost",
+ methodName: "ChatMessageApiV3ChatMessagePostAsync",
+ pathTemplate: "\"/api/v3/chat/message\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -248,9 +248,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToReactApiV1PptSlideToReactPost",
- methodName: "ConvertSlideToReactApiV1PptSlideToReactPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-react/\"",
+ operationId: "ChatMessageApiV3ChatMessagePost",
+ methodName: "ChatMessageApiV3ChatMessagePostAsync",
+ pathTemplate: "\"/api/v3/chat/message\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -288,7 +288,7 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessConvertSlideToReactApiV1PptSlideToReactPostResponse(
+ ProcessChatMessageApiV3ChatMessagePostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -296,9 +296,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToReactApiV1PptSlideToReactPost",
- methodName: "ConvertSlideToReactApiV1PptSlideToReactPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-react/\"",
+ operationId: "ChatMessageApiV3ChatMessagePost",
+ methodName: "ChatMessageApiV3ChatMessagePostAsync",
+ pathTemplate: "\"/api/v3/chat/message\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -318,9 +318,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToReactApiV1PptSlideToReactPost",
- methodName: "ConvertSlideToReactApiV1PptSlideToReactPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-react/\"",
+ operationId: "ChatMessageApiV3ChatMessagePost",
+ methodName: "ChatMessageApiV3ChatMessagePostAsync",
+ pathTemplate: "\"/api/v3/chat/message\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -385,7 +385,7 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
- ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
+ ProcessChatMessageApiV3ChatMessagePostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -394,9 +394,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __value = global::Presenton.SlideToReactResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Presenton.ChatMessageResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -426,9 +426,9 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
#endif
).ConfigureAwait(false);
- var __value = await global::Presenton.SlideToReactResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Presenton.ChatMessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -469,32 +469,34 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent(
}
}
///
- /// Convert Slide To React
+ /// Chat Message
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
/// 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 ConvertSlideToReactApiV1PptSlideToReactPostAsync(
- string image,
- string markdownContent,
- object designSystem,
- global::System.Collections.Generic.IList? fonts = default,
+ public async global::System.Threading.Tasks.Task ChatMessageApiV3ChatMessagePostAsync(
+ global::System.Guid presentationId,
+ string message,
+ global::Presenton.ChatMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? conversationId = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __request = new global::Presenton.SlideToReactRequest
+ var __request = new global::Presenton.ChatMessageRequest
{
- Image = image,
- MarkdownContent = markdownContent,
- DesignSystem = designSystem,
- Fonts = fonts,
+ PresentationId = presentationId,
+ PresentationType = presentationType,
+ Message = message,
+ ConversationId = conversationId,
};
- return await ConvertSlideToReactApiV1PptSlideToReactPostAsync(
+ return await ChatMessageApiV3ChatMessagePostAsync(
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/Presenton/Generated/Presenton.ChatClient.ChatMessageStreamApiV3ChatMessageStreamPost.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.ChatMessageStreamApiV3ChatMessageStreamPost.g.cs
new file mode 100644
index 0000000..6ca33b0
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.ChatMessageStreamApiV3ChatMessageStreamPost.g.cs
@@ -0,0 +1,501 @@
+
+#nullable enable
+
+namespace Presenton
+{
+ public partial class ChatClient
+ {
+
+
+ private static readonly global::Presenton.EndPointSecurityRequirement s_ChatMessageStreamApiV3ChatMessageStreamPostSecurityRequirement0 =
+ new global::Presenton.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
+ { new global::Presenton.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_ChatMessageStreamApiV3ChatMessageStreamPostSecurityRequirements =
+ new global::Presenton.EndPointSecurityRequirement[]
+ { s_ChatMessageStreamApiV3ChatMessageStreamPostSecurityRequirement0,
+ };
+ partial void PrepareChatMessageStreamApiV3ChatMessageStreamPostArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Presenton.ChatMessageRequest request);
+ partial void PrepareChatMessageStreamApiV3ChatMessageStreamPostRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Presenton.ChatMessageRequest request);
+ partial void ProcessChatMessageStreamApiV3ChatMessageStreamPostResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessChatMessageStreamApiV3ChatMessageStreamPostResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Chat Message Stream
+ ///
+ ///
+ /// 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 ChatMessageStreamApiV3ChatMessageStreamPostAsync(
+
+ global::Presenton.ChatMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ChatMessageStreamApiV3ChatMessageStreamPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Chat Message Stream
+ ///
+ ///
+ /// 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> ChatMessageStreamApiV3ChatMessageStreamPostAsResponseAsync(
+
+ global::Presenton.ChatMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareChatMessageStreamApiV3ChatMessageStreamPostArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ChatMessageStreamApiV3ChatMessageStreamPostSecurityRequirements,
+ operationName: "ChatMessageStreamApiV3ChatMessageStreamPostAsync");
+
+ using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Presenton.PathBuilder(
+ path: "/api/v3/chat/message/stream",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareChatMessageStreamApiV3ChatMessageStreamPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChatMessageStreamApiV3ChatMessageStreamPost",
+ methodName: "ChatMessageStreamApiV3ChatMessageStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChatMessageStreamApiV3ChatMessageStreamPost",
+ methodName: "ChatMessageStreamApiV3ChatMessageStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChatMessageStreamApiV3ChatMessageStreamPost",
+ methodName: "ChatMessageStreamApiV3ChatMessageStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessChatMessageStreamApiV3ChatMessageStreamPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChatMessageStreamApiV3ChatMessageStreamPost",
+ methodName: "ChatMessageStreamApiV3ChatMessageStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ChatMessageStreamApiV3ChatMessageStreamPost",
+ methodName: "ChatMessageStreamApiV3ChatMessageStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Presenton.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ responseBody: __content_422,
+ responseObject: __value_422,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessChatMessageStreamApiV3ChatMessageStreamPostResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return new global::Presenton.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return new global::Presenton.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Chat Message Stream
+ ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ /// 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 ChatMessageStreamApiV3ChatMessageStreamPostAsync(
+ global::System.Guid presentationId,
+ string message,
+ global::Presenton.ChatMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? conversationId = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Presenton.ChatMessageRequest
+ {
+ PresentationId = presentationId,
+ PresentationType = presentationType,
+ Message = message,
+ ConversationId = conversationId,
+ };
+
+ return await ChatMessageStreamApiV3ChatMessageStreamPostAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.EditChatMessageApiV3ChatMessageEditPost.g.cs
similarity index 83%
rename from src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.ChatClient.EditChatMessageApiV3ChatMessageEditPost.g.cs
index 73212cb..2d0f133 100644
--- a/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.EditChatMessageApiV3ChatMessageEditPost.g.cs
@@ -3,11 +3,11 @@
namespace Presenton
{
- public partial class SlideToHtmlClient
+ public partial class ChatClient
{
- private static readonly global::Presenton.EndPointSecurityRequirement s_ConvertSlideToHtmlApiV1PptSlideToHtmlPostSecurityRequirement0 =
+ private static readonly global::Presenton.EndPointSecurityRequirement s_EditChatMessageApiV3ChatMessageEditPostSecurityRequirement0 =
new global::Presenton.EndPointSecurityRequirement
{
Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
@@ -21,45 +21,40 @@ public partial class SlideToHtmlClient
},
},
};
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_ConvertSlideToHtmlApiV1PptSlideToHtmlPostSecurityRequirements =
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_EditChatMessageApiV3ChatMessageEditPostSecurityRequirements =
new global::Presenton.EndPointSecurityRequirement[]
- { s_ConvertSlideToHtmlApiV1PptSlideToHtmlPostSecurityRequirement0,
+ { s_EditChatMessageApiV3ChatMessageEditPostSecurityRequirement0,
};
- partial void PrepareConvertSlideToHtmlApiV1PptSlideToHtmlPostArguments(
+ partial void PrepareEditChatMessageApiV3ChatMessageEditPostArguments(
global::System.Net.Http.HttpClient httpClient,
- global::Presenton.SlideToHtmlRequest request);
- partial void PrepareConvertSlideToHtmlApiV1PptSlideToHtmlPostRequest(
+ global::Presenton.ChatEditMessageRequest request);
+ partial void PrepareEditChatMessageApiV3ChatMessageEditPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.SlideToHtmlRequest request);
- partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponse(
+ global::Presenton.ChatEditMessageRequest request);
+ partial void ProcessEditChatMessageApiV3ChatMessageEditPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
+ partial void ProcessEditChatMessageApiV3ChatMessageEditPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Convert Slide To Html
- /// Convert a slide image and its OXML data to HTML using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing image path and XML content
- /// Returns:
- /// SlideToHtmlResponse with generated HTML
+ /// Edit Chat Message
///
///
/// 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 ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync(
+ public async global::System.Threading.Tasks.Task EditChatMessageApiV3ChatMessageEditPostAsync(
- global::Presenton.SlideToHtmlRequest request,
+ global::Presenton.ChatEditMessageRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsResponseAsync(
+ var __response = await EditChatMessageApiV3ChatMessageEditPostAsResponseAsync(
request: request,
requestOptions: requestOptions,
@@ -69,20 +64,15 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
return __response.Body;
}
///
- /// Convert Slide To Html
- /// Convert a slide image and its OXML data to HTML using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing image path and XML content
- /// Returns:
- /// SlideToHtmlResponse with generated HTML
+ /// Edit Chat Message
///
///
/// 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> ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> EditChatMessageApiV3ChatMessageEditPostAsResponseAsync(
- global::Presenton.SlideToHtmlRequest request,
+ global::Presenton.ChatEditMessageRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -90,15 +80,15 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
PrepareArguments(
client: HttpClient);
- PrepareConvertSlideToHtmlApiV1PptSlideToHtmlPostArguments(
+ PrepareEditChatMessageApiV3ChatMessageEditPostArguments(
httpClient: HttpClient,
request: request);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_ConvertSlideToHtmlApiV1PptSlideToHtmlPostSecurityRequirements,
- operationName: "ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync");
+ securityRequirements: s_EditChatMessageApiV3ChatMessageEditPostSecurityRequirements,
+ operationName: "EditChatMessageApiV3ChatMessageEditPostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -118,7 +108,7 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
{
var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/slide-to-html/",
+ path: "/api/v3/chat/message/edit",
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
__path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -163,7 +153,7 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareConvertSlideToHtmlApiV1PptSlideToHtmlPostRequest(
+ PrepareEditChatMessageApiV3ChatMessageEditPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -183,9 +173,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToHtmlApiV1PptSlideToHtmlPost",
- methodName: "ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-html/\"",
+ operationId: "EditChatMessageApiV3ChatMessageEditPost",
+ methodName: "EditChatMessageApiV3ChatMessageEditPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -217,9 +207,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToHtmlApiV1PptSlideToHtmlPost",
- methodName: "ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-html/\"",
+ operationId: "EditChatMessageApiV3ChatMessageEditPost",
+ methodName: "EditChatMessageApiV3ChatMessageEditPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -258,9 +248,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToHtmlApiV1PptSlideToHtmlPost",
- methodName: "ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-html/\"",
+ operationId: "EditChatMessageApiV3ChatMessageEditPost",
+ methodName: "EditChatMessageApiV3ChatMessageEditPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -298,7 +288,7 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponse(
+ ProcessEditChatMessageApiV3ChatMessageEditPostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -306,9 +296,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToHtmlApiV1PptSlideToHtmlPost",
- methodName: "ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-html/\"",
+ operationId: "EditChatMessageApiV3ChatMessageEditPost",
+ methodName: "EditChatMessageApiV3ChatMessageEditPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -328,9 +318,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ConvertSlideToHtmlApiV1PptSlideToHtmlPost",
- methodName: "ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync",
- pathTemplate: "\"/api/v1/ppt/slide-to-html/\"",
+ operationId: "EditChatMessageApiV3ChatMessageEditPost",
+ methodName: "EditChatMessageApiV3ChatMessageEditPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -395,7 +385,7 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
- ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
+ ProcessEditChatMessageApiV3ChatMessageEditPostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -404,9 +394,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __value = global::Presenton.SlideToHtmlResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Presenton.ChatMessageResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -436,9 +426,9 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
#endif
).ConfigureAwait(false);
- var __value = await global::Presenton.SlideToHtmlResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Presenton.ChatMessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -479,34 +469,40 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent(
}
}
///
- /// Convert Slide To Html
- /// Convert a slide image and its OXML data to HTML using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing image path and XML content
- /// Returns:
- /// SlideToHtmlResponse with generated HTML
+ /// Edit Chat Message
///
- ///
- ///
- ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ ///
+ ///
/// 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 ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync(
- string image,
- string xml,
- global::System.Collections.Generic.IList? fonts = default,
+ public async global::System.Threading.Tasks.Task EditChatMessageApiV3ChatMessageEditPostAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ string message,
+ global::Presenton.ChatEditMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? messageId = default,
+ int? position = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __request = new global::Presenton.SlideToHtmlRequest
+ var __request = new global::Presenton.ChatEditMessageRequest
{
- Image = image,
- Xml = xml,
- Fonts = fonts,
+ PresentationId = presentationId,
+ PresentationType = presentationType,
+ ConversationId = conversationId,
+ Message = message,
+ MessageId = messageId,
+ Position = position,
};
- return await ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync(
+ return await EditChatMessageApiV3ChatMessageEditPostAsync(
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/Presenton/Generated/Presenton.ChatClient.EditChatMessageStreamApiV3ChatMessageEditStreamPost.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.EditChatMessageStreamApiV3ChatMessageEditStreamPost.g.cs
new file mode 100644
index 0000000..a78a7c6
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.EditChatMessageStreamApiV3ChatMessageEditStreamPost.g.cs
@@ -0,0 +1,507 @@
+
+#nullable enable
+
+namespace Presenton
+{
+ public partial class ChatClient
+ {
+
+
+ private static readonly global::Presenton.EndPointSecurityRequirement s_EditChatMessageStreamApiV3ChatMessageEditStreamPostSecurityRequirement0 =
+ new global::Presenton.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
+ { new global::Presenton.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_EditChatMessageStreamApiV3ChatMessageEditStreamPostSecurityRequirements =
+ new global::Presenton.EndPointSecurityRequirement[]
+ { s_EditChatMessageStreamApiV3ChatMessageEditStreamPostSecurityRequirement0,
+ };
+ partial void PrepareEditChatMessageStreamApiV3ChatMessageEditStreamPostArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Presenton.ChatEditMessageRequest request);
+ partial void PrepareEditChatMessageStreamApiV3ChatMessageEditStreamPostRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Presenton.ChatEditMessageRequest request);
+ partial void ProcessEditChatMessageStreamApiV3ChatMessageEditStreamPostResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessEditChatMessageStreamApiV3ChatMessageEditStreamPostResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Edit Chat Message Stream
+ ///
+ ///
+ /// 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 EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync(
+
+ global::Presenton.ChatEditMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await EditChatMessageStreamApiV3ChatMessageEditStreamPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Edit Chat Message Stream
+ ///
+ ///
+ /// 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> EditChatMessageStreamApiV3ChatMessageEditStreamPostAsResponseAsync(
+
+ global::Presenton.ChatEditMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareEditChatMessageStreamApiV3ChatMessageEditStreamPostArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EditChatMessageStreamApiV3ChatMessageEditStreamPostSecurityRequirements,
+ operationName: "EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync");
+
+ using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Presenton.PathBuilder(
+ path: "/api/v3/chat/message/edit/stream",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareEditChatMessageStreamApiV3ChatMessageEditStreamPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "EditChatMessageStreamApiV3ChatMessageEditStreamPost",
+ methodName: "EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "EditChatMessageStreamApiV3ChatMessageEditStreamPost",
+ methodName: "EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "EditChatMessageStreamApiV3ChatMessageEditStreamPost",
+ methodName: "EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessEditChatMessageStreamApiV3ChatMessageEditStreamPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "EditChatMessageStreamApiV3ChatMessageEditStreamPost",
+ methodName: "EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "EditChatMessageStreamApiV3ChatMessageEditStreamPost",
+ methodName: "EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync",
+ pathTemplate: "\"/api/v3/chat/message/edit/stream\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Presenton.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ responseBody: __content_422,
+ responseObject: __value_422,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessEditChatMessageStreamApiV3ChatMessageEditStreamPostResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return new global::Presenton.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return new global::Presenton.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Edit Chat Message Stream
+ ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ string message,
+ global::Presenton.ChatEditMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? messageId = default,
+ int? position = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Presenton.ChatEditMessageRequest
+ {
+ PresentationId = presentationId,
+ PresentationType = presentationType,
+ ConversationId = conversationId,
+ Message = message,
+ MessageId = messageId,
+ Position = position,
+ };
+
+ return await EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.GetChatHistoryApiV3ChatHistoryGet.g.cs
similarity index 78%
rename from src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.ChatClient.GetChatHistoryApiV3ChatHistoryGet.g.cs
index 433245d..ae978bc 100644
--- a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.GetChatHistoryApiV3ChatHistoryGet.g.cs
@@ -3,11 +3,11 @@
namespace Presenton
{
- public partial class HtmlCreateClient
+ public partial class ChatClient
{
- private static readonly global::Presenton.EndPointSecurityRequirement s_StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetSecurityRequirement0 =
+ private static readonly global::Presenton.EndPointSecurityRequirement s_GetChatHistoryApiV3ChatHistoryGetSecurityRequirement0 =
new global::Presenton.EndPointSecurityRequirement
{
Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
@@ -21,40 +21,57 @@ public partial class HtmlCreateClient
},
},
};
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetSecurityRequirements =
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetChatHistoryApiV3ChatHistoryGetSecurityRequirements =
new global::Presenton.EndPointSecurityRequirement[]
- { s_StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetSecurityRequirement0,
+ { s_GetChatHistoryApiV3ChatHistoryGetSecurityRequirement0,
};
- partial void PrepareStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetArguments(
+ partial void PrepareGetChatHistoryApiV3ChatHistoryGetArguments(
global::System.Net.Http.HttpClient httpClient,
- ref global::System.Guid sessionId);
- partial void PrepareStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetRequest(
+ ref global::System.Guid presentationId,
+ ref global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? presentationType,
+ ref global::System.Guid conversationId);
+ partial void PrepareGetChatHistoryApiV3ChatHistoryGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::System.Guid sessionId);
- partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse(
+ global::System.Guid presentationId,
+ global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? presentationType,
+ global::System.Guid conversationId);
+ partial void ProcessGetChatHistoryApiV3ChatHistoryGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponseContent(
+ partial void ProcessGetChatHistoryApiV3ChatHistoryGetResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Stream Html Create
+ /// Get Chat History
///
- ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ ///
+ /// Conversation thread id
+ ///
/// 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 StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync(
- global::System.Guid sessionId,
+ public async global::System.Threading.Tasks.Task GetChatHistoryApiV3ChatHistoryGetAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? presentationType = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsResponseAsync(
- sessionId: sessionId,
+ var __response = await GetChatHistoryApiV3ChatHistoryGetAsResponseAsync(
+ presentationId: presentationId,
+ conversationId: conversationId,
+ presentationType: presentationType,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
@@ -62,28 +79,41 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
return __response.Body;
}
///
- /// Stream Html Create
+ /// Get Chat History
///
- ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ ///
+ /// Conversation thread id
+ ///
/// 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> StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsResponseAsync(
- global::System.Guid sessionId,
+ public async global::System.Threading.Tasks.Task> GetChatHistoryApiV3ChatHistoryGetAsResponseAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? presentationType = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
- PrepareStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetArguments(
+ PrepareGetChatHistoryApiV3ChatHistoryGetArguments(
httpClient: HttpClient,
- sessionId: ref sessionId);
+ presentationId: ref presentationId,
+ presentationType: ref presentationType,
+ conversationId: ref conversationId);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetSecurityRequirements,
- operationName: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync");
+ securityRequirements: s_GetChatHistoryApiV3ChatHistoryGetSecurityRequirements,
+ operationName: "GetChatHistoryApiV3ChatHistoryGetAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -103,8 +133,13 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
{
var __pathBuilder = new global::Presenton.PathBuilder(
- path: $"/api/v1/ppt/html-create/stream/{sessionId}",
+ path: "/api/v3/chat/history",
baseUri: HttpClient.BaseAddress);
+ __pathBuilder
+ .AddRequiredParameter("presentation_id", presentationId.ToString()!)
+ .AddOptionalParameter("presentation_type", presentationType?.ToValueString())
+ .AddRequiredParameter("conversation_id", conversationId.ToString()!)
+ ;
var __path = __pathBuilder.ToString();
__path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
@@ -142,10 +177,12 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetRequest(
+ PrepareGetChatHistoryApiV3ChatHistoryGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- sessionId: sessionId!);
+ presentationId: presentationId!,
+ presentationType: presentationType,
+ conversationId: conversationId!);
return __httpRequest;
}
@@ -162,9 +199,9 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet",
- methodName: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync",
- pathTemplate: "$\"/api/v1/ppt/html-create/stream/{sessionId}\"",
+ operationId: "GetChatHistoryApiV3ChatHistoryGet",
+ methodName: "GetChatHistoryApiV3ChatHistoryGetAsync",
+ pathTemplate: "\"/api/v3/chat/history\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -196,9 +233,9 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet",
- methodName: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync",
- pathTemplate: "$\"/api/v1/ppt/html-create/stream/{sessionId}\"",
+ operationId: "GetChatHistoryApiV3ChatHistoryGet",
+ methodName: "GetChatHistoryApiV3ChatHistoryGetAsync",
+ pathTemplate: "\"/api/v3/chat/history\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -237,9 +274,9 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet",
- methodName: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync",
- pathTemplate: "$\"/api/v1/ppt/html-create/stream/{sessionId}\"",
+ operationId: "GetChatHistoryApiV3ChatHistoryGet",
+ methodName: "GetChatHistoryApiV3ChatHistoryGetAsync",
+ pathTemplate: "\"/api/v3/chat/history\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -277,7 +314,7 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse(
+ ProcessGetChatHistoryApiV3ChatHistoryGetResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -285,9 +322,9 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet",
- methodName: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync",
- pathTemplate: "$\"/api/v1/ppt/html-create/stream/{sessionId}\"",
+ operationId: "GetChatHistoryApiV3ChatHistoryGet",
+ methodName: "GetChatHistoryApiV3ChatHistoryGetAsync",
+ pathTemplate: "\"/api/v3/chat/history\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -307,9 +344,9 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet",
- methodName: "StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync",
- pathTemplate: "$\"/api/v1/ppt/html-create/stream/{sessionId}\"",
+ operationId: "GetChatHistoryApiV3ChatHistoryGet",
+ methodName: "GetChatHistoryApiV3ChatHistoryGetAsync",
+ pathTemplate: "\"/api/v3/chat/history\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
@@ -374,7 +411,7 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
client: HttpClient,
response: __response,
content: ref __content);
- ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponseContent(
+ ProcessGetChatHistoryApiV3ChatHistoryGetResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -383,11 +420,13 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
{
__response.EnsureSuccessStatusCode();
- return new global::Presenton.AutoSDKHttpResponse(
+ var __value = global::Presenton.ChatHistoryResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
- body: __content);
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -407,17 +446,19 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse
try
{
__response.EnsureSuccessStatusCode();
- var __content = await __response.Content.ReadAsStringAsync(
+ using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
__effectiveCancellationToken
#endif
).ConfigureAwait(false);
- return new global::Presenton.AutoSDKHttpResponse(
+ var __value = await global::Presenton.ChatHistoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
- body: __content);
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Presenton/Generated/Presenton.ChatClient.ListChatConversationsApiV3ChatConversationsGet.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.ListChatConversationsApiV3ChatConversationsGet.g.cs
new file mode 100644
index 0000000..e630252
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.ListChatConversationsApiV3ChatConversationsGet.g.cs
@@ -0,0 +1,484 @@
+
+#nullable enable
+
+namespace Presenton
+{
+ public partial class ChatClient
+ {
+
+
+ private static readonly global::Presenton.EndPointSecurityRequirement s_ListChatConversationsApiV3ChatConversationsGetSecurityRequirement0 =
+ new global::Presenton.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
+ { new global::Presenton.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_ListChatConversationsApiV3ChatConversationsGetSecurityRequirements =
+ new global::Presenton.EndPointSecurityRequirement[]
+ { s_ListChatConversationsApiV3ChatConversationsGetSecurityRequirement0,
+ };
+ partial void PrepareListChatConversationsApiV3ChatConversationsGetArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref global::System.Guid presentationId,
+ ref global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? presentationType);
+ partial void PrepareListChatConversationsApiV3ChatConversationsGetRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::System.Guid presentationId,
+ global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? presentationType);
+ partial void ProcessListChatConversationsApiV3ChatConversationsGetResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessListChatConversationsApiV3ChatConversationsGetResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// List Chat Conversations
+ ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ /// 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> ListChatConversationsApiV3ChatConversationsGetAsync(
+ global::System.Guid presentationId,
+ global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? presentationType = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListChatConversationsApiV3ChatConversationsGetAsResponseAsync(
+ presentationId: presentationId,
+ presentationType: presentationType,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Chat Conversations
+ ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ /// 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>> ListChatConversationsApiV3ChatConversationsGetAsResponseAsync(
+ global::System.Guid presentationId,
+ global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? presentationType = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareListChatConversationsApiV3ChatConversationsGetArguments(
+ httpClient: HttpClient,
+ presentationId: ref presentationId,
+ presentationType: ref presentationType);
+
+
+ var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListChatConversationsApiV3ChatConversationsGetSecurityRequirements,
+ operationName: "ListChatConversationsApiV3ChatConversationsGetAsync");
+
+ using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Presenton.PathBuilder(
+ path: "/api/v3/chat/conversations",
+ baseUri: HttpClient.BaseAddress);
+ __pathBuilder
+ .AddRequiredParameter("presentation_id", presentationId.ToString()!)
+ .AddOptionalParameter("presentation_type", presentationType?.ToValueString())
+ ;
+ var __path = __pathBuilder.ToString();
+ __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareListChatConversationsApiV3ChatConversationsGetRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ presentationId: presentationId!,
+ presentationType: presentationType);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListChatConversationsApiV3ChatConversationsGet",
+ methodName: "ListChatConversationsApiV3ChatConversationsGetAsync",
+ pathTemplate: "\"/api/v3/chat/conversations\"",
+ httpMethod: "GET",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListChatConversationsApiV3ChatConversationsGet",
+ methodName: "ListChatConversationsApiV3ChatConversationsGetAsync",
+ pathTemplate: "\"/api/v3/chat/conversations\"",
+ httpMethod: "GET",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListChatConversationsApiV3ChatConversationsGet",
+ methodName: "ListChatConversationsApiV3ChatConversationsGetAsync",
+ pathTemplate: "\"/api/v3/chat/conversations\"",
+ httpMethod: "GET",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessListChatConversationsApiV3ChatConversationsGetResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListChatConversationsApiV3ChatConversationsGet",
+ methodName: "ListChatConversationsApiV3ChatConversationsGetAsync",
+ pathTemplate: "\"/api/v3/chat/conversations\"",
+ httpMethod: "GET",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListChatConversationsApiV3ChatConversationsGet",
+ methodName: "ListChatConversationsApiV3ChatConversationsGetAsync",
+ pathTemplate: "\"/api/v3/chat/conversations\"",
+ httpMethod: "GET",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Presenton.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ responseBody: __content_422,
+ responseObject: __value_422,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessListChatConversationsApiV3ChatConversationsGetResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Presenton.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Presenton.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::Presenton.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.g.cs b/src/libs/Presenton/Generated/Presenton.ChatClient.g.cs
similarity index 93%
rename from src/libs/Presenton/Generated/Presenton.HtmlEditClient.g.cs
rename to src/libs/Presenton/Generated/Presenton.ChatClient.g.cs
index 8b7ab5b..f69cefb 100644
--- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.ChatClient.g.cs
@@ -7,7 +7,7 @@ namespace Presenton
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
///
- public sealed partial class HtmlEditClient : global::Presenton.IHtmlEditClient, global::System.IDisposable
+ public sealed partial class ChatClient : global::Presenton.IChatClient, global::System.IDisposable
{
///
///
@@ -40,7 +40,7 @@ public sealed partial class HtmlEditClient : global::Presenton.IHtmlEditClient,
///
- /// Creates a new instance of the HtmlEditClient.
+ /// Creates a new instance of the ChatClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
///
@@ -48,7 +48,7 @@ public sealed partial class HtmlEditClient : global::Presenton.IHtmlEditClient,
/// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
/// The authorizations to use for the requests.
/// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlEditClient(
+ public ChatClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List? authorizations = null,
@@ -62,14 +62,14 @@ public HtmlEditClient(
}
///
- /// Creates a new instance of the HtmlEditClient with explicit options but no base URL override.
+ /// Creates a new instance of the ChatClient with explicit options but no base URL override.
/// Skips passing baseUri so the default base URL from the OpenAPI spec applies.
///
/// The HttpClient instance. If not provided, a new one will be created.
/// The authorizations to use for the requests.
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlEditClient(
+ public ChatClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Collections.Generic.List? authorizations,
global::Presenton.AutoSDKClientOptions? options,
@@ -83,7 +83,7 @@ public HtmlEditClient(
}
///
- /// Creates a new instance of the HtmlEditClient.
+ /// Creates a new instance of the ChatClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
///
@@ -92,7 +92,7 @@ public HtmlEditClient(
/// The authorizations to use for the requests.
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlEditClient(
+ public ChatClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Uri? baseUri,
global::System.Collections.Generic.List? authorizations,
diff --git a/src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.ExportPresentationApiV1DebugExportPresentationPost.g.cs
similarity index 83%
rename from src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.DebugClient.ExportPresentationApiV1DebugExportPresentationPost.g.cs
index 58df07f..b9887f9 100644
--- a/src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.DebugClient.ExportPresentationApiV1DebugExportPresentationPost.g.cs
@@ -3,11 +3,11 @@
namespace Presenton
{
- public partial class DesignSystemClient
+ public partial class DebugClient
{
- private static readonly global::Presenton.EndPointSecurityRequirement s_ExtractDesignSystemApiV1PptDesignSystemExtractPostSecurityRequirement0 =
+ private static readonly global::Presenton.EndPointSecurityRequirement s_ExportPresentationApiV1DebugExportPresentationPostSecurityRequirement0 =
new global::Presenton.EndPointSecurityRequirement
{
Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
@@ -21,43 +21,40 @@ public partial class DesignSystemClient
},
},
};
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_ExtractDesignSystemApiV1PptDesignSystemExtractPostSecurityRequirements =
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_ExportPresentationApiV1DebugExportPresentationPostSecurityRequirements =
new global::Presenton.EndPointSecurityRequirement[]
- { s_ExtractDesignSystemApiV1PptDesignSystemExtractPostSecurityRequirement0,
+ { s_ExportPresentationApiV1DebugExportPresentationPostSecurityRequirement0,
};
- partial void PrepareExtractDesignSystemApiV1PptDesignSystemExtractPostArguments(
+ partial void PrepareExportPresentationApiV1DebugExportPresentationPostArguments(
global::System.Net.Http.HttpClient httpClient,
- global::Presenton.ExtractDesignSystemRequest request);
- partial void PrepareExtractDesignSystemApiV1PptDesignSystemExtractPostRequest(
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost request);
+ partial void PrepareExportPresentationApiV1DebugExportPresentationPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.ExtractDesignSystemRequest request);
- partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponse(
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost request);
+ partial void ProcessExportPresentationApiV1DebugExportPresentationPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseContent(
+ partial void ProcessExportPresentationApiV1DebugExportPresentationPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Extract Design System
- /// Accepts an array of slides (image + markdown_content), concatenates markdown,
- /// sends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,
- /// and returns the extracted design system JSON.
+ /// Export Presentation
///
///
/// 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 ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync(
+ public async global::System.Threading.Tasks.Task ExportPresentationApiV1DebugExportPresentationPostAsync(
- global::Presenton.ExtractDesignSystemRequest request,
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await ExtractDesignSystemApiV1PptDesignSystemExtractPostAsResponseAsync(
+ var __response = await ExportPresentationApiV1DebugExportPresentationPostAsResponseAsync(
request: request,
requestOptions: requestOptions,
@@ -67,18 +64,15 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
return __response.Body;
}
///
- /// Extract Design System
- /// Accepts an array of slides (image + markdown_content), concatenates markdown,
- /// sends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,
- /// and returns the extracted design system JSON.
+ /// Export Presentation
///
///
/// 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> ExtractDesignSystemApiV1PptDesignSystemExtractPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> ExportPresentationApiV1DebugExportPresentationPostAsResponseAsync(
- global::Presenton.ExtractDesignSystemRequest request,
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -86,15 +80,15 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
PrepareArguments(
client: HttpClient);
- PrepareExtractDesignSystemApiV1PptDesignSystemExtractPostArguments(
+ PrepareExportPresentationApiV1DebugExportPresentationPostArguments(
httpClient: HttpClient,
request: request);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_ExtractDesignSystemApiV1PptDesignSystemExtractPostSecurityRequirements,
- operationName: "ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync");
+ securityRequirements: s_ExportPresentationApiV1DebugExportPresentationPostSecurityRequirements,
+ operationName: "ExportPresentationApiV1DebugExportPresentationPostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -114,7 +108,7 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
{
var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/design-system/extract",
+ path: "/api/v1/debug/export-presentation",
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
__path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -159,7 +153,7 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareExtractDesignSystemApiV1PptDesignSystemExtractPostRequest(
+ PrepareExportPresentationApiV1DebugExportPresentationPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -179,9 +173,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ExtractDesignSystemApiV1PptDesignSystemExtractPost",
- methodName: "ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync",
- pathTemplate: "\"/api/v1/ppt/design-system/extract\"",
+ operationId: "ExportPresentationApiV1DebugExportPresentationPost",
+ methodName: "ExportPresentationApiV1DebugExportPresentationPostAsync",
+ pathTemplate: "\"/api/v1/debug/export-presentation\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -213,9 +207,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ExtractDesignSystemApiV1PptDesignSystemExtractPost",
- methodName: "ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync",
- pathTemplate: "\"/api/v1/ppt/design-system/extract\"",
+ operationId: "ExportPresentationApiV1DebugExportPresentationPost",
+ methodName: "ExportPresentationApiV1DebugExportPresentationPostAsync",
+ pathTemplate: "\"/api/v1/debug/export-presentation\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -254,9 +248,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ExtractDesignSystemApiV1PptDesignSystemExtractPost",
- methodName: "ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync",
- pathTemplate: "\"/api/v1/ppt/design-system/extract\"",
+ operationId: "ExportPresentationApiV1DebugExportPresentationPost",
+ methodName: "ExportPresentationApiV1DebugExportPresentationPostAsync",
+ pathTemplate: "\"/api/v1/debug/export-presentation\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -294,7 +288,7 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponse(
+ ProcessExportPresentationApiV1DebugExportPresentationPostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -302,9 +296,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ExtractDesignSystemApiV1PptDesignSystemExtractPost",
- methodName: "ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync",
- pathTemplate: "\"/api/v1/ppt/design-system/extract\"",
+ operationId: "ExportPresentationApiV1DebugExportPresentationPost",
+ methodName: "ExportPresentationApiV1DebugExportPresentationPostAsync",
+ pathTemplate: "\"/api/v1/debug/export-presentation\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -324,9 +318,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "ExtractDesignSystemApiV1PptDesignSystemExtractPost",
- methodName: "ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync",
- pathTemplate: "\"/api/v1/ppt/design-system/extract\"",
+ operationId: "ExportPresentationApiV1DebugExportPresentationPost",
+ methodName: "ExportPresentationApiV1DebugExportPresentationPostAsync",
+ pathTemplate: "\"/api/v1/debug/export-presentation\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
@@ -391,7 +385,7 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
client: HttpClient,
response: __response,
content: ref __content);
- ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseContent(
+ ProcessExportPresentationApiV1DebugExportPresentationPostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -400,9 +394,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
{
__response.EnsureSuccessStatusCode();
- var __value = global::Presenton.ExtractDesignSystemResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Presenton.PresentationPathAndEditPath.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -432,9 +426,9 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
#endif
).ConfigureAwait(false);
- var __value = await global::Presenton.ExtractDesignSystemResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Presenton.PresentationPathAndEditPath.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
+ return new global::Presenton.AutoSDKHttpResponse(
statusCode: __response.StatusCode,
headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
@@ -475,26 +469,29 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo
}
}
///
- /// Extract Design System
- /// Accepts an array of slides (image + markdown_content), concatenates markdown,
- /// sends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,
- /// and returns the extracted design system JSON.
+ /// Export Presentation
///
- ///
+ ///
+ ///
+ ///
/// 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 ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync(
- global::System.Collections.Generic.IList slides,
+ public async global::System.Threading.Tasks.Task ExportPresentationApiV1DebugExportPresentationPostAsync(
+ string token,
+ global::System.Guid presentationId,
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs exportAs,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __request = new global::Presenton.ExtractDesignSystemRequest
+ var __request = new global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost
{
- Slides = slides,
+ Token = token,
+ PresentationId = presentationId,
+ ExportAs = exportAs,
};
- return await ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync(
+ return await ExportPresentationApiV1DebugExportPresentationPostAsync(
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/Presenton/Generated/Presenton.DesignSystemClient.g.cs b/src/libs/Presenton/Generated/Presenton.DesignSystemClient.g.cs
deleted file mode 100644
index 62a8ddc..0000000
--- a/src/libs/Presenton/Generated/Presenton.DesignSystemClient.g.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public sealed partial class DesignSystemClient : global::Presenton.IDesignSystemClient, global::System.IDisposable
- {
- ///
- ///
- ///
- public const string DefaultBaseUrl = "https://api.presenton.ai/";
-
- private bool _disposeHttpClient = true;
-
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- public System.Uri? BaseUri => HttpClient.BaseAddress;
-
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- public bool ReadResponseAsString { get; set; }
-#if DEBUG
- = true;
-#endif
-
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
- ///
- ///
- ///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Presenton.SourceGenerationContext.Default;
-
-
- ///
- /// Creates a new instance of the DesignSystemClient.
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
- /// The authorizations to use for the requests.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public DesignSystemClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- bool disposeHttpClient = true) : this(
- httpClient,
- baseUri,
- authorizations,
- options: null,
- disposeHttpClient: disposeHttpClient)
- {
- }
-
- ///
- /// Creates a new instance of the DesignSystemClient with explicit options but no base URL override.
- /// Skips passing baseUri so the default base URL from the OpenAPI spec applies.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The authorizations to use for the requests.
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public DesignSystemClient(
- global::System.Net.Http.HttpClient? httpClient,
- global::System.Collections.Generic.List? authorizations,
- global::Presenton.AutoSDKClientOptions? options,
- bool disposeHttpClient = true) : this(
- httpClient,
- baseUri: null,
- authorizations,
- options,
- disposeHttpClient: disposeHttpClient)
- {
- }
-
- ///
- /// Creates a new instance of the DesignSystemClient.
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
- /// The authorizations to use for the requests.
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public DesignSystemClient(
- global::System.Net.Http.HttpClient? httpClient,
- global::System.Uri? baseUri,
- global::System.Collections.Generic.List? authorizations,
- global::Presenton.AutoSDKClientOptions? options,
- bool disposeHttpClient = true)
- {
-
- HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
- HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
- Authorizations = authorizations ?? new global::System.Collections.Generic.List();
- Options = options ?? new global::Presenton.AutoSDKClientOptions();
- _disposeHttpClient = disposeHttpClient;
-
- Initialized(HttpClient);
- }
-
- ///
- public void Dispose()
- {
- if (_disposeHttpClient)
- {
- HttpClient.Dispose();
- }
- }
-
- partial void Initialized(
- global::System.Net.Http.HttpClient client);
- partial void PrepareArguments(
- global::System.Net.Http.HttpClient client);
- partial void PrepareRequest(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpRequestMessage request);
- partial void ProcessResponse(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpResponseMessage response);
- partial void ProcessResponseContent(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpResponseMessage response,
- ref string content);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs b/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadHandlerApiV3DownloadsAddPost.g.cs
similarity index 89%
rename from src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadHandlerApiV3DownloadsAddPost.g.cs
index 64dc6a9..b0b84d2 100644
--- a/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadHandlerApiV3DownloadsAddPost.g.cs
@@ -7,7 +7,7 @@ public partial class DownloadsClient
{
- private static readonly global::Presenton.EndPointSecurityRequirement s_AddDownloadApiV3DownloadsAddPostSecurityRequirement0 =
+ private static readonly global::Presenton.EndPointSecurityRequirement s_AddDownloadHandlerApiV3DownloadsAddPostSecurityRequirement0 =
new global::Presenton.EndPointSecurityRequirement
{
Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
@@ -21,45 +21,50 @@ public partial class DownloadsClient
},
},
};
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_AddDownloadApiV3DownloadsAddPostSecurityRequirements =
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_AddDownloadHandlerApiV3DownloadsAddPostSecurityRequirements =
new global::Presenton.EndPointSecurityRequirement[]
- { s_AddDownloadApiV3DownloadsAddPostSecurityRequirement0,
+ { s_AddDownloadHandlerApiV3DownloadsAddPostSecurityRequirement0,
};
- partial void PrepareAddDownloadApiV3DownloadsAddPostArguments(
+ partial void PrepareAddDownloadHandlerApiV3DownloadsAddPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Presenton.Device device,
- ref global::Presenton.DownloadFormat format);
- partial void PrepareAddDownloadApiV3DownloadsAddPostRequest(
+ ref global::Presenton.DownloadFormat format,
+ ref string version);
+ partial void PrepareAddDownloadHandlerApiV3DownloadsAddPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::Presenton.Device device,
- global::Presenton.DownloadFormat format);
- partial void ProcessAddDownloadApiV3DownloadsAddPostResponse(
+ global::Presenton.DownloadFormat format,
+ string version);
+ partial void ProcessAddDownloadHandlerApiV3DownloadsAddPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
+ partial void ProcessAddDownloadHandlerApiV3DownloadsAddPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Add Download
+ /// Add Download Handler
///
///
///
+ ///
/// 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 AddDownloadApiV3DownloadsAddPostAsync(
+ public async global::System.Threading.Tasks.Task AddDownloadHandlerApiV3DownloadsAddPostAsync(
global::Presenton.Device device,
global::Presenton.DownloadFormat format,
+ string version,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await AddDownloadApiV3DownloadsAddPostAsResponseAsync(
+ var __response = await AddDownloadHandlerApiV3DownloadsAddPostAsResponseAsync(
device: device,
format: format,
+ version: version,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
@@ -67,31 +72,34 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
return __response.Body;
}
///
- /// Add Download
+ /// Add Download Handler
///
///
///
+ ///
/// 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> AddDownloadApiV3DownloadsAddPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> AddDownloadHandlerApiV3DownloadsAddPostAsResponseAsync(
global::Presenton.Device device,
global::Presenton.DownloadFormat format,
+ string version,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
- PrepareAddDownloadApiV3DownloadsAddPostArguments(
+ PrepareAddDownloadHandlerApiV3DownloadsAddPostArguments(
httpClient: HttpClient,
device: ref device,
- format: ref format);
+ format: ref format,
+ version: ref version);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_AddDownloadApiV3DownloadsAddPostSecurityRequirements,
- operationName: "AddDownloadApiV3DownloadsAddPostAsync");
+ securityRequirements: s_AddDownloadHandlerApiV3DownloadsAddPostSecurityRequirements,
+ operationName: "AddDownloadHandlerApiV3DownloadsAddPostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -116,6 +124,7 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
__pathBuilder
.AddRequiredParameter("device", device.ToValueString())
.AddRequiredParameter("format", format.ToValueString())
+ .AddRequiredParameter("version", version)
;
var __path = __pathBuilder.ToString();
__path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -154,11 +163,12 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareAddDownloadApiV3DownloadsAddPostRequest(
+ PrepareAddDownloadHandlerApiV3DownloadsAddPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
device: device!,
- format: format!);
+ format: format!,
+ version: version!);
return __httpRequest;
}
@@ -175,8 +185,8 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "AddDownloadApiV3DownloadsAddPost",
- methodName: "AddDownloadApiV3DownloadsAddPostAsync",
+ operationId: "AddDownloadHandlerApiV3DownloadsAddPost",
+ methodName: "AddDownloadHandlerApiV3DownloadsAddPostAsync",
pathTemplate: "\"/api/v3/downloads/add\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -209,8 +219,8 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "AddDownloadApiV3DownloadsAddPost",
- methodName: "AddDownloadApiV3DownloadsAddPostAsync",
+ operationId: "AddDownloadHandlerApiV3DownloadsAddPost",
+ methodName: "AddDownloadHandlerApiV3DownloadsAddPostAsync",
pathTemplate: "\"/api/v3/downloads/add\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -250,8 +260,8 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "AddDownloadApiV3DownloadsAddPost",
- methodName: "AddDownloadApiV3DownloadsAddPostAsync",
+ operationId: "AddDownloadHandlerApiV3DownloadsAddPost",
+ methodName: "AddDownloadHandlerApiV3DownloadsAddPostAsync",
pathTemplate: "\"/api/v3/downloads/add\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -290,7 +300,7 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessAddDownloadApiV3DownloadsAddPostResponse(
+ ProcessAddDownloadHandlerApiV3DownloadsAddPostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -298,8 +308,8 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "AddDownloadApiV3DownloadsAddPost",
- methodName: "AddDownloadApiV3DownloadsAddPostAsync",
+ operationId: "AddDownloadHandlerApiV3DownloadsAddPost",
+ methodName: "AddDownloadHandlerApiV3DownloadsAddPostAsync",
pathTemplate: "\"/api/v3/downloads/add\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -320,8 +330,8 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "AddDownloadApiV3DownloadsAddPost",
- methodName: "AddDownloadApiV3DownloadsAddPostAsync",
+ operationId: "AddDownloadHandlerApiV3DownloadsAddPost",
+ methodName: "AddDownloadHandlerApiV3DownloadsAddPostAsync",
pathTemplate: "\"/api/v3/downloads/add\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -387,7 +397,7 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
- ProcessAddDownloadApiV3DownloadsAddPostResponseContent(
+ ProcessAddDownloadHandlerApiV3DownloadsAddPostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
diff --git a/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs
similarity index 90%
rename from src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs
index 815a762..9f4f85b 100644
--- a/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs
@@ -7,7 +7,7 @@ public partial class FontsClient
{
- private static readonly global::Presenton.EndPointSecurityRequirement s_CheckFontsInPptxApiV1PptFontsCheckPostSecurityRequirement0 =
+ private static readonly global::Presenton.EndPointSecurityRequirement s_CheckFontsInPptxHandlerApiV1PptFontsCheckPostSecurityRequirement0 =
new global::Presenton.EndPointSecurityRequirement
{
Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
@@ -21,40 +21,43 @@ public partial class FontsClient
},
},
};
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_CheckFontsInPptxApiV1PptFontsCheckPostSecurityRequirements =
+ private static readonly global::Presenton.EndPointSecurityRequirement[] s_CheckFontsInPptxHandlerApiV1PptFontsCheckPostSecurityRequirements =
new global::Presenton.EndPointSecurityRequirement[]
- { s_CheckFontsInPptxApiV1PptFontsCheckPostSecurityRequirement0,
+ { s_CheckFontsInPptxHandlerApiV1PptFontsCheckPostSecurityRequirement0,
};
- partial void PrepareCheckFontsInPptxApiV1PptFontsCheckPostArguments(
+ partial void PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostArguments(
global::System.Net.Http.HttpClient httpClient,
- global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost request);
- partial void PrepareCheckFontsInPptxApiV1PptFontsCheckPostRequest(
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost request);
+ partial void PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost request);
- partial void ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponse(
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost request);
+ partial void ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
+ partial void ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
/// 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 CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ public async global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
- global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost request,
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __response = await CheckFontsInPptxApiV1PptFontsCheckPostAsResponseAsync(
+ var __response = await CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsResponseAsync(
request: request,
requestOptions: requestOptions,
@@ -64,15 +67,18 @@ partial void ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
return __response.Body;
}
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
/// 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> CheckFontsInPptxApiV1PptFontsCheckPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsResponseAsync(
- global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost request,
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -80,15 +86,15 @@ partial void ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
PrepareArguments(
client: HttpClient);
- PrepareCheckFontsInPptxApiV1PptFontsCheckPostArguments(
+ PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostArguments(
httpClient: HttpClient,
request: request);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_CheckFontsInPptxApiV1PptFontsCheckPostSecurityRequirements,
- operationName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync");
+ securityRequirements: s_CheckFontsInPptxHandlerApiV1PptFontsCheckPostSecurityRequirements,
+ operationName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -189,7 +195,7 @@ request.PptxFilename is null
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareCheckFontsInPptxApiV1PptFontsCheckPostRequest(
+ PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -209,8 +215,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -243,8 +249,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -284,8 +290,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -324,7 +330,7 @@ request.PptxFilename is null
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponse(
+ ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -332,8 +338,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -354,8 +360,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -421,7 +427,7 @@ request.PptxFilename is null
client: HttpClient,
response: __response,
content: ref __content);
- ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
+ ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -505,48 +511,48 @@ request.PptxFilename is null
}
}
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
- ///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
- ///
+ ///
+ ///
/// 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 CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ public async global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
byte[] pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
- var __request = new global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost
+ var __request = new global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost
{
PptxFile = pptxFile,
PptxFilename = pptxFilename,
};
- return await CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ return await CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
+ /// The stream to send as the multipart 'pptx_file' file part.
///
+ ///
/// 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 CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ public async global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
@@ -554,22 +560,22 @@ request.PptxFilename is null
{
pptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile));
- var request = new global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost
+ var request = new global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost
{
PptxFile = global::System.Array.Empty(),
PptxFilename = pptxFilename,
};
PrepareArguments(
client: HttpClient);
- PrepareCheckFontsInPptxApiV1PptFontsCheckPostArguments(
+ PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostArguments(
httpClient: HttpClient,
request: request);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_CheckFontsInPptxApiV1PptFontsCheckPostSecurityRequirements,
- operationName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync");
+ securityRequirements: s_CheckFontsInPptxHandlerApiV1PptFontsCheckPostSecurityRequirements,
+ operationName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -670,7 +676,7 @@ request.PptxFilename is null
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareCheckFontsInPptxApiV1PptFontsCheckPostRequest(
+ PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -690,8 +696,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -724,8 +730,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -765,8 +771,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -805,7 +811,7 @@ request.PptxFilename is null
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponse(
+ ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -813,8 +819,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -835,8 +841,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -902,7 +908,7 @@ request.PptxFilename is null
client: HttpClient,
response: __response,
content: ref __content);
- ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
+ ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
@@ -978,18 +984,19 @@ request.PptxFilename is null
}
}
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
+ /// The stream to send as the multipart 'pptx_file' file part.
///
+ ///
/// 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> CheckFontsInPptxApiV1PptFontsCheckPostAsResponseAsync(
+ public async global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsResponseAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
@@ -997,22 +1004,22 @@ request.PptxFilename is null
{
pptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile));
- var request = new global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost
+ var request = new global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost
{
PptxFile = global::System.Array.Empty(),
PptxFilename = pptxFilename,
};
PrepareArguments(
client: HttpClient);
- PrepareCheckFontsInPptxApiV1PptFontsCheckPostArguments(
+ PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostArguments(
httpClient: HttpClient,
request: request);
var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
- securityRequirements: s_CheckFontsInPptxApiV1PptFontsCheckPostSecurityRequirements,
- operationName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync");
+ securityRequirements: s_CheckFontsInPptxHandlerApiV1PptFontsCheckPostSecurityRequirements,
+ operationName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync");
using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
@@ -1113,7 +1120,7 @@ request.PptxFilename is null
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareCheckFontsInPptxApiV1PptFontsCheckPostRequest(
+ PrepareCheckFontsInPptxHandlerApiV1PptFontsCheckPostRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -1133,8 +1140,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -1167,8 +1174,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -1208,8 +1215,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -1248,7 +1255,7 @@ request.PptxFilename is null
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponse(
+ ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
@@ -1256,8 +1263,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -1278,8 +1285,8 @@ request.PptxFilename is null
await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "CheckFontsInPptxApiV1PptFontsCheckPost",
- methodName: "CheckFontsInPptxApiV1PptFontsCheckPostAsync",
+ operationId: "CheckFontsInPptxHandlerApiV1PptFontsCheckPost",
+ methodName: "CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync",
pathTemplate: "\"/api/v1/ppt/fonts/check\"",
httpMethod: "POST",
baseUri: BaseUri,
@@ -1345,7 +1352,7 @@ request.PptxFilename is null
client: HttpClient,
response: __response,
content: ref __content);
- ProcessCheckFontsInPptxApiV1PptFontsCheckPostResponseContent(
+ ProcessCheckFontsInPptxHandlerApiV1PptFontsCheckPostResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs
deleted file mode 100644
index 016172a..0000000
--- a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs
+++ /dev/null
@@ -1,588 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- public partial class HtmlCreateClient
- {
-
-
- private static readonly global::Presenton.EndPointSecurityRequirement s_InitHtmlCreateApiV1PptHtmlCreateInitPostSecurityRequirement0 =
- new global::Presenton.EndPointSecurityRequirement
- {
- Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
- { new global::Presenton.EndPointAuthorizationRequirement
- {
- Type = "Http",
- SchemeId = "HttpBearer",
- Location = "Header",
- Name = "Bearer",
- FriendlyName = "Bearer",
- },
- },
- };
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_InitHtmlCreateApiV1PptHtmlCreateInitPostSecurityRequirements =
- new global::Presenton.EndPointSecurityRequirement[]
- { s_InitHtmlCreateApiV1PptHtmlCreateInitPostSecurityRequirement0,
- };
- partial void PrepareInitHtmlCreateApiV1PptHtmlCreateInitPostArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost request);
- partial void PrepareInitHtmlCreateApiV1PptHtmlCreateInitPostRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost request);
- partial void ProcessInitHtmlCreateApiV1PptHtmlCreateInitPostResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessInitHtmlCreateApiV1PptHtmlCreateInitPostResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Init Html Create
- ///
- ///
- /// 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 InitHtmlCreateApiV1PptHtmlCreateInitPostAsync(
-
- global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __response = await InitHtmlCreateApiV1PptHtmlCreateInitPostAsResponseAsync(
-
- request: request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken
- ).ConfigureAwait(false);
-
- return __response.Body;
- }
- ///
- /// Init Html Create
- ///
- ///
- /// 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> InitHtmlCreateApiV1PptHtmlCreateInitPostAsResponseAsync(
-
- global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- request = request ?? throw new global::System.ArgumentNullException(nameof(request));
-
- PrepareArguments(
- client: HttpClient);
- PrepareInitHtmlCreateApiV1PptHtmlCreateInitPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_InitHtmlCreateApiV1PptHtmlCreateInitPostSecurityRequirements,
- operationName: "InitHtmlCreateApiV1PptHtmlCreateInitPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-create/init",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- if (request.SketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.ByteArrayContent(request.SketchImage ?? global::System.Array.Empty());
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- if (request.AdditionalImages != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.AdditionalImages.ToString() ?? string.Empty),
- name: "\"additional_images\"");
-
- }
- if (request.Html != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareInitHtmlCreateApiV1PptHtmlCreateInitPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlCreateApiV1PptHtmlCreateInitPost",
- methodName: "InitHtmlCreateApiV1PptHtmlCreateInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-create/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlCreateApiV1PptHtmlCreateInitPost",
- methodName: "InitHtmlCreateApiV1PptHtmlCreateInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-create/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlCreateApiV1PptHtmlCreateInitPost",
- methodName: "InitHtmlCreateApiV1PptHtmlCreateInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-create/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessInitHtmlCreateApiV1PptHtmlCreateInitPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlCreateApiV1PptHtmlCreateInitPost",
- methodName: "InitHtmlCreateApiV1PptHtmlCreateInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-create/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlCreateApiV1PptHtmlCreateInitPost",
- methodName: "InitHtmlCreateApiV1PptHtmlCreateInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-create/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessInitHtmlCreateApiV1PptHtmlCreateInitPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- var __value = global::Presenton.HtmlEditInitResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::Presenton.HtmlEditInitResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- ///
- /// Init Html Create
- ///
- ///
- /// Primary reference/sketch image (optional)
- ///
- ///
- /// Primary reference/sketch image (optional)
- ///
- ///
- ///
- /// Optional existing HTML content to inform create
- ///
- ///
- /// Text prompt describing the slide to create
- ///
- ///
- /// Template identifier (any string) whose design system should guide create
- ///
- /// 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 InitHtmlCreateApiV1PptHtmlCreateInitPostAsync(
- string prompt,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? html = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost
- {
- SketchImage = sketchImage,
- SketchImagename = sketchImagename,
- AdditionalImages = additionalImages,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
-
- return await InitHtmlCreateApiV1PptHtmlCreateInitPostAsync(
- request: __request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.g.cs
deleted file mode 100644
index d260298..0000000
--- a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.g.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public sealed partial class HtmlCreateClient : global::Presenton.IHtmlCreateClient, global::System.IDisposable
- {
- ///
- ///
- ///
- public const string DefaultBaseUrl = "https://api.presenton.ai/";
-
- private bool _disposeHttpClient = true;
-
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- public System.Uri? BaseUri => HttpClient.BaseAddress;
-
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- public bool ReadResponseAsString { get; set; }
-#if DEBUG
- = true;
-#endif
-
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
- ///
- ///
- ///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Presenton.SourceGenerationContext.Default;
-
-
- ///
- /// Creates a new instance of the HtmlCreateClient.
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
- /// The authorizations to use for the requests.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlCreateClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- bool disposeHttpClient = true) : this(
- httpClient,
- baseUri,
- authorizations,
- options: null,
- disposeHttpClient: disposeHttpClient)
- {
- }
-
- ///
- /// Creates a new instance of the HtmlCreateClient with explicit options but no base URL override.
- /// Skips passing baseUri so the default base URL from the OpenAPI spec applies.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The authorizations to use for the requests.
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlCreateClient(
- global::System.Net.Http.HttpClient? httpClient,
- global::System.Collections.Generic.List? authorizations,
- global::Presenton.AutoSDKClientOptions? options,
- bool disposeHttpClient = true) : this(
- httpClient,
- baseUri: null,
- authorizations,
- options,
- disposeHttpClient: disposeHttpClient)
- {
- }
-
- ///
- /// Creates a new instance of the HtmlCreateClient.
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
- /// The authorizations to use for the requests.
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlCreateClient(
- global::System.Net.Http.HttpClient? httpClient,
- global::System.Uri? baseUri,
- global::System.Collections.Generic.List? authorizations,
- global::Presenton.AutoSDKClientOptions? options,
- bool disposeHttpClient = true)
- {
-
- HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
- HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
- Authorizations = authorizations ?? new global::System.Collections.Generic.List();
- Options = options ?? new global::Presenton.AutoSDKClientOptions();
- _disposeHttpClient = disposeHttpClient;
-
- Initialized(HttpClient);
- }
-
- ///
- public void Dispose()
- {
- if (_disposeHttpClient)
- {
- HttpClient.Dispose();
- }
- }
-
- partial void Initialized(
- global::System.Net.Http.HttpClient client);
- partial void PrepareArguments(
- global::System.Net.Http.HttpClient client);
- partial void PrepareRequest(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpRequestMessage request);
- partial void ProcessResponse(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpResponseMessage response);
- partial void ProcessResponseContent(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpResponseMessage response,
- ref string content);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs
deleted file mode 100644
index 907f551..0000000
--- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs
+++ /dev/null
@@ -1,1724 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- public partial class HtmlEditClient
- {
-
-
- private static readonly global::Presenton.EndPointSecurityRequirement s_EditHtmlWithImagesEndpointApiV1PptHtmlEditPostSecurityRequirement0 =
- new global::Presenton.EndPointSecurityRequirement
- {
- Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
- { new global::Presenton.EndPointAuthorizationRequirement
- {
- Type = "Http",
- SchemeId = "HttpBearer",
- Location = "Header",
- Name = "Bearer",
- FriendlyName = "Bearer",
- },
- },
- };
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_EditHtmlWithImagesEndpointApiV1PptHtmlEditPostSecurityRequirements =
- new global::Presenton.EndPointSecurityRequirement[]
- { s_EditHtmlWithImagesEndpointApiV1PptHtmlEditPostSecurityRequirement0,
- };
- partial void PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost request);
- partial void PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost request);
- partial void ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// 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 EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
-
- global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __response = await EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsResponseAsync(
-
- request: request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken
- ).ConfigureAwait(false);
-
- return __response.Body;
- }
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// 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> EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsResponseAsync(
-
- global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- request = request ?? throw new global::System.ArgumentNullException(nameof(request));
-
- PrepareArguments(
- client: HttpClient);
- PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_EditHtmlWithImagesEndpointApiV1PptHtmlEditPostSecurityRequirements,
- operationName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-edit/",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- var __contentCurrentUiImage = new global::System.Net.Http.ByteArrayContent(request.CurrentUiImage ?? global::System.Array.Empty());
- __contentCurrentUiImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.CurrentUiImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.CurrentUiImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentCurrentUiImage,
- name: "\"current_ui_image\"",
- fileName: request.CurrentUiImagename != null ? $"\"{request.CurrentUiImagename}\"" : string.Empty);
- if (__contentCurrentUiImage.Headers.ContentDisposition != null)
- {
- __contentCurrentUiImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- if (request.SketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.ByteArrayContent(request.SketchImage ?? global::System.Array.Empty());
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- var __value = global::Presenton.HtmlEditResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::Presenton.HtmlEditResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
- byte[] currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost
- {
- CurrentUiImage = currentUiImage,
- CurrentUiImagename = currentUiImagename,
- SketchImage = sketchImage,
- SketchImagename = sketchImagename,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
-
- return await EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
- request: __request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
-
- currentUiImage = currentUiImage ?? throw new global::System.ArgumentNullException(nameof(currentUiImage));
- var request = new global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost
- {
- CurrentUiImage = global::System.Array.Empty(),
- CurrentUiImagename = currentUiImagename,
- SketchImage = global::System.Array.Empty(),
- SketchImagename = sketchImagename,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
- PrepareArguments(
- client: HttpClient);
- PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_EditHtmlWithImagesEndpointApiV1PptHtmlEditPostSecurityRequirements,
- operationName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-edit/",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- var __contentCurrentUiImage = new global::System.Net.Http.StreamContent(currentUiImage);
- __contentCurrentUiImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.CurrentUiImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.CurrentUiImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentCurrentUiImage,
- name: "\"current_ui_image\"",
- fileName: request.CurrentUiImagename != null ? $"\"{request.CurrentUiImagename}\"" : string.Empty);
- if (__contentCurrentUiImage.Headers.ContentDisposition != null)
- {
- __contentCurrentUiImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- if (sketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.StreamContent(sketchImage);
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::Presenton.HtmlEditResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- return
- await global::Presenton.HtmlEditResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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> EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsResponseAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
-
- currentUiImage = currentUiImage ?? throw new global::System.ArgumentNullException(nameof(currentUiImage));
- var request = new global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost
- {
- CurrentUiImage = global::System.Array.Empty(),
- CurrentUiImagename = currentUiImagename,
- SketchImage = global::System.Array.Empty(),
- SketchImagename = sketchImagename,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
- PrepareArguments(
- client: HttpClient);
- PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_EditHtmlWithImagesEndpointApiV1PptHtmlEditPostSecurityRequirements,
- operationName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-edit/",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- var __contentCurrentUiImage = new global::System.Net.Http.StreamContent(currentUiImage);
- __contentCurrentUiImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.CurrentUiImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.CurrentUiImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentCurrentUiImage,
- name: "\"current_ui_image\"",
- fileName: request.CurrentUiImagename != null ? $"\"{request.CurrentUiImagename}\"" : string.Empty);
- if (__contentCurrentUiImage.Headers.ContentDisposition != null)
- {
- __contentCurrentUiImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- if (sketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.StreamContent(sketchImage);
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareEditHtmlWithImagesEndpointApiV1PptHtmlEditPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPost",
- methodName: "EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessEditHtmlWithImagesEndpointApiV1PptHtmlEditPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- var __value = global::Presenton.HtmlEditResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::Presenton.HtmlEditResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs
deleted file mode 100644
index 7a7dd38..0000000
--- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs
+++ /dev/null
@@ -1,1717 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- public partial class HtmlEditClient
- {
-
-
- private static readonly global::Presenton.EndPointSecurityRequirement s_InitHtmlEditApiV1PptHtmlEditInitPostSecurityRequirement0 =
- new global::Presenton.EndPointSecurityRequirement
- {
- Authorizations = new global::Presenton.EndPointAuthorizationRequirement[]
- { new global::Presenton.EndPointAuthorizationRequirement
- {
- Type = "Http",
- SchemeId = "HttpBearer",
- Location = "Header",
- Name = "Bearer",
- FriendlyName = "Bearer",
- },
- },
- };
- private static readonly global::Presenton.EndPointSecurityRequirement[] s_InitHtmlEditApiV1PptHtmlEditInitPostSecurityRequirements =
- new global::Presenton.EndPointSecurityRequirement[]
- { s_InitHtmlEditApiV1PptHtmlEditInitPostSecurityRequirement0,
- };
- partial void PrepareInitHtmlEditApiV1PptHtmlEditInitPostArguments(
- global::System.Net.Http.HttpClient httpClient,
- global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost request);
- partial void PrepareInitHtmlEditApiV1PptHtmlEditInitPostRequest(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost request);
- partial void ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponse(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage);
-
- partial void ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
- ///
- /// Init Html Edit
- ///
- ///
- /// 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 InitHtmlEditApiV1PptHtmlEditInitPostAsync(
-
- global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __response = await InitHtmlEditApiV1PptHtmlEditInitPostAsResponseAsync(
-
- request: request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken
- ).ConfigureAwait(false);
-
- return __response.Body;
- }
- ///
- /// Init Html Edit
- ///
- ///
- /// 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> InitHtmlEditApiV1PptHtmlEditInitPostAsResponseAsync(
-
- global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- request = request ?? throw new global::System.ArgumentNullException(nameof(request));
-
- PrepareArguments(
- client: HttpClient);
- PrepareInitHtmlEditApiV1PptHtmlEditInitPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_InitHtmlEditApiV1PptHtmlEditInitPostSecurityRequirements,
- operationName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-edit/init",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- var __contentCurrentUiImage = new global::System.Net.Http.ByteArrayContent(request.CurrentUiImage ?? global::System.Array.Empty());
- __contentCurrentUiImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.CurrentUiImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.CurrentUiImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentCurrentUiImage,
- name: "\"current_ui_image\"",
- fileName: request.CurrentUiImagename != null ? $"\"{request.CurrentUiImagename}\"" : string.Empty);
- if (__contentCurrentUiImage.Headers.ContentDisposition != null)
- {
- __contentCurrentUiImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- if (request.SketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.ByteArrayContent(request.SketchImage ?? global::System.Array.Empty());
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- if (request.AdditionalImages != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.AdditionalImages.ToString() ?? string.Empty),
- name: "\"additional_images\"");
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareInitHtmlEditApiV1PptHtmlEditInitPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- var __value = global::Presenton.HtmlEditInitResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::Presenton.HtmlEditInitResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- ///
- /// Init Html Edit
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 InitHtmlEditApiV1PptHtmlEditInitPostAsync(
- byte[] currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
- var __request = new global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost
- {
- CurrentUiImage = currentUiImage,
- CurrentUiImagename = currentUiImagename,
- SketchImage = sketchImage,
- SketchImagename = sketchImagename,
- AdditionalImages = additionalImages,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
-
- return await InitHtmlEditApiV1PptHtmlEditInitPostAsync(
- request: __request,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Init Html Edit
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 InitHtmlEditApiV1PptHtmlEditInitPostAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
-
- currentUiImage = currentUiImage ?? throw new global::System.ArgumentNullException(nameof(currentUiImage));
- var request = new global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost
- {
- CurrentUiImage = global::System.Array.Empty(),
- CurrentUiImagename = currentUiImagename,
- SketchImage = global::System.Array.Empty(),
- SketchImagename = sketchImagename,
- AdditionalImages = additionalImages,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
- PrepareArguments(
- client: HttpClient);
- PrepareInitHtmlEditApiV1PptHtmlEditInitPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_InitHtmlEditApiV1PptHtmlEditInitPostSecurityRequirements,
- operationName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-edit/init",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- var __contentCurrentUiImage = new global::System.Net.Http.StreamContent(currentUiImage);
- __contentCurrentUiImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.CurrentUiImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.CurrentUiImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentCurrentUiImage,
- name: "\"current_ui_image\"",
- fileName: request.CurrentUiImagename != null ? $"\"{request.CurrentUiImagename}\"" : string.Empty);
- if (__contentCurrentUiImage.Headers.ContentDisposition != null)
- {
- __contentCurrentUiImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- if (sketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.StreamContent(sketchImage);
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- if (request.AdditionalImages != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.AdditionalImages.ToString() ?? string.Empty),
- name: "\"additional_images\"");
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareInitHtmlEditApiV1PptHtmlEditInitPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- return
- global::Presenton.HtmlEditInitResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- return
- await global::Presenton.HtmlEditInitResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- ///
- /// Init Html Edit
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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> InitHtmlEditApiV1PptHtmlEditInitPostAsResponseAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default)
- {
-
- currentUiImage = currentUiImage ?? throw new global::System.ArgumentNullException(nameof(currentUiImage));
- var request = new global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost
- {
- CurrentUiImage = global::System.Array.Empty(),
- CurrentUiImagename = currentUiImagename,
- SketchImage = global::System.Array.Empty(),
- SketchImagename = sketchImagename,
- AdditionalImages = additionalImages,
- Html = html,
- Prompt = prompt,
- TemplateId = templateId,
- };
- PrepareArguments(
- client: HttpClient);
- PrepareInitHtmlEditApiV1PptHtmlEditInitPostArguments(
- httpClient: HttpClient,
- request: request);
-
-
- var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations(
- availableAuthorizations: Authorizations,
- securityRequirements: s_InitHtmlEditApiV1PptHtmlEditInitPostSecurityRequirements,
- operationName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync");
-
- using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
- clientOptions: Options,
- requestOptions: requestOptions,
- cancellationToken: cancellationToken);
- var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
- var __effectiveReadResponseAsString = global::Presenton.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
- clientOptions: Options,
- requestOptions: requestOptions,
- fallbackValue: ReadResponseAsString);
- var __maxAttempts = global::Presenton.AutoSDKRequestOptionsSupport.GetMaxAttempts(
- clientOptions: Options,
- requestOptions: requestOptions,
- supportsRetry: false);
-
- global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
- {
-
- var __pathBuilder = new global::Presenton.PathBuilder(
- path: "/api/v1/ppt/html-edit/init",
- baseUri: HttpClient.BaseAddress);
- var __path = __pathBuilder.ToString();
- __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters(
- path: __path,
- clientParameters: Options.QueryParameters,
- requestParameters: requestOptions?.QueryParameters);
- var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
- method: global::System.Net.Http.HttpMethod.Post,
- requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
-#if NET6_0_OR_GREATER
- __httpRequest.Version = global::System.Net.HttpVersion.Version11;
- __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
-#endif
-
- foreach (var __authorization in __authorizations)
- {
- if (__authorization.Type == "Http" ||
- __authorization.Type == "OAuth2" ||
- __authorization.Type == "OpenIdConnect")
- {
- __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
- scheme: __authorization.Name,
- parameter: __authorization.Value);
- }
- else if (__authorization.Type == "ApiKey" &&
- __authorization.Location == "Header")
- {
- __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
- }
-
- var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
- var __contentCurrentUiImage = new global::System.Net.Http.StreamContent(currentUiImage);
- __contentCurrentUiImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.CurrentUiImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.CurrentUiImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentCurrentUiImage,
- name: "\"current_ui_image\"",
- fileName: request.CurrentUiImagename != null ? $"\"{request.CurrentUiImagename}\"" : string.Empty);
- if (__contentCurrentUiImage.Headers.ContentDisposition != null)
- {
- __contentCurrentUiImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- if (sketchImage != default)
- {
-
- var __contentSketchImage = new global::System.Net.Http.StreamContent(sketchImage);
- __contentSketchImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
- request.SketchImagename is null
- ? "application/octet-stream"
- : (global::System.IO.Path.GetExtension(request.SketchImagename) ?? string.Empty).ToLowerInvariant() switch
- {
- ".aac" => "audio/aac",
- ".flac" => "audio/flac",
- ".gif" => "image/gif",
- ".jpeg" => "image/jpeg",
- ".jpg" => "image/jpeg",
- ".json" => "application/json",
- ".m4a" => "audio/mp4",
- ".mp3" => "audio/mpeg",
- ".mp4" => "video/mp4",
- ".mpeg" => "audio/mpeg",
- ".mpga" => "audio/mpeg",
- ".oga" => "audio/ogg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".pdf" => "application/pdf",
- ".png" => "image/png",
- ".txt" => "text/plain",
- ".wav" => "audio/wav",
- ".weba" => "audio/webm",
- ".webm" => "video/webm",
- ".webp" => "image/webp",
- _ => "application/octet-stream",
- });
- __httpRequestContent.Add(
- content: __contentSketchImage,
- name: "\"sketch_image\"",
- fileName: request.SketchImagename != null ? $"\"{request.SketchImagename}\"" : string.Empty);
- if (__contentSketchImage.Headers.ContentDisposition != null)
- {
- __contentSketchImage.Headers.ContentDisposition.FileNameStar = null;
- }
-
- }
- if (request.AdditionalImages != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.AdditionalImages.ToString() ?? string.Empty),
- name: "\"additional_images\"");
-
- }
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Html ?? string.Empty),
- name: "\"html\"");
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty),
- name: "\"prompt\"");
-
- if (request.TemplateId != default)
- {
-
- __httpRequestContent.Add(
- content: new global::System.Net.Http.StringContent(request.TemplateId ?? string.Empty),
- name: "\"template_id\"");
-
- }
-
- __httpRequest.Content = __httpRequestContent;
-
- global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders(
- request: __httpRequest,
- clientHeaders: Options.Headers,
- requestHeaders: requestOptions?.Headers);
-
- PrepareRequest(
- client: HttpClient,
- request: __httpRequest);
- PrepareInitHtmlEditApiV1PptHtmlEditInitPostRequest(
- httpClient: HttpClient,
- httpRequestMessage: __httpRequest,
- request: request);
-
- return __httpRequest;
- }
-
- global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
- global::System.Net.Http.HttpResponseMessage? __response = null;
- var __attemptNumber = 0;
- try
- {
- for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
- {
- __attemptNumber = __attempt;
- __httpRequest = __CreateHttpRequest();
- await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- try
- {
- __response = await HttpClient.SendAsync(
- request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.Http.HttpRequestException __exception)
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: null,
- attempt: __attempt);
- var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: null,
- exception: __exception,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attempt,
- maxAttempts: __maxAttempts,
- willRetry: __willRetry,
- retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
- retryReason: "exception",
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- if (!__willRetry)
- {
- throw;
- }
-
- __httpRequest.Dispose();
- __httpRequest = null;
- await global::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- if (__response != null &&
- __attempt < __maxAttempts &&
- global::Presenton.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
- {
- var __retryDelay = global::Presenton.AutoSDKRequestOptionsSupport.GetRetryDelay(
- clientOptions: Options,
- requestOptions: requestOptions,
- response: __response,
- attempt: __attempt);
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- 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::Presenton.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- retryDelay: __retryDelay,
- cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
- continue;
- }
-
- break;
- }
-
- if (__response == null)
- {
- throw new global::System.InvalidOperationException("No response received.");
- }
-
- using (__response)
- {
-
- ProcessResponse(
- client: HttpClient,
- response: __response);
- ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponse(
- httpClient: HttpClient,
- httpResponseMessage: __response);
- if (__response.IsSuccessStatusCode)
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- else
- {
- await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
- clientOptions: Options,
- context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext(
- operationId: "InitHtmlEditApiV1PptHtmlEditInitPost",
- methodName: "InitHtmlEditApiV1PptHtmlEditInitPostAsync",
- pathTemplate: "\"/api/v1/ppt/html-edit/init\"",
- httpMethod: "POST",
- baseUri: BaseUri,
- request: __httpRequest!,
- response: __response,
- exception: null,
- clientOptions: Options,
- requestOptions: requestOptions,
- attempt: __attemptNumber,
- maxAttempts: __maxAttempts,
- willRetry: false,
- retryDelay: null,
- retryReason: global::System.String.Empty,
- cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
- }
- // Validation Error
- if ((int)__response.StatusCode == 422)
- {
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Presenton.HTTPValidationError? __value_422 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_422 = __ex;
- }
-
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
- responseBody: __content_422,
- responseObject: __value_422,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
-
- if (__effectiveReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessInitHtmlEditApiV1PptHtmlEditInitPostResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
-
- try
- {
- __response.EnsureSuccessStatusCode();
-
- var __value = global::Presenton.HtmlEditInitResponse.FromJson(__content, JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
- else
- {
- try
- {
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
-
- var __value = await global::Presenton.HtmlEditInitResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
- return new global::Presenton.AutoSDKHttpResponse(
- statusCode: __response.StatusCode,
- headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response),
- requestUri: __response.RequestMessage?.RequestUri,
- body: __value);
- }
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
- #if NET5_0_OR_GREATER
- __effectiveCancellationToken
- #endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
-
- throw global::Presenton.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- responseBody: __content,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
- }
-
- }
- }
- finally
- {
- __httpRequest?.Dispose();
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.g.cs
deleted file mode 100644
index ab75c7b..0000000
--- a/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.g.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public sealed partial class HtmlToReactClient : global::Presenton.IHtmlToReactClient, global::System.IDisposable
- {
- ///
- ///
- ///
- public const string DefaultBaseUrl = "https://api.presenton.ai/";
-
- private bool _disposeHttpClient = true;
-
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- public System.Uri? BaseUri => HttpClient.BaseAddress;
-
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- public bool ReadResponseAsString { get; set; }
-#if DEBUG
- = true;
-#endif
-
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
- ///
- ///
- ///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Presenton.SourceGenerationContext.Default;
-
-
- ///
- /// Creates a new instance of the HtmlToReactClient.
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
- /// The authorizations to use for the requests.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlToReactClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- bool disposeHttpClient = true) : this(
- httpClient,
- baseUri,
- authorizations,
- options: null,
- disposeHttpClient: disposeHttpClient)
- {
- }
-
- ///
- /// Creates a new instance of the HtmlToReactClient with explicit options but no base URL override.
- /// Skips passing baseUri so the default base URL from the OpenAPI spec applies.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The authorizations to use for the requests.
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlToReactClient(
- global::System.Net.Http.HttpClient? httpClient,
- global::System.Collections.Generic.List? authorizations,
- global::Presenton.AutoSDKClientOptions? options,
- bool disposeHttpClient = true) : this(
- httpClient,
- baseUri: null,
- authorizations,
- options,
- disposeHttpClient: disposeHttpClient)
- {
- }
-
- ///
- /// Creates a new instance of the HtmlToReactClient.
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- /// The HttpClient instance. If not provided, a new one will be created.
- /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
- /// The authorizations to use for the requests.
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- /// Dispose the HttpClient when the instance is disposed. True by default.
- public HtmlToReactClient(
- global::System.Net.Http.HttpClient? httpClient,
- global::System.Uri? baseUri,
- global::System.Collections.Generic.List? authorizations,
- global::Presenton.AutoSDKClientOptions? options,
- bool disposeHttpClient = true)
- {
-
- HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
- HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
- Authorizations = authorizations ?? new global::System.Collections.Generic.List();
- Options = options ?? new global::Presenton.AutoSDKClientOptions();
- _disposeHttpClient = disposeHttpClient;
-
- Initialized(HttpClient);
- }
-
- ///
- public void Dispose()
- {
- if (_disposeHttpClient)
- {
- HttpClient.Dispose();
- }
- }
-
- partial void Initialized(
- global::System.Net.Http.HttpClient client);
- partial void PrepareArguments(
- global::System.Net.Http.HttpClient client);
- partial void PrepareRequest(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpRequestMessage request);
- partial void ProcessResponse(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpResponseMessage response);
- partial void ProcessResponseContent(
- global::System.Net.Http.HttpClient client,
- global::System.Net.Http.HttpResponseMessage response,
- ref string content);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IAuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs b/src/libs/Presenton/Generated/Presenton.IAuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs
new file mode 100644
index 0000000..d09772d
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IAuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs
@@ -0,0 +1,45 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IAuthClient
+ {
+ ///
+ /// Change Password
+ ///
+ ///
+ /// 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 ChangePasswordApiV1AuthProfileChangePasswordPostAsync(
+
+ global::Presenton.ChangePasswordRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Change Password
+ ///
+ ///
+ /// 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 ChangePasswordApiV1AuthProfileChangePasswordPostAsResponseAsync(
+
+ global::Presenton.ChangePasswordRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Change Password
+ ///
+ ///
+ ///
+ /// 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 ChangePasswordApiV1AuthProfileChangePasswordPostAsync(
+ string currentPassword,
+ string newPassword,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IChatClient.ChatMessageApiV3ChatMessagePost.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.ChatMessageApiV3ChatMessagePost.g.cs
new file mode 100644
index 0000000..04c154a
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.ChatMessageApiV3ChatMessagePost.g.cs
@@ -0,0 +1,51 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IChatClient
+ {
+ ///
+ /// Chat Message
+ ///
+ ///
+ /// 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 ChatMessageApiV3ChatMessagePostAsync(
+
+ global::Presenton.ChatMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Chat Message
+ ///
+ ///
+ /// 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> ChatMessageApiV3ChatMessagePostAsResponseAsync(
+
+ global::Presenton.ChatMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Chat Message
+ ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ /// 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 ChatMessageApiV3ChatMessagePostAsync(
+ global::System.Guid presentationId,
+ string message,
+ global::Presenton.ChatMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? conversationId = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IChatClient.ChatMessageStreamApiV3ChatMessageStreamPost.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.ChatMessageStreamApiV3ChatMessageStreamPost.g.cs
new file mode 100644
index 0000000..cdac265
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.ChatMessageStreamApiV3ChatMessageStreamPost.g.cs
@@ -0,0 +1,51 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IChatClient
+ {
+ ///
+ /// Chat Message Stream
+ ///
+ ///
+ /// 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 ChatMessageStreamApiV3ChatMessageStreamPostAsync(
+
+ global::Presenton.ChatMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Chat Message Stream
+ ///
+ ///
+ /// 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> ChatMessageStreamApiV3ChatMessageStreamPostAsResponseAsync(
+
+ global::Presenton.ChatMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Chat Message Stream
+ ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ /// 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 ChatMessageStreamApiV3ChatMessageStreamPostAsync(
+ global::System.Guid presentationId,
+ string message,
+ global::Presenton.ChatMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? conversationId = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IChatClient.EditChatMessageApiV3ChatMessageEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.EditChatMessageApiV3ChatMessageEditPost.g.cs
new file mode 100644
index 0000000..49b18e9
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.EditChatMessageApiV3ChatMessageEditPost.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IChatClient
+ {
+ ///
+ /// Edit Chat Message
+ ///
+ ///
+ /// 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 EditChatMessageApiV3ChatMessageEditPostAsync(
+
+ global::Presenton.ChatEditMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Chat Message
+ ///
+ ///
+ /// 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> EditChatMessageApiV3ChatMessageEditPostAsResponseAsync(
+
+ global::Presenton.ChatEditMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Chat Message
+ ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 EditChatMessageApiV3ChatMessageEditPostAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ string message,
+ global::Presenton.ChatEditMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? messageId = default,
+ int? position = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IChatClient.EditChatMessageStreamApiV3ChatMessageEditStreamPost.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.EditChatMessageStreamApiV3ChatMessageEditStreamPost.g.cs
new file mode 100644
index 0000000..9f6d97d
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.EditChatMessageStreamApiV3ChatMessageEditStreamPost.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IChatClient
+ {
+ ///
+ /// Edit Chat Message Stream
+ ///
+ ///
+ /// 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 EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync(
+
+ global::Presenton.ChatEditMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Chat Message Stream
+ ///
+ ///
+ /// 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> EditChatMessageStreamApiV3ChatMessageEditStreamPostAsResponseAsync(
+
+ global::Presenton.ChatEditMessageRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Chat Message Stream
+ ///
+ ///
+ ///
+ /// Default Value: standard
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 EditChatMessageStreamApiV3ChatMessageEditStreamPostAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ string message,
+ global::Presenton.ChatEditMessageRequestPresentationType? presentationType = default,
+ global::System.Guid? messageId = default,
+ int? position = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IChatClient.GetChatHistoryApiV3ChatHistoryGet.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.GetChatHistoryApiV3ChatHistoryGet.g.cs
new file mode 100644
index 0000000..e896e75
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.GetChatHistoryApiV3ChatHistoryGet.g.cs
@@ -0,0 +1,52 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IChatClient
+ {
+ ///
+ /// Get Chat History
+ ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ ///
+ /// Conversation thread id
+ ///
+ /// 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 GetChatHistoryApiV3ChatHistoryGetAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? presentationType = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Chat History
+ ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ ///
+ /// Conversation thread id
+ ///
+ /// 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> GetChatHistoryApiV3ChatHistoryGetAsResponseAsync(
+ global::System.Guid presentationId,
+ global::System.Guid conversationId,
+ global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? presentationType = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IChatClient.ListChatConversationsApiV3ChatConversationsGet.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.ListChatConversationsApiV3ChatConversationsGet.g.cs
new file mode 100644
index 0000000..03171b6
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.ListChatConversationsApiV3ChatConversationsGet.g.cs
@@ -0,0 +1,44 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IChatClient
+ {
+ ///
+ /// List Chat Conversations
+ ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ /// 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> ListChatConversationsApiV3ChatConversationsGetAsync(
+ global::System.Guid presentationId,
+ global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? presentationType = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Chat Conversations
+ ///
+ ///
+ /// Presentation id
+ ///
+ ///
+ /// Presentation type
+ /// Default Value: standard
+ ///
+ /// 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>> ListChatConversationsApiV3ChatConversationsGetAsResponseAsync(
+ global::System.Guid presentationId,
+ global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? presentationType = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.g.cs b/src/libs/Presenton/Generated/Presenton.IChatClient.g.cs
similarity index 95%
rename from src/libs/Presenton/Generated/Presenton.IHtmlEditClient.g.cs
rename to src/libs/Presenton/Generated/Presenton.IChatClient.g.cs
index 6c9f995..004a056 100644
--- a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IChatClient.g.cs
@@ -7,7 +7,7 @@ namespace Presenton
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
///
- public partial interface IHtmlEditClient : global::System.IDisposable
+ public partial interface IChatClient : global::System.IDisposable
{
///
/// The HttpClient instance.
diff --git a/src/libs/Presenton/Generated/Presenton.IDebugClient.ExportPresentationApiV1DebugExportPresentationPost.g.cs b/src/libs/Presenton/Generated/Presenton.IDebugClient.ExportPresentationApiV1DebugExportPresentationPost.g.cs
new file mode 100644
index 0000000..bca5bc1
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IDebugClient.ExportPresentationApiV1DebugExportPresentationPost.g.cs
@@ -0,0 +1,47 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IDebugClient
+ {
+ ///
+ /// Export Presentation
+ ///
+ ///
+ /// 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 ExportPresentationApiV1DebugExportPresentationPostAsync(
+
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Export Presentation
+ ///
+ ///
+ /// 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> ExportPresentationApiV1DebugExportPresentationPostAsResponseAsync(
+
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Export Presentation
+ ///
+ ///
+ ///
+ ///
+ /// 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 ExportPresentationApiV1DebugExportPresentationPostAsync(
+ string token,
+ global::System.Guid presentationId,
+ global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs exportAs,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IDesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs b/src/libs/Presenton/Generated/Presenton.IDesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs
deleted file mode 100644
index 7b16033..0000000
--- a/src/libs/Presenton/Generated/Presenton.IDesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IDesignSystemClient
- {
- ///
- /// Extract Design System
- /// Accepts an array of slides (image + markdown_content), concatenates markdown,
- /// sends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,
- /// and returns the extracted design system JSON.
- ///
- ///
- /// 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 ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync(
-
- global::Presenton.ExtractDesignSystemRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Extract Design System
- /// Accepts an array of slides (image + markdown_content), concatenates markdown,
- /// sends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,
- /// and returns the extracted design system JSON.
- ///
- ///
- /// 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> ExtractDesignSystemApiV1PptDesignSystemExtractPostAsResponseAsync(
-
- global::Presenton.ExtractDesignSystemRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Extract Design System
- /// Accepts an array of slides (image + markdown_content), concatenates markdown,
- /// sends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,
- /// and returns the extracted design system JSON.
- ///
- ///
- /// 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 ExtractDesignSystemApiV1PptDesignSystemExtractPostAsync(
- global::System.Collections.Generic.IList slides,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IDesignSystemClient.g.cs b/src/libs/Presenton/Generated/Presenton.IDesignSystemClient.g.cs
deleted file mode 100644
index 9c040e2..0000000
--- a/src/libs/Presenton/Generated/Presenton.IDesignSystemClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IDesignSystemClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IDownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs b/src/libs/Presenton/Generated/Presenton.IDownloadsClient.AddDownloadHandlerApiV3DownloadsAddPost.g.cs
similarity index 80%
rename from src/libs/Presenton/Generated/Presenton.IDownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IDownloadsClient.AddDownloadHandlerApiV3DownloadsAddPost.g.cs
index cc33c4a..ceabe5b 100644
--- a/src/libs/Presenton/Generated/Presenton.IDownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IDownloadsClient.AddDownloadHandlerApiV3DownloadsAddPost.g.cs
@@ -5,29 +5,33 @@ namespace Presenton
public partial interface IDownloadsClient
{
///
- /// Add Download
+ /// Add Download Handler
///
///
///
+ ///
/// 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 AddDownloadApiV3DownloadsAddPostAsync(
+ global::System.Threading.Tasks.Task AddDownloadHandlerApiV3DownloadsAddPostAsync(
global::Presenton.Device device,
global::Presenton.DownloadFormat format,
+ string version,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Add Download
+ /// Add Download Handler
///
///
///
+ ///
/// 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> AddDownloadApiV3DownloadsAddPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> AddDownloadHandlerApiV3DownloadsAddPostAsResponseAsync(
global::Presenton.Device device,
global::Presenton.DownloadFormat format,
+ string version,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IFontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.IFontsClient.CheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs
similarity index 64%
rename from src/libs/Presenton/Generated/Presenton.IFontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IFontsClient.CheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs
index 50cee57..2d67b68 100644
--- a/src/libs/Presenton/Generated/Presenton.IFontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IFontsClient.CheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs
@@ -5,77 +5,84 @@ namespace Presenton
public partial interface IFontsClient
{
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
/// 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 CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
- global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost request,
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
/// 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> CheckFontsInPptxApiV1PptFontsCheckPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsResponseAsync(
- global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost request,
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
- ///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
- ///
+ ///
+ ///
/// 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 CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
byte[] pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
+ /// The stream to send as the multipart 'pptx_file' file part.
///
+ ///
/// 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 CheckFontsInPptxApiV1PptFontsCheckPostAsync(
+ global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
+ /// The stream to send as the multipart 'pptx_file' file part.
///
+ ///
/// 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> CheckFontsInPptxApiV1PptFontsCheckPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV1PptFontsCheckPostAsResponseAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs
deleted file mode 100644
index 95f793e..0000000
--- a/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IHtmlCreateClient
- {
- ///
- /// Init Html Create
- ///
- ///
- /// 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 InitHtmlCreateApiV1PptHtmlCreateInitPostAsync(
-
- global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Init Html Create
- ///
- ///
- /// 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> InitHtmlCreateApiV1PptHtmlCreateInitPostAsResponseAsync(
-
- global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Init Html Create
- ///
- ///
- /// Primary reference/sketch image (optional)
- ///
- ///
- /// Primary reference/sketch image (optional)
- ///
- ///
- ///
- /// Optional existing HTML content to inform create
- ///
- ///
- /// Text prompt describing the slide to create
- ///
- ///
- /// Template identifier (any string) whose design system should guide create
- ///
- /// 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 InitHtmlCreateApiV1PptHtmlCreateInitPostAsync(
- string prompt,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? html = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.g.cs b/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.g.cs
deleted file mode 100644
index 379d9b5..0000000
--- a/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IHtmlCreateClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs
deleted file mode 100644
index 868cdb7..0000000
--- a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs
+++ /dev/null
@@ -1,184 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IHtmlEditClient
- {
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// 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 EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
-
- global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// 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> EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsResponseAsync(
-
- global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
- byte[] currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Edit Html With Images Endpoint
- /// Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.
- /// Args:
- /// current_ui_image: Uploaded current UI image file
- /// sketch_image: Uploaded sketch/indication image file (optional)
- /// html: Current HTML content to edit (form data)
- /// prompt: Text prompt describing the changes (form data)
- /// Returns:
- /// HtmlEditResponse with edited HTML
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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> EditHtmlWithImagesEndpointApiV1PptHtmlEditPostAsResponseAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs
deleted file mode 100644
index ccfa22b..0000000
--- a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IHtmlEditClient
- {
- ///
- /// Init Html 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 InitHtmlEditApiV1PptHtmlEditInitPostAsync(
-
- global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Init Html 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> InitHtmlEditApiV1PptHtmlEditInitPostAsResponseAsync(
-
- global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Init Html Edit
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 InitHtmlEditApiV1PptHtmlEditInitPostAsync(
- byte[] currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Init Html Edit
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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 InitHtmlEditApiV1PptHtmlEditInitPostAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Init Html Edit
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Current UI image file
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- ///
- /// Current HTML content to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Template identifier (any string) whose design system should guide edits
- ///
- /// 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> InitHtmlEditApiV1PptHtmlEditInitPostAsResponseAsync(
- global::System.IO.Stream currentUiImage,
- string currentUiImagename,
- string html,
- string prompt,
- global::System.IO.Stream? sketchImage = default,
- string? sketchImagename = default,
- global::System.Collections.Generic.IList? additionalImages = default,
- string? templateId = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs b/src/libs/Presenton/Generated/Presenton.IHtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs
deleted file mode 100644
index aac9afd..0000000
--- a/src/libs/Presenton/Generated/Presenton.IHtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IHtmlToReactClient
- {
- ///
- /// Convert Html To React
- /// Convert HTML content to TSX React component using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing HTML content
- /// Returns:
- /// HtmlToReactResponse with generated React component
- ///
- ///
- /// 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 ConvertHtmlToReactApiV1PptHtmlToReactPostAsync(
-
- global::Presenton.HtmlToReactRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Convert Html To React
- /// Convert HTML content to TSX React component using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing HTML content
- /// Returns:
- /// HtmlToReactResponse with generated React component
- ///
- ///
- /// 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> ConvertHtmlToReactApiV1PptHtmlToReactPostAsResponseAsync(
-
- global::Presenton.HtmlToReactRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Convert Html To React
- /// Convert HTML content to TSX React component using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing HTML content
- /// Returns:
- /// HtmlToReactResponse with generated React component
- ///
- ///
- ///
- /// 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 ConvertHtmlToReactApiV1PptHtmlToReactPostAsync(
- string html,
- string? image = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlToReactClient.g.cs b/src/libs/Presenton/Generated/Presenton.IHtmlToReactClient.g.cs
deleted file mode 100644
index a535a4b..0000000
--- a/src/libs/Presenton/Generated/Presenton.IHtmlToReactClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IHtmlToReactClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IOutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IOutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs
index 6a1eee8..5156250 100644
--- a/src/libs/Presenton/Generated/Presenton.IOutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IOutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs
@@ -40,6 +40,9 @@ public partial interface IOutlinesClient
///
/// The number of slides to generate
///
+ ///
+ /// Optional design ID to use for outline generation
+ ///
///
/// The language for the presentation
///
@@ -72,6 +75,7 @@ public partial interface IOutlinesClient
string? content = default,
global::System.Collections.Generic.IList? files = default,
int? nSlides = default,
+ global::System.Guid? design = default,
string? language = default,
global::Presenton.Tone? tone = default,
global::Presenton.Verbosity? verbosity = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IPdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.IPdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs
deleted file mode 100644
index e34a59b..0000000
--- a/src/libs/Presenton/Generated/Presenton.IPdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IPdfSlidesClient
- {
- ///
- /// Process Pdf Slides
- /// Process a PDF file to extract slide screenshots.
- /// This endpoint:
- /// 1. Validates the uploaded PDF file
- /// 2. Uses ImageMagick to convert PDF pages to PNG images
- /// 3. Returns screenshot URLs for each slide/page
- /// Note: Font installation is not needed since PDFs already have fonts embedded.
- ///
- ///
- /// 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 ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync(
-
- global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process Pdf Slides
- /// Process a PDF file to extract slide screenshots.
- /// This endpoint:
- /// 1. Validates the uploaded PDF file
- /// 2. Uses ImageMagick to convert PDF pages to PNG images
- /// 3. Returns screenshot URLs for each slide/page
- /// Note: Font installation is not needed since PDFs already have fonts embedded.
- ///
- ///
- /// 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> ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsResponseAsync(
-
- global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process Pdf Slides
- /// Process a PDF file to extract slide screenshots.
- /// This endpoint:
- /// 1. Validates the uploaded PDF file
- /// 2. Uses ImageMagick to convert PDF pages to PNG images
- /// 3. Returns screenshot URLs for each slide/page
- /// Note: Font installation is not needed since PDFs already have fonts embedded.
- ///
- ///
- /// PDF file to process
- ///
- ///
- /// PDF file to process
- ///
- /// 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 ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync(
- byte[] pdfFile,
- string pdfFilename,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Process Pdf Slides
- /// Process a PDF file to extract slide screenshots.
- /// This endpoint:
- /// 1. Validates the uploaded PDF file
- /// 2. Uses ImageMagick to convert PDF pages to PNG images
- /// 3. Returns screenshot URLs for each slide/page
- /// Note: Font installation is not needed since PDFs already have fonts embedded.
- ///
- ///
- /// PDF file to process
- ///
- ///
- /// PDF file to process
- ///
- /// 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 ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync(
- global::System.IO.Stream pdfFile,
- string pdfFilename,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process Pdf Slides
- /// Process a PDF file to extract slide screenshots.
- /// This endpoint:
- /// 1. Validates the uploaded PDF file
- /// 2. Uses ImageMagick to convert PDF pages to PNG images
- /// 3. Returns screenshot URLs for each slide/page
- /// Note: Font installation is not needed since PDFs already have fonts embedded.
- ///
- ///
- /// PDF file to process
- ///
- ///
- /// PDF file to process
- ///
- /// 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> ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsResponseAsync(
- global::System.IO.Stream pdfFile,
- string pdfFilename,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IPdfSlidesClient.g.cs b/src/libs/Presenton/Generated/Presenton.IPdfSlidesClient.g.cs
deleted file mode 100644
index e31ab6b..0000000
--- a/src/libs/Presenton/Generated/Presenton.IPdfSlidesClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IPdfSlidesClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IPptxFontsClient.g.cs b/src/libs/Presenton/Generated/Presenton.IPptxFontsClient.g.cs
deleted file mode 100644
index 3b134b9..0000000
--- a/src/libs/Presenton/Generated/Presenton.IPptxFontsClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IPptxFontsClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IPptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.IPptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs
deleted file mode 100644
index 64bde95..0000000
--- a/src/libs/Presenton/Generated/Presenton.IPptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IPptxSlidesClient
- {
- ///
- /// Process Pptx Slides
- /// Process a PPTX file to extract slide screenshots and XML content.
- /// This endpoint:
- /// 1. Validates the uploaded PPTX file
- /// 2. Installs any provided font files
- /// 3. Unzips the PPTX to extract slide XMLs
- /// 4. Uses LibreOffice to generate slide screenshots
- /// 5. Returns both screenshot URLs and XML content for each slide
- ///
- ///
- /// 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 ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync(
-
- global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process Pptx Slides
- /// Process a PPTX file to extract slide screenshots and XML content.
- /// This endpoint:
- /// 1. Validates the uploaded PPTX file
- /// 2. Installs any provided font files
- /// 3. Unzips the PPTX to extract slide XMLs
- /// 4. Uses LibreOffice to generate slide screenshots
- /// 5. Returns both screenshot URLs and XML content for each slide
- ///
- ///
- /// 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> ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsResponseAsync(
-
- global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process Pptx Slides
- /// Process a PPTX file to extract slide screenshots and XML content.
- /// This endpoint:
- /// 1. Validates the uploaded PPTX file
- /// 2. Installs any provided font files
- /// 3. Unzips the PPTX to extract slide XMLs
- /// 4. Uses LibreOffice to generate slide screenshots
- /// 5. Returns both screenshot URLs and XML content for each slide
- ///
- ///
- /// PPTX file to process
- ///
- ///
- /// PPTX file to process
- ///
- ///
- /// Optional font files
- ///
- /// 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 ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync(
- byte[] pptxFile,
- string pptxFilename,
- global::System.Collections.Generic.IList? fonts = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
-
- ///
- /// Process Pptx Slides
- /// Process a PPTX file to extract slide screenshots and XML content.
- /// This endpoint:
- /// 1. Validates the uploaded PPTX file
- /// 2. Installs any provided font files
- /// 3. Unzips the PPTX to extract slide XMLs
- /// 4. Uses LibreOffice to generate slide screenshots
- /// 5. Returns both screenshot URLs and XML content for each slide
- ///
- ///
- /// PPTX file to process
- ///
- ///
- /// PPTX file to process
- ///
- ///
- /// Optional font files
- ///
- /// 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 ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync(
- global::System.IO.Stream pptxFile,
- string pptxFilename,
- global::System.Collections.Generic.IList? fonts = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Process Pptx Slides
- /// Process a PPTX file to extract slide screenshots and XML content.
- /// This endpoint:
- /// 1. Validates the uploaded PPTX file
- /// 2. Installs any provided font files
- /// 3. Unzips the PPTX to extract slide XMLs
- /// 4. Uses LibreOffice to generate slide screenshots
- /// 5. Returns both screenshot URLs and XML content for each slide
- ///
- ///
- /// PPTX file to process
- ///
- ///
- /// PPTX file to process
- ///
- ///
- /// Optional font files
- ///
- /// 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> ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsResponseAsync(
- global::System.IO.Stream pptxFile,
- string pptxFilename,
- global::System.Collections.Generic.IList? fonts = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IPptxSlidesClient.g.cs b/src/libs/Presenton/Generated/Presenton.IPptxSlidesClient.g.cs
deleted file mode 100644
index 97569f4..0000000
--- a/src/libs/Presenton/Generated/Presenton.IPptxSlidesClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IPptxSlidesClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IPresentonClient.g.cs b/src/libs/Presenton/Generated/Presenton.IPresentonClient.g.cs
index 34674c6..b7a3f37 100644
--- a/src/libs/Presenton/Generated/Presenton.IPresentonClient.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IPresentonClient.g.cs
@@ -57,17 +57,17 @@ public partial interface IPresentonClient : global::System.IDisposable
///
///
///
- public CreditClient Credit { get; }
+ public ChatClient Chat { get; }
///
///
///
- public DebugClient Debug { get; }
+ public CreditClient Credit { get; }
///
///
///
- public DesignSystemClient DesignSystem { get; }
+ public DebugClient Debug { get; }
///
///
@@ -89,21 +89,6 @@ public partial interface IPresentonClient : global::System.IDisposable
///
public HealthClient Health { get; }
- ///
- ///
- ///
- public HtmlCreateClient HtmlCreate { get; }
-
- ///
- ///
- ///
- public HtmlEditClient HtmlEdit { get; }
-
- ///
- ///
- ///
- public HtmlToReactClient HtmlToReact { get; }
-
///
///
///
@@ -124,56 +109,21 @@ public partial interface IPresentonClient : global::System.IDisposable
///
public OutlinesClient Outlines { get; }
- ///
- ///
- ///
- public PdfSlidesClient PdfSlides { get; }
-
- ///
- ///
- ///
- public PptxFontsClient PptxFonts { get; }
-
- ///
- ///
- ///
- public PptxSlidesClient PptxSlides { get; }
-
///
///
///
public PresentationClient Presentation { get; }
- ///
- ///
- ///
- public ReactEditClient ReactEdit { get; }
-
///
///
///
public SlideClient Slide { get; }
- ///
- ///
- ///
- public SlideToHtmlClient SlideToHtml { get; }
-
- ///
- ///
- ///
- public SlideToReactClient SlideToReact { get; }
-
///
///
///
public TemplateClient Template { get; }
- ///
- ///
- ///
- public TemplateManagementClient TemplateManagement { get; }
-
///
///
///
diff --git a/src/libs/Presenton/Generated/Presenton.IReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.IReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs
deleted file mode 100644
index 77a5f4b..0000000
--- a/src/libs/Presenton/Generated/Presenton.IReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IReactEditClient
- {
- ///
- /// Edit React With Image Endpoint
- ///
- ///
- /// 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 EditReactWithImageEndpointApiV1PptReactEditPostAsync(
-
- global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Edit React With Image Endpoint
- ///
- ///
- /// 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> EditReactWithImageEndpointApiV1PptReactEditPostAsResponseAsync(
-
- global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Edit React With Image Endpoint
- ///
- ///
- /// Current UI image file (optional)
- ///
- ///
- /// Current UI image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Sketch/indication image file (optional)
- ///
- ///
- /// Current React component code to edit
- ///
- ///
- /// Text prompt describing the changes
- ///
- ///
- /// Optional design system JSON to guide the 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 EditReactWithImageEndpointApiV1PptReactEditPostAsync(
- string react,
- string prompt,
- byte[]? currentUiImage = default,
- string? currentUiImagename = default,
- byte[]? sketchImage = default,
- string? sketchImagename = default,
- string? designSystem = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IReactEditClient.g.cs b/src/libs/Presenton/Generated/Presenton.IReactEditClient.g.cs
deleted file mode 100644
index af327a3..0000000
--- a/src/libs/Presenton/Generated/Presenton.IReactEditClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface IReactEditClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ISlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs b/src/libs/Presenton/Generated/Presenton.ISlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs
deleted file mode 100644
index d5b6140..0000000
--- a/src/libs/Presenton/Generated/Presenton.ISlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface ISlideToHtmlClient
- {
- ///
- /// Convert Slide To Html
- /// Convert a slide image and its OXML data to HTML using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing image path and XML content
- /// Returns:
- /// SlideToHtmlResponse with generated HTML
- ///
- ///
- /// 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 ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync(
-
- global::Presenton.SlideToHtmlRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Convert Slide To Html
- /// Convert a slide image and its OXML data to HTML using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing image path and XML content
- /// Returns:
- /// SlideToHtmlResponse with generated HTML
- ///
- ///
- /// 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> ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsResponseAsync(
-
- global::Presenton.SlideToHtmlRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Convert Slide To Html
- /// Convert a slide image and its OXML data to HTML using Anthropic Claude API.
- /// Args:
- /// request: JSON request containing image path and XML content
- /// Returns:
- /// SlideToHtmlResponse with generated HTML
- ///
- ///
- ///
- ///
- /// 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 ConvertSlideToHtmlApiV1PptSlideToHtmlPostAsync(
- string image,
- string xml,
- global::System.Collections.Generic.IList? fonts = default,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ISlideToHtmlClient.g.cs b/src/libs/Presenton/Generated/Presenton.ISlideToHtmlClient.g.cs
deleted file mode 100644
index 0b318b2..0000000
--- a/src/libs/Presenton/Generated/Presenton.ISlideToHtmlClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ISlideToHtmlClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ISlideToReactClient.g.cs b/src/libs/Presenton/Generated/Presenton.ISlideToReactClient.g.cs
deleted file mode 100644
index 05357a8..0000000
--- a/src/libs/Presenton/Generated/Presenton.ISlideToReactClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ISlideToReactClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs b/src/libs/Presenton/Generated/Presenton.ITemplateClient.CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost.g.cs
similarity index 88%
rename from src/libs/Presenton/Generated/Presenton.ITemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.ITemplateClient.CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost.g.cs
index e6d53f5..8ccef30 100644
--- a/src/libs/Presenton/Generated/Presenton.ITemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.ITemplateClient.CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface ITemplateClient
{
///
- /// Create Slide Layout Old
+ /// Create Slide Layout
///
///
/// Whether the slide layout is being reconstructed
@@ -15,14 +15,14 @@ public partial interface ITemplateClient
/// 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 CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync(
+ global::System.Threading.Tasks.Task CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync(
global::Presenton.CreateSlideLayoutRequest request,
bool? isReconstruct = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Slide Layout Old
+ /// Create Slide Layout
///
///
/// Whether the slide layout is being reconstructed
@@ -32,14 +32,14 @@ public partial interface ITemplateClient
/// 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> CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsResponseAsync(
global::Presenton.CreateSlideLayoutRequest request,
bool? isReconstruct = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Slide Layout Old
+ /// Create Slide Layout
///
///
/// Whether the slide layout is being reconstructed
@@ -50,7 +50,7 @@ public partial interface ITemplateClient
/// 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 CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync(
+ global::System.Threading.Tasks.Task CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync(
global::System.Guid id,
int index,
bool? isReconstruct = default,
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateClient.GetLayoutsBatchApiV1PptTemplateLayoutsPost.g.cs b/src/libs/Presenton/Generated/Presenton.ITemplateClient.GetLayoutsBatchApiV1PptTemplateLayoutsPost.g.cs
new file mode 100644
index 0000000..5373803
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.ITemplateClient.GetLayoutsBatchApiV1PptTemplateLayoutsPost.g.cs
@@ -0,0 +1,43 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface ITemplateClient
+ {
+ ///
+ /// Get Layouts Batch
+ ///
+ ///
+ /// 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> GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync(
+
+ global::Presenton.GetMultipleTemplateLayoutsRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Layouts Batch
+ ///
+ ///
+ /// 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>> GetLayoutsBatchApiV1PptTemplateLayoutsPostAsResponseAsync(
+
+ global::Presenton.GetMultipleTemplateLayoutsRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Layouts Batch
+ ///
+ ///
+ /// 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> GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync(
+ global::System.Collections.Generic.IList templateIds,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs b/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs
deleted file mode 100644
index d99a203..0000000
--- a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface ITemplateManagementClient
- {
- ///
- /// Get Layouts
- /// Retrieve all layouts for a specific presentation.
- /// Args:
- /// presentation: UUID of the presentation
- /// session: Database session
- /// Returns:
- /// GetLayoutsResponse with layouts data
- /// Raises:
- /// HTTPException: 404 if no layouts found, 400 for invalid UUID, 500 for server errors
- ///
- ///
- /// 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 GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync(
- global::System.Guid presentation,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get Layouts
- /// Retrieve all layouts for a specific presentation.
- /// Args:
- /// presentation: UUID of the presentation
- /// session: Database session
- /// Returns:
- /// GetLayoutsResponse with layouts data
- /// Raises:
- /// HTTPException: 404 if no layouts found, 400 for invalid UUID, 500 for server errors
- ///
- ///
- /// 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> GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsResponseAsync(
- global::System.Guid presentation,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs b/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs
deleted file mode 100644
index 6b43518..0000000
--- a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface ITemplateManagementClient
- {
- ///
- /// Get all presentations with layout counts
- /// Retrieve a summary of all presentations and the number of layouts in each
- ///
- /// 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 GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync(
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Get all presentations with layout counts
- /// Retrieve a summary of all presentations and the number of layouts in each
- ///
- /// 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> GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsResponseAsync(
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs b/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs
deleted file mode 100644
index a04721e..0000000
--- a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface ITemplateManagementClient
- {
- ///
- /// Save Layouts
- /// Save multiple layouts for presentations.
- /// Args:
- /// request: JSON request containing array of layout data
- /// session: Database session
- /// Returns:
- /// SaveLayoutsResponse with success status and count of saved layouts
- /// Raises:
- /// HTTPException: 400 for validation errors, 500 for server errors
- ///
- ///
- /// 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 SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync(
-
- global::Presenton.SaveLayoutsRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Save Layouts
- /// Save multiple layouts for presentations.
- /// Args:
- /// request: JSON request containing array of layout data
- /// session: Database session
- /// Returns:
- /// SaveLayoutsResponse with success status and count of saved layouts
- /// Raises:
- /// HTTPException: 400 for validation errors, 500 for server errors
- ///
- ///
- /// 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> SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsResponseAsync(
-
- global::Presenton.SaveLayoutsRequest request,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Save Layouts
- /// Save multiple layouts for presentations.
- /// Args:
- /// request: JSON request containing array of layout data
- /// session: Database session
- /// Returns:
- /// SaveLayoutsResponse with success status and count of saved layouts
- /// Raises:
- /// HTTPException: 400 for validation errors, 500 for server errors
- ///
- ///
- /// 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 SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync(
- global::System.Collections.Generic.IList layouts,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.g.cs b/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.g.cs
deleted file mode 100644
index cc27b9d..0000000
--- a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#nullable enable
-
-namespace Presenton
-{
- ///
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
- ///
- public partial interface ITemplateManagementClient : global::System.IDisposable
- {
- ///
- /// The HttpClient instance.
- ///
- public global::System.Net.Http.HttpClient HttpClient { get; }
-
- ///
- /// The base URL for the API.
- ///
- public System.Uri? BaseUri { get; }
-
- ///
- /// The authorizations to use for the requests.
- ///
- public global::System.Collections.Generic.List Authorizations { get; }
-
- ///
- /// Gets or sets a value indicating whether the response content should be read as a string.
- /// True by default in debug builds, false otherwise.
- /// When false, successful responses are deserialized directly from the response stream for better performance.
- /// Error responses are always read as strings regardless of this setting,
- /// ensuring is populated.
- ///
- public bool ReadResponseAsString { get; set; }
- ///
- /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
- ///
- public global::Presenton.AutoSDKClientOptions Options { get; }
-
-
- ///
- ///
- ///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
-
-
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.IThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs
index 5e6c6a6..5b223ea 100644
--- a/src/libs/Presenton/Generated/Presenton.IThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs
@@ -5,48 +5,49 @@ namespace Presenton
public partial interface IThemesClient
{
///
- /// Create Theme
+ /// Create a user theme
+ /// Creates a custom presentation theme for the authenticated user. The request body must include a name, description, and complete theme data with colors and fonts. Optionally pass `company_name` and a `logo` image asset id; the logo must already exist.
///
///
/// 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 CreateThemeApiV1PptThemesCreatePostAsync(
+ global::System.Threading.Tasks.Task CreateThemeApiV1PptThemesCreatePostAsync(
global::Presenton.BodyCreateThemeApiV1PptThemesCreatePost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Theme
+ /// Create a user theme
+ /// Creates a custom presentation theme for the authenticated user. The request body must include a name, description, and complete theme data with colors and fonts. Optionally pass `company_name` and a `logo` image asset id; the logo must already exist.
///
///
/// 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> CreateThemeApiV1PptThemesCreatePostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CreateThemeApiV1PptThemesCreatePostAsResponseAsync(
global::Presenton.BodyCreateThemeApiV1PptThemesCreatePost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Theme
+ /// Create a user theme
+ /// Creates a custom presentation theme for the authenticated user. The request body must include a name, description, and complete theme data with colors and fonts. Optionally pass `company_name` and a `logo` image asset id; the logo must already exist.
///
///
///
+ ///
///
///
- ///
- /// Default Value: {}
- ///
/// 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 CreateThemeApiV1PptThemesCreatePostAsync(
+ global::System.Threading.Tasks.Task CreateThemeApiV1PptThemesCreatePostAsync(
string name,
string description,
+ global::Presenton.PresentionThemeDataInput data,
string? companyName = default,
global::System.Guid? logo = default,
- object? data = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.IThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs
index 925ec3d..0fac441 100644
--- a/src/libs/Presenton/Generated/Presenton.IThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs
@@ -5,7 +5,8 @@ namespace Presenton
public partial interface IThemesClient
{
///
- /// Delete Theme
+ /// Delete a user theme
+ /// Deletes a custom theme owned by the authenticated user. Default built-in themes cannot be deleted through this endpoint.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -16,7 +17,8 @@ public partial interface IThemesClient
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Delete Theme
+ /// Delete a user theme
+ /// Deletes a custom theme owned by the authenticated user. Default built-in themes cannot be deleted through this endpoint.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Presenton/Generated/Presenton.IThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.IThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs
index a500340..bfe5397 100644
--- a/src/libs/Presenton/Generated/Presenton.IThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs
@@ -5,21 +5,23 @@ namespace Presenton
public partial interface IThemesClient
{
///
- /// Get Default Themes
+ /// List default themes
+ /// Returns all built-in presentation themes available to every user. Use the returned string id as the `theme` value when generating a standard presentation.
///
/// 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> GetDefaultThemesApiV1PptThemesDefaultGetAsync(
+ global::System.Threading.Tasks.Task> GetDefaultThemesApiV1PptThemesDefaultGetAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Get Default Themes
+ /// List default themes
+ /// Returns all built-in presentation themes available to every user. Use the returned string id as the `theme` value when generating a standard presentation.
///
/// 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>> GetDefaultThemesApiV1PptThemesDefaultGetAsResponseAsync(
+ global::System.Threading.Tasks.Task>> GetDefaultThemesApiV1PptThemesDefaultGetAsResponseAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IThemesClient.GetThemesApiV1PptThemesAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.IThemesClient.GetThemesApiV1PptThemesAllGet.g.cs
index d20b538..09f307f 100644
--- a/src/libs/Presenton/Generated/Presenton.IThemesClient.GetThemesApiV1PptThemesAllGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IThemesClient.GetThemesApiV1PptThemesAllGet.g.cs
@@ -5,21 +5,23 @@ namespace Presenton
public partial interface IThemesClient
{
///
- /// Get Themes
+ /// List user themes
+ /// Returns the authenticated user's custom presentation themes ordered by newest first. Built-in default themes are not included in this list.
///
/// 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> GetThemesApiV1PptThemesAllGetAsync(
+ global::System.Threading.Tasks.Task> GetThemesApiV1PptThemesAllGetAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Get Themes
+ /// List user themes
+ /// Returns the authenticated user's custom presentation themes ordered by newest first. Built-in default themes are not included in this list.
///
/// 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>> GetThemesApiV1PptThemesAllGetAsResponseAsync(
+ global::System.Threading.Tasks.Task>> GetThemesApiV1PptThemesAllGetAsResponseAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.IThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs
index 519c16f..64265a9 100644
--- a/src/libs/Presenton/Generated/Presenton.IThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs
@@ -5,35 +5,38 @@ namespace Presenton
public partial interface IThemesClient
{
///
- /// Update Theme
+ /// Update a user theme
+ /// Updates a custom theme owned by the authenticated user. Fields are optional; only supplied values are changed. Passing a new `logo` replaces the previous logo asset, and passing `data` replaces the stored colors and fonts.
///
///
///
/// 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 UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync(
+ global::System.Threading.Tasks.Task UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync(
global::System.Guid themeId,
global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Update Theme
+ /// Update a user theme
+ /// Updates a custom theme owned by the authenticated user. Fields are optional; only supplied values are changed. Passing a new `logo` replaces the previous logo asset, and passing `data` replaces the stored colors and fonts.
///
///
///
/// 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> UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsResponseAsync(
+ global::System.Threading.Tasks.Task> UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsResponseAsync(
global::System.Guid themeId,
global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Update Theme
+ /// Update a user theme
+ /// Updates a custom theme owned by the authenticated user. Fields are optional; only supplied values are changed. Passing a new `logo` replaces the previous logo asset, and passing `data` replaces the stored colors and fonts.
///
///
///
@@ -44,13 +47,13 @@ public partial interface IThemesClient
/// 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 UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync(
+ global::System.Threading.Tasks.Task UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync(
global::System.Guid themeId,
string? name = default,
string? description = default,
string? companyName = default,
global::System.Guid? logo = default,
- object? data = default,
+ global::Presenton.PresentionThemeDataInput? data = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignReferenceApiV2PptDesignCreateReferencePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignReferenceApiV2PptDesignCreateReferencePost.g.cs
new file mode 100644
index 0000000..e9d3276
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignReferenceApiV2PptDesignCreateReferencePost.g.cs
@@ -0,0 +1,57 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV2DesignClient
+ {
+ ///
+ /// Create Design Reference
+ ///
+ ///
+ /// 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 CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync(
+
+ global::Presenton.CreateDesignReferenceRequest request,
+ bool? isReconstruct = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Design Reference
+ ///
+ ///
+ /// 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> CreateDesignReferenceApiV2PptDesignCreateReferencePostAsResponseAsync(
+
+ global::Presenton.CreateDesignReferenceRequest request,
+ bool? isReconstruct = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Design Reference
+ ///
+ ///
+ /// 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 CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync(
+ global::System.Guid id,
+ int index,
+ bool? isReconstruct = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignReferenceApiV2PptDesignReferenceCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignReferenceApiV2PptDesignReferenceCreatePost.g.cs
new file mode 100644
index 0000000..1514471
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignReferenceApiV2PptDesignReferenceCreatePost.g.cs
@@ -0,0 +1,57 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV2DesignClient
+ {
+ ///
+ /// Create Design Reference
+ ///
+ ///
+ /// 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 CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync(
+
+ global::Presenton.CreateDesignReferenceRequest request,
+ bool? isReconstruct = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Design Reference
+ ///
+ ///
+ /// 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> CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsResponseAsync(
+
+ global::Presenton.CreateDesignReferenceRequest request,
+ bool? isReconstruct = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Design Reference
+ ///
+ ///
+ /// 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 CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync(
+ global::System.Guid id,
+ int index,
+ bool? isReconstruct = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost.g.cs
similarity index 71%
rename from src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost.g.cs
index 4ad349c..9f4acaa 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost.g.cs
@@ -5,44 +5,43 @@ namespace Presenton
public partial interface IV2DesignClient
{
///
- /// Create Design System V2 Async
- /// Kicks off asynchronous design system extraction. Poll status via /design/status/{id}.
+ /// Create Design V2 Async
///
///
/// 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 CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync(
+ global::System.Threading.Tasks.Task CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync(
- global::Presenton.CreateDesignSystemRequest request,
+ global::Presenton.CreateDesignRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Design System V2 Async
- /// Kicks off asynchronous design system extraction. Poll status via /design/status/{id}.
+ /// Create Design V2 Async
///
///
/// 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> CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsResponseAsync(
- global::Presenton.CreateDesignSystemRequest request,
+ global::Presenton.CreateDesignRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Design System V2 Async
- /// Kicks off asynchronous design system extraction. Poll status via /design/status/{id}.
+ /// Create Design V2 Async
///
///
+ ///
///
///
/// 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 CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync(
- global::System.Collections.Generic.IList slideImageUrls,
+ global::System.Threading.Tasks.Task CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync(
string? pptxUrl = default,
+ string? name = default,
+ global::System.Collections.Generic.IList? slideImageUrls = default,
object? fonts = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.DeleteDesignV2ApiV2PptDesignDesignIdUiDelete.g.cs
similarity index 72%
rename from src/libs/Presenton/Generated/Presenton.IV2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.DeleteDesignV2ApiV2PptDesignDesignIdUiDelete.g.cs
index 982f2d0..ec743e2 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.DeleteDesignV2ApiV2PptDesignDesignIdUiDelete.g.cs
@@ -5,25 +5,25 @@ namespace Presenton
public partial interface IV2DesignClient
{
///
- /// Delete Design System V2
+ /// Delete Design V2
///
- ///
+ ///
/// 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 DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync(
- global::System.Guid designSystemId,
+ global::System.Threading.Tasks.Task DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync(
+ global::System.Guid designId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Delete Design System V2
+ /// Delete Design V2
///
- ///
+ ///
/// 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 DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync(
- global::System.Guid designSystemId,
+ global::System.Threading.Tasks.Task DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsResponseAsync(
+ global::System.Guid designId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.EditDesignReferenceApiV2PptDesignReferenceEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.EditDesignReferenceApiV2PptDesignReferenceEditPost.g.cs
new file mode 100644
index 0000000..d2c33af
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.EditDesignReferenceApiV2PptDesignReferenceEditPost.g.cs
@@ -0,0 +1,45 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV2DesignClient
+ {
+ ///
+ /// Edit Design Reference
+ ///
+ ///
+ /// 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 EditDesignReferenceApiV2PptDesignReferenceEditPostAsync(
+
+ global::Presenton.EditDesignReferenceRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Design Reference
+ ///
+ ///
+ /// 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> EditDesignReferenceApiV2PptDesignReferenceEditPostAsResponseAsync(
+
+ global::Presenton.EditDesignReferenceRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Design Reference
+ ///
+ ///
+ ///
+ /// 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 EditDesignReferenceApiV2PptDesignReferenceEditPostAsync(
+ string html,
+ string prompt,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost.g.cs
new file mode 100644
index 0000000..61b741e
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost.g.cs
@@ -0,0 +1,47 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV2DesignClient
+ {
+ ///
+ /// Edit Design Reference Section
+ ///
+ ///
+ /// 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 EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync(
+
+ global::Presenton.EditDesignReferenceSectionRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Design Reference Section
+ ///
+ ///
+ /// 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> EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsResponseAsync(
+
+ global::Presenton.EditDesignReferenceSectionRequest request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Edit Design Reference Section
+ ///
+ ///
+ ///
+ ///
+ /// 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 EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync(
+ string html,
+ string section,
+ string prompt,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetAllDesignsForUiApiV2PptDesignAllUiGet.g.cs
similarity index 89%
rename from src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetAllDesignsForUiApiV2PptDesignAllUiGet.g.cs
index caad063..5817179 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetAllDesignsForUiApiV2PptDesignAllUiGet.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface IV2DesignClient
{
///
- /// Get All Design Systems For Ui
+ /// Get All Designs For Ui
///
///
/// Default Value: 1
@@ -16,13 +16,13 @@ public partial interface IV2DesignClient
/// 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 GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync(
+ global::System.Threading.Tasks.Task GetAllDesignsForUiApiV2PptDesignAllUiGetAsync(
int? page = default,
int? pageSize = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Get All Design Systems For Ui
+ /// Get All Designs For Ui
///
///
/// Default Value: 1
@@ -33,7 +33,7 @@ public partial interface IV2DesignClient
/// 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> GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsResponseAsync(
+ global::System.Threading.Tasks.Task> GetAllDesignsForUiApiV2PptDesignAllUiGetAsResponseAsync(
int? page = default,
int? pageSize = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDefaultDesignsForUiApiV2PptDesignDefaultGet.g.cs
similarity index 88%
rename from src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDefaultDesignsForUiApiV2PptDesignDefaultGet.g.cs
index ec4245c..1a70998 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDefaultDesignsForUiApiV2PptDesignDefaultGet.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface IV2DesignClient
{
///
- /// Get Default Design Systems For Ui
+ /// Get Default Designs For Ui
///
///
/// Default Value: 1
@@ -16,13 +16,13 @@ public partial interface IV2DesignClient
/// 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 GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync(
+ global::System.Threading.Tasks.Task GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync(
int? page = default,
int? pageSize = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Get Default Design Systems For Ui
+ /// Get Default Designs For Ui
///
///
/// Default Value: 1
@@ -33,7 +33,7 @@ public partial interface IV2DesignClient
/// 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> GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsResponseAsync(
+ global::System.Threading.Tasks.Task> GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsResponseAsync(
int? page = default,
int? pageSize = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet.g.cs
similarity index 70%
rename from src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet.g.cs
index 70f30f4..1967742 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet.g.cs
@@ -5,25 +5,25 @@ namespace Presenton
public partial interface IV2DesignClient
{
///
- /// Get Design System Export Info
+ /// Get Design Export Info
///
- ///
+ ///
/// 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 GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync(
- global::System.Guid designSystemId,
+ global::System.Threading.Tasks.Task GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync(
+ global::System.Guid designId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Get Design System Export Info
+ /// Get Design Export Info
///
- ///
+ ///
/// 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> GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsResponseAsync(
- global::System.Guid designSystemId,
+ global::System.Threading.Tasks.Task> GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsResponseAsync(
+ global::System.Guid designId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignV2ForUiApiV2PptDesignDesignIdUiGet.g.cs
similarity index 68%
rename from src/libs/Presenton/Generated/Presenton.IHtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignV2ForUiApiV2PptDesignDesignIdUiGet.g.cs
index 1c3273a..02c10d4 100644
--- a/src/libs/Presenton/Generated/Presenton.IHtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.GetDesignV2ForUiApiV2PptDesignDesignIdUiGet.g.cs
@@ -2,28 +2,28 @@
namespace Presenton
{
- public partial interface IHtmlEditClient
+ public partial interface IV2DesignClient
{
///
- /// Stream Html Edit
+ /// Get Design V2 For Ui
///
- ///
+ ///
/// 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 StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync(
- global::System.Guid sessionId,
+ global::System.Threading.Tasks.Task GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync(
+ global::System.Guid designId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Stream Html Edit
+ /// Get Design V2 For Ui
///
- ///
+ ///
/// 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> StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsResponseAsync(
- global::System.Guid sessionId,
+ global::System.Threading.Tasks.Task> GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsResponseAsync(
+ global::System.Guid designId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.ISlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.InitCreateDesignApiV2PptDesignCreateInitPost.g.cs
similarity index 65%
rename from src/libs/Presenton/Generated/Presenton.ISlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.InitCreateDesignApiV2PptDesignCreateInitPost.g.cs
index b09e86b..8c35c24 100644
--- a/src/libs/Presenton/Generated/Presenton.ISlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.InitCreateDesignApiV2PptDesignCreateInitPost.g.cs
@@ -2,47 +2,45 @@
namespace Presenton
{
- public partial interface ISlideToReactClient
+ public partial interface IV2DesignClient
{
///
- /// Convert Slide To React
+ /// Init Create Design
///
///
/// 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 ConvertSlideToReactApiV1PptSlideToReactPostAsync(
+ global::System.Threading.Tasks.Task InitCreateDesignApiV2PptDesignCreateInitPostAsync(
- global::Presenton.SlideToReactRequest request,
+ global::Presenton.CreateDesignInitRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Convert Slide To React
+ /// Init Create Design
///
///
/// 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> ConvertSlideToReactApiV1PptSlideToReactPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> InitCreateDesignApiV2PptDesignCreateInitPostAsResponseAsync(
- global::Presenton.SlideToReactRequest request,
+ global::Presenton.CreateDesignInitRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Convert Slide To React
+ /// Init Create Design
///
- ///
- ///
- ///
+ ///
+ ///
///
/// 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 ConvertSlideToReactApiV1PptSlideToReactPostAsync(
- string image,
- string markdownContent,
- object designSystem,
- global::System.Collections.Generic.IList? fonts = default,
+ global::System.Threading.Tasks.Task InitCreateDesignApiV2PptDesignCreateInitPostAsync(
+ string pptxUrl,
+ global::System.Collections.Generic.IList slideImageUrls,
+ object? fonts = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.SaveDesignApiV2PptDesignSavePost.g.cs
similarity index 63%
rename from src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2DesignClient.SaveDesignApiV2PptDesignSavePost.g.cs
index 878873b..13b3c4e 100644
--- a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2DesignClient.SaveDesignApiV2PptDesignSavePost.g.cs
@@ -2,49 +2,47 @@
namespace Presenton
{
- public partial interface ITemplateManagementClient
+ public partial interface IV2DesignClient
{
///
- /// Create Template
+ /// Save Design
///
///
/// 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 CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync(
+ global::System.Threading.Tasks.Task SaveDesignApiV2PptDesignSavePostAsync(
- global::Presenton.TemplateCreateRequest request,
+ global::Presenton.SaveDesignRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Template
+ /// Save Design
///
///
/// 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> CreateTemplateApiV1PptTemplateManagementTemplatesPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> SaveDesignApiV2PptDesignSavePostAsResponseAsync(
- global::Presenton.TemplateCreateRequest request,
+ global::Presenton.SaveDesignRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Create Template
+ /// Save Design
///
- ///
+ ///
+ ///
///
- ///
- ///
- ///
+ ///
/// 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 CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync(
- global::System.Guid id,
- string name,
- string? description = default,
- object? designSystem = default,
- object? designSysetm = default,
+ global::System.Threading.Tasks.Task SaveDesignApiV2PptDesignSavePostAsync(
+ global::System.Collections.Generic.IList references,
+ global::System.Guid? designId = default,
+ global::System.Guid? designInfoId = default,
+ string? name = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2FontsClient.CheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs
similarity index 64%
rename from src/libs/Presenton/Generated/Presenton.IV2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2FontsClient.CheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs
index f39925a..6b1021f 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2FontsClient.CheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs
@@ -5,77 +5,84 @@ namespace Presenton
public partial interface IV2FontsClient
{
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
/// 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 CheckFontsInPptxApiV2PptFontsCheckPostAsync(
+ global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync(
- global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost request,
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
/// 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> CheckFontsInPptxApiV2PptFontsCheckPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsResponseAsync(
- global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost request,
+ global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
- ///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
- ///
+ ///
+ ///
/// 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 CheckFontsInPptxApiV2PptFontsCheckPostAsync(
+ global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync(
byte[] pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
+ /// The stream to send as the multipart 'pptx_file' file part.
///
+ ///
/// 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 CheckFontsInPptxApiV2PptFontsCheckPostAsync(
+ global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Check Fonts In Pptx
+ /// Check Fonts In Pptx Handler
+ /// Extract fonts from a PPTX file and check their availability in Google Fonts.
+ /// Returns:
+ /// FontCheckResponse with available and unavailable fonts
///
///
- /// PPTX file to analyze fonts from
- ///
- ///
- /// PPTX file to analyze fonts from
+ /// The stream to send as the multipart 'pptx_file' file part.
///
+ ///
/// 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> CheckFontsInPptxApiV2PptFontsCheckPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsResponseAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs
index 3e9018f..429f4ba 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs
@@ -55,7 +55,7 @@ public partial interface IV2PresentationClient
/// How to generate the content for each slide
///
///
- /// Smart design to use for the presentation
+ /// Design V2 id to use for the smart presentation
///
///
/// Whether to emphasize the markdown
diff --git a/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs
index fa55d07..7b2eb54 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs
@@ -55,7 +55,7 @@ public partial interface IV2PresentationClient
/// How to generate the content for each slide
///
///
- /// Smart design to use for the presentation
+ /// Design V2 id to use for the smart presentation
///
///
/// Whether to emphasize the markdown
diff --git a/src/libs/Presenton/Generated/Presenton.IPptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs
similarity index 57%
rename from src/libs/Presenton/Generated/Presenton.IPptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV2PresentationClient.ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs
index 1160ac2..16193eb 100644
--- a/src/libs/Presenton/Generated/Presenton.IPptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs
@@ -2,92 +2,106 @@
namespace Presenton
{
- public partial interface IPptxFontsClient
+ public partial interface IV2PresentationClient
{
///
- /// Process Pptx Fonts
- /// Analyze a PPTX file and return only the fonts used in the document.
- /// Uses the exact same font extraction and analysis utilities as the /pptx-slides endpoint.
+ /// Import Presentation From Pptx 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 ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync(
+ global::System.Threading.Tasks.Task ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync(
- global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost request,
+ global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Process Pptx Fonts
- /// Analyze a PPTX file and return only the fonts used in the document.
- /// Uses the exact same font extraction and analysis utilities as the /pptx-slides endpoint.
+ /// Import Presentation From Pptx 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> ProcessPptxFontsApiV1PptPptxFontsProcessPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsResponseAsync(
- global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost request,
+ global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Process Pptx Fonts
- /// Analyze a PPTX file and return only the fonts used in the document.
- /// Uses the exact same font extraction and analysis utilities as the /pptx-slides endpoint.
+ /// Import Presentation From Pptx File
///
///
- /// PPTX file to analyze fonts from
+ /// PPTX file to import
///
///
- /// PPTX file to analyze fonts from
+ /// PPTX file to import
+ ///
+ ///
+ /// Font files to upload
+ ///
+ ///
+ /// Original font names to replace (same order as font_files)
///
/// 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 ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync(
+ global::System.Threading.Tasks.Task ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync(
byte[] pptxFile,
string pptxFilename,
+ global::System.Collections.Generic.IList? fontFiles = default,
+ global::System.Collections.Generic.IList? originalFontNames = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Process Pptx Fonts
- /// Analyze a PPTX file and return only the fonts used in the document.
- /// Uses the exact same font extraction and analysis utilities as the /pptx-slides endpoint.
+ /// Import Presentation From Pptx File
///
///
- /// PPTX file to analyze fonts from
+ /// PPTX file to import
///
///
- /// PPTX file to analyze fonts from
+ /// PPTX file to import
+ ///
+ ///
+ /// Font files to upload
+ ///
+ ///
+ /// Original font names to replace (same order as font_files)
///
/// 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 ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync(
+ global::System.Threading.Tasks.Task ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
+ global::System.Collections.Generic.IList? fontFiles = default,
+ global::System.Collections.Generic.IList? originalFontNames = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Process Pptx Fonts
- /// Analyze a PPTX file and return only the fonts used in the document.
- /// Uses the exact same font extraction and analysis utilities as the /pptx-slides endpoint.
+ /// Import Presentation From Pptx File
///
///
- /// PPTX file to analyze fonts from
+ /// PPTX file to import
///
///
- /// PPTX file to analyze fonts from
+ /// PPTX file to import
+ ///
+ ///
+ /// Font files to upload
+ ///
+ ///
+ /// Original font names to replace (same order as font_files)
///
/// 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> ProcessPptxFontsApiV1PptPptxFontsProcessPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsResponseAsync(
global::System.IO.Stream pptxFile,
string pptxFilename,
+ global::System.Collections.Generic.IList? fontFiles = default,
+ global::System.Collections.Generic.IList? originalFontNames = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs
deleted file mode 100644
index 5eaa459..0000000
--- a/src/libs/Presenton/Generated/Presenton.IV2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-#nullable enable
-
-namespace Presenton
-{
- public partial interface IV2PresentationClient
- {
- ///
- /// Stream Presentation Html Large
- ///
- ///
- /// 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 StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync(
- global::System.Guid id,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- ///
- /// Stream Presentation Html Large
- ///
- ///
- /// 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> StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsResponseAsync(
- global::System.Guid id,
- global::Presenton.AutoSDKRequestOptions? requestOptions = default,
- global::System.Threading.CancellationToken cancellationToken = default);
- }
-}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs
index d4d7584..4d01c45 100644
--- a/src/libs/Presenton/Generated/Presenton.IV2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs
@@ -36,14 +36,12 @@ public partial interface IV2SlideClient
///
///
///
- ///
/// 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 GenerateNewSlideApiV2PptSlideGeneratePostAsync(
global::System.Guid presentationId,
string prompt,
- global::Presenton.QualitativeChart? qualitativechart = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3FilesClient.UploadFilesV1ApiV3FilesUploadPost.g.cs
similarity index 86%
rename from src/libs/Presenton/Generated/Presenton.IV3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3FilesClient.UploadFilesV1ApiV3FilesUploadPost.g.cs
index 3bc3393..c0b8c0a 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3FilesClient.UploadFilesV1ApiV3FilesUploadPost.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface IV3FilesClient
{
///
- /// Upload Files V3
+ /// Upload Files V1
/// Upload files to be used later.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -14,13 +14,13 @@ public partial interface IV3FilesClient
/// 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> UploadFilesV3ApiV3FilesUploadPostAsync(
+ global::System.Threading.Tasks.Task> UploadFilesV1ApiV3FilesUploadPostAsync(
- global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost request,
+ global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Upload Files V3
+ /// Upload Files V1
/// Upload files to be used later.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -29,13 +29,13 @@ public partial interface IV3FilesClient
/// 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>> UploadFilesV3ApiV3FilesUploadPostAsResponseAsync(
+ global::System.Threading.Tasks.Task>> UploadFilesV1ApiV3FilesUploadPostAsResponseAsync(
- global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost request,
+ global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Upload Files V3
+ /// Upload Files V1
/// Upload files to be used later.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -44,7 +44,7 @@ public partial interface IV3FilesClient
/// 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> UploadFilesV3ApiV3FilesUploadPostAsync(
+ global::System.Threading.Tasks.Task> UploadFilesV1ApiV3FilesUploadPostAsync(
global::System.Collections.Generic.IList? files = default,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.DeleteUploadedImageByIdV1ApiV3ImagesIdDelete.g.cs
similarity index 90%
rename from src/libs/Presenton/Generated/Presenton.IV3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3ImagesClient.DeleteUploadedImageByIdV1ApiV3ImagesIdDelete.g.cs
index b542373..af1b03a 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.DeleteUploadedImageByIdV1ApiV3ImagesIdDelete.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface IV3ImagesClient
{
///
- /// Delete Uploaded Image By Id V3
+ /// Delete Uploaded Image By Id V1
/// Delete an uploaded image by id.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -14,12 +14,12 @@ public partial interface IV3ImagesClient
/// 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 DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync(
+ global::System.Threading.Tasks.Task DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync(
string id,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Delete Uploaded Image By Id V3
+ /// Delete Uploaded Image By Id V1
/// Delete an uploaded image by id.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -28,7 +28,7 @@ public partial interface IV3ImagesClient
/// 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 DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync(
+ global::System.Threading.Tasks.Task DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsResponseAsync(
string id,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.GetUploadedImagesV1ApiV3ImagesUploadedGet.g.cs
similarity index 84%
rename from src/libs/Presenton/Generated/Presenton.IV3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3ImagesClient.GetUploadedImagesV1ApiV3ImagesUploadedGet.g.cs
index 149961d..590e7f2 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.GetUploadedImagesV1ApiV3ImagesUploadedGet.g.cs
@@ -5,27 +5,27 @@ namespace Presenton
public partial interface IV3ImagesClient
{
///
- /// Get Uploaded Images V3
- /// Get all uploaded images of the user.
+ /// Get Uploaded Images V1
+ /// Get all uploaded images.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
///
/// 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 GetUploadedImagesV3ApiV3ImagesUploadedGetAsync(
+ global::System.Threading.Tasks.Task GetUploadedImagesV1ApiV3ImagesUploadedGetAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Get Uploaded Images V3
- /// Get all uploaded images of the user.
+ /// Get Uploaded Images V1
+ /// Get all uploaded images.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
///
/// 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> GetUploadedImagesV3ApiV3ImagesUploadedGetAsResponseAsync(
+ global::System.Threading.Tasks.Task> GetUploadedImagesV1ApiV3ImagesUploadedGetAsResponseAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.UploadImageV1ApiV3ImagesUploadPost.g.cs
similarity index 89%
rename from src/libs/Presenton/Generated/Presenton.IV3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3ImagesClient.UploadImageV1ApiV3ImagesUploadPost.g.cs
index 1b7e3b3..0b70d86 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3ImagesClient.UploadImageV1ApiV3ImagesUploadPost.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface IV3ImagesClient
{
///
- /// Upload Image V3
+ /// Upload Image V1
/// Upload an image.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -14,13 +14,13 @@ public partial interface IV3ImagesClient
/// 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 UploadImageV3ApiV3ImagesUploadPostAsync(
+ global::System.Threading.Tasks.Task UploadImageV1ApiV3ImagesUploadPostAsync(
- global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost request,
+ global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Upload Image V3
+ /// Upload Image V1
/// Upload an image.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -29,13 +29,13 @@ public partial interface IV3ImagesClient
/// 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> UploadImageV3ApiV3ImagesUploadPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> UploadImageV1ApiV3ImagesUploadPostAsResponseAsync(
- global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost request,
+ global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Upload Image V3
+ /// Upload Image V1
/// Upload an image.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -45,14 +45,14 @@ public partial interface IV3ImagesClient
/// 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 UploadImageV3ApiV3ImagesUploadPostAsync(
+ global::System.Threading.Tasks.Task UploadImageV1ApiV3ImagesUploadPostAsync(
byte[] file,
string filename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Upload Image V3
+ /// Upload Image V1
/// Upload an image.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -64,13 +64,13 @@ public partial interface IV3ImagesClient
/// 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 UploadImageV3ApiV3ImagesUploadPostAsync(
+ global::System.Threading.Tasks.Task UploadImageV1ApiV3ImagesUploadPostAsync(
global::System.IO.Stream file,
string filename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Upload Image V3
+ /// Upload Image V1
/// Upload an image.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -82,7 +82,7 @@ public partial interface IV3ImagesClient
/// 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> UploadImageV3ApiV3ImagesUploadPostAsResponseAsync(
+ global::System.Threading.Tasks.Task> UploadImageV1ApiV3ImagesUploadPostAsResponseAsync(
global::System.IO.Stream file,
string filename,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IV3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs
index 896743c..53e11f5 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs
@@ -76,7 +76,7 @@ public partial interface IV3PlaygroundClient
/// Standard template to use for the presentation. Available templates: neo-general, neo-modern, neo-standard, neo-swift, general, modern, standard, swift and your custom templates
///
///
- /// Smart design to use for the presentation
+ /// Design V2 id to use for the smart presentation
///
///
/// Whether to include a table of contents
diff --git a/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost.g.cs
similarity index 81%
rename from src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost.g.cs
index 6caeb36..ac6b893 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost.g.cs
@@ -5,40 +5,31 @@ namespace Presenton
public partial interface IV3PresentationClient
{
///
- /// Generate Outlines Sync V3
- /// Generate outlines for a presentation.
- /// Create an API Key from your account to access this endpoint.
- /// Authorization: Bearer sk-presenton-xxxxxxxx
+ /// Generate Outlines Sync V1
///
///
/// 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> GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync(
+ global::System.Threading.Tasks.Task> GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync(
global::Presenton.GenerateOutlinesRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Generate Outlines Sync V3
- /// Generate outlines for a presentation.
- /// Create an API Key from your account to access this endpoint.
- /// Authorization: Bearer sk-presenton-xxxxxxxx
+ /// Generate Outlines Sync V1
///
///
/// 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>> GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsResponseAsync(
+ global::System.Threading.Tasks.Task>> GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsResponseAsync(
global::Presenton.GenerateOutlinesRequest request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Generate Outlines Sync V3
- /// Generate outlines for a presentation.
- /// Create an API Key from your account to access this endpoint.
- /// Authorization: Bearer sk-presenton-xxxxxxxx
+ /// Generate Outlines Sync V1
///
///
/// The content for generating the presentation
@@ -49,6 +40,9 @@ public partial interface IV3PresentationClient
///
/// The number of slides to generate
///
+ ///
+ /// Optional design ID to use for outline generation
+ ///
///
/// The language for the presentation
///
@@ -77,10 +71,11 @@ public partial interface IV3PresentationClient
/// 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> GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync(
+ global::System.Threading.Tasks.Task> GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync(
string? content = default,
global::System.Collections.Generic.IList? files = default,
int? nSlides = default,
+ global::System.Guid? design = default,
string? language = default,
global::Presenton.Tone? tone = default,
global::Presenton.Verbosity? verbosity = default,
diff --git a/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs
index 6341804..27513b8 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs
@@ -88,7 +88,7 @@ public partial interface IV3PresentationClient
/// Standard template to use for the presentation. Available templates: neo-general, neo-modern, neo-standard, neo-swift, general, modern, standard, swift and your custom templates
///
///
- /// Smart design to use for the presentation
+ /// Design V2 id to use for the smart presentation
///
///
/// Whether to include a table of contents
diff --git a/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs
index b8d9b85..4165f38 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs
@@ -85,7 +85,7 @@ public partial interface IV3PresentationClient
/// Standard template to use for the presentation. Available templates: neo-general, neo-modern, neo-standard, neo-swift, general, modern, standard, swift and your custom templates
///
///
- /// Smart design to use for the presentation
+ /// Design V2 id to use for the smart presentation
///
///
/// Whether to include a table of contents
diff --git a/src/libs/Presenton/Generated/Presenton.IV3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs
index 938a3f4..5d78df9 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs
@@ -13,7 +13,7 @@ public partial interface IV3SchemaClient
///
global::System.Threading.Tasks.Task GenerateContentForSchemaApiV3SchemaContentGeneratePostAsync(
- global::Presenton.GenerateContentForSchemaRequest request,
+ global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
@@ -25,7 +25,7 @@ public partial interface IV3SchemaClient
///
global::System.Threading.Tasks.Task> GenerateContentForSchemaApiV3SchemaContentGeneratePostAsResponseAsync(
- global::Presenton.GenerateContentForSchemaRequest request,
+ global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
@@ -37,8 +37,8 @@ public partial interface IV3SchemaClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task GenerateContentForSchemaApiV3SchemaContentGeneratePostAsync(
- global::Presenton.GenerateContentForSchemaRequestMode mode,
- object? schema = default,
+ object schema,
+ global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode mode,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV3SmartDesignClient.GetSmartDesignByIdApiV3SmartDesignDesignIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV3SmartDesignClient.GetSmartDesignByIdApiV3SmartDesignDesignIdGet.g.cs
new file mode 100644
index 0000000..ee622df
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV3SmartDesignClient.GetSmartDesignByIdApiV3SmartDesignDesignIdGet.g.cs
@@ -0,0 +1,36 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV3SmartDesignClient
+ {
+ ///
+ /// Get Smart Design By Id
+ /// Get a smart design by id.
+ /// Create an API Key from your account to access this endpoint.
+ /// Authorization: Bearer sk-presenton-xxxxxxxx
+ ///
+ ///
+ /// 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 GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync(
+ global::System.Guid designId,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Smart Design By Id
+ /// Get a smart design by id.
+ /// Create an API Key from your account to access this endpoint.
+ /// Authorization: Bearer sk-presenton-xxxxxxxx
+ ///
+ ///
+ /// 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> GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsResponseAsync(
+ global::System.Guid designId,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.CreateThemeApiV3ThemeCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.CreateThemeApiV3ThemeCreatePost.g.cs
new file mode 100644
index 0000000..e5e4377
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.CreateThemeApiV3ThemeCreatePost.g.cs
@@ -0,0 +1,54 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV3ThemeClient
+ {
+ ///
+ /// Create a user theme
+ /// Creates a custom presentation theme for the authenticated user. The request body must include a name, description, and complete theme data with colors and fonts. Optionally pass `company_name` and a `logo` image asset id; the logo must already exist.
+ ///
+ ///
+ /// 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 CreateThemeApiV3ThemeCreatePostAsync(
+
+ global::Presenton.BodyCreateThemeApiV3ThemeCreatePost request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a user theme
+ /// Creates a custom presentation theme for the authenticated user. The request body must include a name, description, and complete theme data with colors and fonts. Optionally pass `company_name` and a `logo` image asset id; the logo must already exist.
+ ///
+ ///
+ /// 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> CreateThemeApiV3ThemeCreatePostAsResponseAsync(
+
+ global::Presenton.BodyCreateThemeApiV3ThemeCreatePost request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a user theme
+ /// Creates a custom presentation theme for the authenticated user. The request body must include a name, description, and complete theme data with colors and fonts. Optionally pass `company_name` and a `logo` image asset id; the logo must already exist.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateThemeApiV3ThemeCreatePostAsync(
+ string name,
+ string description,
+ global::Presenton.PresentionThemeDataInput data,
+ string? companyName = default,
+ global::System.Guid? logo = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.DeleteThemeApiV3ThemeDeleteThemeIdDelete.g.cs
similarity index 61%
rename from src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3ThemeClient.DeleteThemeApiV3ThemeDeleteThemeIdDelete.g.cs
index 1e9f54c..0dd7a58 100644
--- a/src/libs/Presenton/Generated/Presenton.IHtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.DeleteThemeApiV3ThemeDeleteThemeIdDelete.g.cs
@@ -2,28 +2,30 @@
namespace Presenton
{
- public partial interface IHtmlCreateClient
+ public partial interface IV3ThemeClient
{
///
- /// Stream Html Create
+ /// Delete a user theme
+ /// Deletes a custom theme owned by the authenticated user. Default built-in themes cannot be deleted through this endpoint.
///
- ///
+ ///
/// 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 StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsync(
- global::System.Guid sessionId,
+ global::System.Threading.Tasks.Task DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync(
+ global::System.Guid themeId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Stream Html Create
+ /// Delete a user theme
+ /// Deletes a custom theme owned by the authenticated user. Default built-in themes cannot be deleted through this endpoint.
///
- ///
+ ///
/// 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> StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetAsResponseAsync(
- global::System.Guid sessionId,
+ global::System.Threading.Tasks.Task DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsResponseAsync(
+ global::System.Guid themeId,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs
index b8aec0c..77c2658 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs
@@ -5,7 +5,8 @@ namespace Presenton
public partial interface IV3ThemeClient
{
///
- /// Generate Theme V3
+ /// Generate theme colors
+ /// Generates a complete theme color palette from optional seed colors. Provide any combination of `primary`, `background`, `accent_1`, `accent_2`, `text_1`, and `text_2`; missing colors are derived automatically. The response contains presentation-ready colors for backgrounds, text, cards, strokes, and graph series.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -17,7 +18,8 @@ public partial interface IV3ThemeClient
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Generate Theme V3
+ /// Generate theme colors
+ /// Generates a complete theme color palette from optional seed colors. Provide any combination of `primary`, `background`, `accent_1`, `accent_2`, `text_1`, and `text_2`; missing colors are derived automatically. The response contains presentation-ready colors for backgrounds, text, cards, strokes, and graph series.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -29,7 +31,8 @@ public partial interface IV3ThemeClient
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Generate Theme V3
+ /// Generate theme colors
+ /// Generates a complete theme color palette from optional seed colors. Provide any combination of `primary`, `background`, `accent_1`, `accent_2`, `text_1`, and `text_2`; missing colors are derived automatically. The response contains presentation-ready colors for backgrounds, text, cards, strokes, and graph series.
///
///
///
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GetDefaultThemesApiV3ThemeDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GetDefaultThemesApiV3ThemeDefaultGet.g.cs
new file mode 100644
index 0000000..5ef7a9a
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GetDefaultThemesApiV3ThemeDefaultGet.g.cs
@@ -0,0 +1,28 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV3ThemeClient
+ {
+ ///
+ /// List default themes
+ /// Returns all built-in presentation themes available to every user. Use the returned string id as the `theme` value when generating a standard presentation.
+ ///
+ /// 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> GetDefaultThemesApiV3ThemeDefaultGetAsync(
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List default themes
+ /// Returns all built-in presentation themes available to every user. Use the returned string id as the `theme` value when generating a standard presentation.
+ ///
+ /// 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>> GetDefaultThemesApiV3ThemeDefaultGetAsResponseAsync(
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GetThemesApiV3ThemeAllGet.g.cs
similarity index 61%
rename from src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GetThemesApiV3ThemeAllGet.g.cs
index d07dadc..09edf9f 100644
--- a/src/libs/Presenton/Generated/Presenton.ITemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.GetThemesApiV3ThemeAllGet.g.cs
@@ -2,28 +2,26 @@
namespace Presenton
{
- public partial interface ITemplateManagementClient
+ public partial interface IV3ThemeClient
{
///
- /// Delete Template
+ /// List user themes
+ /// Returns the authenticated user's custom presentation themes ordered by newest first. Built-in default themes are not included in this list.
///
- ///
/// 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 DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync(
- global::System.Guid templateId,
+ global::System.Threading.Tasks.Task> GetThemesApiV3ThemeAllGetAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Delete Template
+ /// List user themes
+ /// Returns the authenticated user's custom presentation themes ordered by newest first. Built-in default themes are not included in this list.
///
- ///
/// 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 DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsResponseAsync(
- global::System.Guid templateId,
+ global::System.Threading.Tasks.Task>> GetThemesApiV3ThemeAllGetAsResponseAsync(
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.UpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.UpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs
new file mode 100644
index 0000000..d123fe4
--- /dev/null
+++ b/src/libs/Presenton/Generated/Presenton.IV3ThemeClient.UpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Presenton
+{
+ public partial interface IV3ThemeClient
+ {
+ ///
+ /// Update a user theme
+ /// Updates a custom theme owned by the authenticated user. Fields are optional; only supplied values are changed. Passing a new `logo` replaces the previous logo asset, and passing `data` replaces the stored colors and fonts.
+ ///
+ ///
+ ///
+ /// 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 UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync(
+ global::System.Guid themeId,
+
+ global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update a user theme
+ /// Updates a custom theme owned by the authenticated user. Fields are optional; only supplied values are changed. Passing a new `logo` replaces the previous logo asset, and passing `data` replaces the stored colors and fonts.
+ ///
+ ///
+ ///
+ /// 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> UpdateThemeApiV3ThemeUpdateThemeIdPatchAsResponseAsync(
+ global::System.Guid themeId,
+
+ global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch request,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update a user theme
+ /// Updates a custom theme owned by the authenticated user. Fields are optional; only supplied values are changed. Passing a new `logo` replaces the previous logo asset, and passing `data` replaces the stored colors and fonts.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync(
+ global::System.Guid themeId,
+ string? name = default,
+ string? description = default,
+ string? companyName = default,
+ global::System.Guid? logo = default,
+ global::Presenton.PresentionThemeDataInput? data = default,
+ global::Presenton.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs b/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.SubscribeToWebhookV1ApiV3WebhookSubscribePost.g.cs
similarity index 90%
rename from src/libs/Presenton/Generated/Presenton.IV3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs
rename to src/libs/Presenton/Generated/Presenton.IV3WebhookClient.SubscribeToWebhookV1ApiV3WebhookSubscribePost.g.cs
index b29225c..af3555b 100644
--- a/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs
+++ b/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.SubscribeToWebhookV1ApiV3WebhookSubscribePost.g.cs
@@ -5,7 +5,7 @@ namespace Presenton
public partial interface IV3WebhookClient
{
///
- /// Subscribe To Webhook V3
+ /// Subscribe To Webhook V1
/// Subscribe to a webhook.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -14,13 +14,13 @@ public partial interface IV3WebhookClient
/// 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 SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync(
+ global::System.Threading.Tasks.Task SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync(
global::Presenton.SubscribeToWebhookRequestV1 request,
global::Presenton.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Subscribe To Webhook V3
+ /// Subscribe To Webhook V1
/// Subscribe to a webhook.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx
@@ -29,13 +29,13 @@ public partial interface IV3WebhookClient
/// 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> SubscribeToWebhookV3ApiV3WebhookSubscribePostAsResponseAsync(
+ global::System.Threading.Tasks.Task