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> SubscribeToWebhookV1ApiV3WebhookSubscribePostAsResponseAsync( 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 @@ -52,7 +52,7 @@ 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( string url, global::Presenton.WebhookEvent @event, string? secret = default, diff --git a/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs b/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.IV3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs rename to src/libs/Presenton/Generated/Presenton.IV3WebhookClient.UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs index c7b2f2d..68cc92e 100644 --- a/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.IV3WebhookClient.UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs @@ -5,7 +5,7 @@ namespace Presenton public partial interface IV3WebhookClient { /// - /// Unsubscribe To Webhook V3
+ /// Unsubscribe To Webhook V1
/// Unsubscribe from 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 UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync( + global::System.Threading.Tasks.Task UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync( - global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete request, + global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Unsubscribe To Webhook V3
+ /// Unsubscribe To Webhook V1
/// Unsubscribe from 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 UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( + global::System.Threading.Tasks.Task UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsResponseAsync( - global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete request, + global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Unsubscribe To Webhook V3
+ /// Unsubscribe To Webhook V1
/// Unsubscribe from a webhook.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx @@ -46,7 +46,7 @@ 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 UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync( + global::System.Threading.Tasks.Task UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync( string id, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAs.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAs.g.cs new file mode 100644 index 0000000..7ceb991 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAs.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class BodyExportPresentationApiV1DebugExportPresentationPostExportAsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAsExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAsExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAsNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAsNullable.g.cs new file mode 100644 index 0000000..e651bdb --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAsNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class BodyExportPresentationApiV1DebugExportPresentationPostExportAsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAsExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAsExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.g.cs new file mode 100644 index 0000000..e6067a9 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeNullable.g.cs new file mode 100644 index 0000000..c6380e5 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatEditMessageRequestPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatEditMessageRequestPresentationType.g.cs new file mode 100644 index 0000000..9e105b2 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatEditMessageRequestPresentationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class ChatEditMessageRequestPresentationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.ChatEditMessageRequestPresentationType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.ChatEditMessageRequestPresentationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.ChatEditMessageRequestPresentationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.ChatEditMessageRequestPresentationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.ChatEditMessageRequestPresentationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Presenton.ChatEditMessageRequestPresentationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatEditMessageRequestPresentationTypeNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatEditMessageRequestPresentationTypeNullable.g.cs new file mode 100644 index 0000000..be8fbff --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatEditMessageRequestPresentationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class ChatEditMessageRequestPresentationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.ChatEditMessageRequestPresentationType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.ChatEditMessageRequestPresentationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.ChatEditMessageRequestPresentationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.ChatEditMessageRequestPresentationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.ChatEditMessageRequestPresentationType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Presenton.ChatEditMessageRequestPresentationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.GenerateContentForSchemaRequestMode.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatHistoryResponsePresentationType.g.cs similarity index 67% rename from src/libs/Presenton/Generated/Presenton.JsonConverters.GenerateContentForSchemaRequestMode.g.cs rename to src/libs/Presenton/Generated/Presenton.JsonConverters.ChatHistoryResponsePresentationType.g.cs index 4a584cc..6e259d5 100644 --- a/src/libs/Presenton/Generated/Presenton.JsonConverters.GenerateContentForSchemaRequestMode.g.cs +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatHistoryResponsePresentationType.g.cs @@ -3,10 +3,10 @@ namespace Presenton.JsonConverters { /// - public sealed class GenerateContentForSchemaRequestModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatHistoryResponsePresentationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Presenton.GenerateContentForSchemaRequestMode Read( + public override global::Presenton.ChatHistoryResponsePresentationType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GenerateContentForSchemaRequestModeJsonConverter : global::S var stringValue = reader.GetString(); if (stringValue != null) { - return global::Presenton.GenerateContentForSchemaRequestModeExtensions.ToEnum(stringValue) ?? default; + return global::Presenton.ChatHistoryResponsePresentationTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GenerateContentForSchemaRequestModeJsonConverter : global::S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Presenton.GenerateContentForSchemaRequestMode)numValue; + return (global::Presenton.ChatHistoryResponsePresentationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Presenton.GenerateContentForSchemaRequestMode); + return default(global::Presenton.ChatHistoryResponsePresentationType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GenerateContentForSchemaRequestModeJsonConverter : global::S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Presenton.GenerateContentForSchemaRequestMode value, + global::Presenton.ChatHistoryResponsePresentationType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Presenton.GenerateContentForSchemaRequestModeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Presenton.ChatHistoryResponsePresentationTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.GenerateContentForSchemaRequestModeNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatHistoryResponsePresentationTypeNullable.g.cs similarity index 69% rename from src/libs/Presenton/Generated/Presenton.JsonConverters.GenerateContentForSchemaRequestModeNullable.g.cs rename to src/libs/Presenton/Generated/Presenton.JsonConverters.ChatHistoryResponsePresentationTypeNullable.g.cs index f1eb344..33270d7 100644 --- a/src/libs/Presenton/Generated/Presenton.JsonConverters.GenerateContentForSchemaRequestModeNullable.g.cs +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatHistoryResponsePresentationTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Presenton.JsonConverters { /// - public sealed class GenerateContentForSchemaRequestModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatHistoryResponsePresentationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Presenton.GenerateContentForSchemaRequestMode? Read( + public override global::Presenton.ChatHistoryResponsePresentationType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class GenerateContentForSchemaRequestModeNullableJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::Presenton.GenerateContentForSchemaRequestModeExtensions.ToEnum(stringValue); + return global::Presenton.ChatHistoryResponsePresentationTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GenerateContentForSchemaRequestModeNullableJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Presenton.GenerateContentForSchemaRequestMode)numValue; + return (global::Presenton.ChatHistoryResponsePresentationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Presenton.GenerateContentForSchemaRequestMode?); + return default(global::Presenton.ChatHistoryResponsePresentationType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GenerateContentForSchemaRequestModeNullableJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Presenton.GenerateContentForSchemaRequestMode? value, + global::Presenton.ChatHistoryResponsePresentationType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Presenton.GenerateContentForSchemaRequestModeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Presenton.ChatHistoryResponsePresentationTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.QualitativeChart.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatMessageRequestPresentationType.g.cs similarity index 64% rename from src/libs/Presenton/Generated/Presenton.JsonConverters.QualitativeChart.g.cs rename to src/libs/Presenton/Generated/Presenton.JsonConverters.ChatMessageRequestPresentationType.g.cs index 4548bbf..7394fa3 100644 --- a/src/libs/Presenton/Generated/Presenton.JsonConverters.QualitativeChart.g.cs +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatMessageRequestPresentationType.g.cs @@ -3,10 +3,10 @@ namespace Presenton.JsonConverters { /// - public sealed class QualitativeChartJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatMessageRequestPresentationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Presenton.QualitativeChart Read( + public override global::Presenton.ChatMessageRequestPresentationType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class QualitativeChartJsonConverter : global::System.Text.Json.Ser var stringValue = reader.GetString(); if (stringValue != null) { - return global::Presenton.QualitativeChartExtensions.ToEnum(stringValue) ?? default; + return global::Presenton.ChatMessageRequestPresentationTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class QualitativeChartJsonConverter : global::System.Text.Json.Ser case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Presenton.QualitativeChart)numValue; + return (global::Presenton.ChatMessageRequestPresentationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Presenton.QualitativeChart); + return default(global::Presenton.ChatMessageRequestPresentationType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class QualitativeChartJsonConverter : global::System.Text.Json.Ser /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Presenton.QualitativeChart value, + global::Presenton.ChatMessageRequestPresentationType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Presenton.QualitativeChartExtensions.ToValueString(value)); + writer.WriteStringValue(global::Presenton.ChatMessageRequestPresentationTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.QualitativeChartNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatMessageRequestPresentationTypeNullable.g.cs similarity index 66% rename from src/libs/Presenton/Generated/Presenton.JsonConverters.QualitativeChartNullable.g.cs rename to src/libs/Presenton/Generated/Presenton.JsonConverters.ChatMessageRequestPresentationTypeNullable.g.cs index fc75873..c2251e7 100644 --- a/src/libs/Presenton/Generated/Presenton.JsonConverters.QualitativeChartNullable.g.cs +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ChatMessageRequestPresentationTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Presenton.JsonConverters { /// - public sealed class QualitativeChartNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatMessageRequestPresentationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Presenton.QualitativeChart? Read( + public override global::Presenton.ChatMessageRequestPresentationType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class QualitativeChartNullableJsonConverter : global::System.Text. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Presenton.QualitativeChartExtensions.ToEnum(stringValue); + return global::Presenton.ChatMessageRequestPresentationTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class QualitativeChartNullableJsonConverter : global::System.Text. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Presenton.QualitativeChart)numValue; + return (global::Presenton.ChatMessageRequestPresentationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Presenton.QualitativeChart?); + return default(global::Presenton.ChatMessageRequestPresentationType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class QualitativeChartNullableJsonConverter : global::System.Text. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Presenton.QualitativeChart? value, + global::Presenton.ChatMessageRequestPresentationType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Presenton.QualitativeChartExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Presenton.ChatMessageRequestPresentationTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationType.g.cs new file mode 100644 index 0000000..c1efae3 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class GetChatHistoryApiV3ChatHistoryGetPresentationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationTypeNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationTypeNullable.g.cs new file mode 100644 index 0000000..e1a9ec1 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class GetChatHistoryApiV3ChatHistoryGetPresentationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationType.g.cs new file mode 100644 index 0000000..bc7aee5 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class ListChatConversationsApiV3ChatConversationsGetPresentationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationTypeNullable.g.cs b/src/libs/Presenton/Generated/Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationTypeNullable.g.cs new file mode 100644 index 0000000..f1ecb0c --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Presenton.JsonConverters +{ + /// + public sealed class ListChatConversationsApiV3ChatConversationsGetPresentationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.JsonSerializerContext.g.cs b/src/libs/Presenton/Generated/Presenton.JsonSerializerContext.g.cs index 21ba2c2..34df943 100644 --- a/src/libs/Presenton/Generated/Presenton.JsonSerializerContext.g.cs +++ b/src/libs/Presenton/Generated/Presenton.JsonSerializerContext.g.cs @@ -21,6 +21,10 @@ namespace Presenton typeof(global::Presenton.JsonConverters.BodyCreatePresentationApiV1PptPresentationCreatePostImageTypeNullableJsonConverter), + typeof(global::Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAsJsonConverter), + + typeof(global::Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAsNullableJsonConverter), + typeof(global::Presenton.JsonConverters.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPostExportAsJsonConverter), typeof(global::Presenton.JsonConverters.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPostExportAsNullableJsonConverter), @@ -33,6 +37,10 @@ namespace Presenton typeof(global::Presenton.JsonConverters.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostExportAsNullableJsonConverter), + typeof(global::Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeJsonConverter), + + typeof(global::Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeNullableJsonConverter), + typeof(global::Presenton.JsonConverters.BodyPresentationExportApiV1OnPresentationExportPostExportAsJsonConverter), typeof(global::Presenton.JsonConverters.BodyPresentationExportApiV1OnPresentationExportPostExportAsNullableJsonConverter), @@ -41,6 +49,18 @@ namespace Presenton typeof(global::Presenton.JsonConverters.BodyPresentationExportApiV2OnPresentationExportPostExportAsNullableJsonConverter), + typeof(global::Presenton.JsonConverters.ChatEditMessageRequestPresentationTypeJsonConverter), + + typeof(global::Presenton.JsonConverters.ChatEditMessageRequestPresentationTypeNullableJsonConverter), + + typeof(global::Presenton.JsonConverters.ChatHistoryResponsePresentationTypeJsonConverter), + + typeof(global::Presenton.JsonConverters.ChatHistoryResponsePresentationTypeNullableJsonConverter), + + typeof(global::Presenton.JsonConverters.ChatMessageRequestPresentationTypeJsonConverter), + + typeof(global::Presenton.JsonConverters.ChatMessageRequestPresentationTypeNullableJsonConverter), + typeof(global::Presenton.JsonConverters.ContentGenerationModeJsonConverter), typeof(global::Presenton.JsonConverters.ContentGenerationModeNullableJsonConverter), @@ -69,10 +89,6 @@ namespace Presenton typeof(global::Presenton.JsonConverters.EditSlideRequestExportAs2NullableJsonConverter), - typeof(global::Presenton.JsonConverters.GenerateContentForSchemaRequestModeJsonConverter), - - typeof(global::Presenton.JsonConverters.GenerateContentForSchemaRequestModeNullableJsonConverter), - typeof(global::Presenton.JsonConverters.GenerateHTMLPresentationRequestV2ImageTypeJsonConverter), typeof(global::Presenton.JsonConverters.GenerateHTMLPresentationRequestV2ImageTypeNullableJsonConverter), @@ -101,10 +117,6 @@ namespace Presenton typeof(global::Presenton.JsonConverters.GeneratePresentationRequestV3ExportAsNullableJsonConverter), - typeof(global::Presenton.JsonConverters.QualitativeChartJsonConverter), - - typeof(global::Presenton.JsonConverters.QualitativeChartNullableJsonConverter), - typeof(global::Presenton.JsonConverters.ToneJsonConverter), typeof(global::Presenton.JsonConverters.ToneNullableJsonConverter), @@ -125,11 +137,15 @@ namespace Presenton typeof(global::Presenton.JsonConverters.GenerateImagesApiV2PptImagesGenerateGetImageTypeNullableJsonConverter), - typeof(global::Presenton.JsonConverters.AnyOfJsonConverter>), + typeof(global::Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationTypeJsonConverter), - typeof(global::Presenton.JsonConverters.AnyOfJsonConverter, object, object>), + typeof(global::Presenton.JsonConverters.ListChatConversationsApiV3ChatConversationsGetPresentationTypeNullableJsonConverter), - typeof(global::Presenton.JsonConverters.AnyOfJsonConverter, object, object>), + typeof(global::Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationTypeJsonConverter), + + typeof(global::Presenton.JsonConverters.GetChatHistoryApiV3ChatHistoryGetPresentationTypeNullableJsonConverter), + + typeof(global::Presenton.JsonConverters.AnyOfJsonConverter>), typeof(global::Presenton.JsonConverters.AnyOfJsonConverter, object, object>), @@ -161,9 +177,9 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyAddUserApiV1DebugAddUserPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyAuthJwtLoginApiV1AuthJwtLoginPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCheckCreditBalanceApiV1DebugCheckCreditBalancePost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCreatePortalSessionApiV1BillingPortalSessionPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCreatePresentationApiV1PptPresentationCreatePost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -172,23 +188,26 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCreatePresentationApiV1PptPresentationCreatePostImageType), TypeInfoPropertyName = "BodyCreatePresentationApiV1PptPresentationCreatePostImageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCreateThemeApiV1PptThemesCreatePost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentionThemeDataInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyDecomposeFilesApiV1PptFilesDecomposePost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyDeleteUserApiV1DebugDeleteUserDelete))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyEditSlideHtmlApiV1PptSlideEditHtmlPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyEndSubscriptionApiV1DebugEndSubscriptionPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs), TypeInfoPropertyName = "BodyExportPresentationApiV1DebugExportPresentationPostExportAs2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPostExportAs), TypeInfoPropertyName = "BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPostExportAs2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPostExportAs), TypeInfoPropertyName = "BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPostExportAs2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostExportAs), TypeInfoPropertyName = "BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostExportAs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode), TypeInfoPropertyName = "BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyGetJwtTokenApiV1DebugGetJwtTokenPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyInitFixSlideApiV2PptFixSlideInitPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyInitFixSlideApiV2PptFixSlideInitPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyModifySubscriptionApiV1BillingSubscriptionModifyPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyPatchMeApiV1AuthProfileUpdatePatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyPreparePresentationApiV1PptPresentationPreparePost))] @@ -199,9 +218,6 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyPresentationExportApiV1OnPresentationExportPostExportAs), TypeInfoPropertyName = "BodyPresentationExportApiV1OnPresentationExportPostExportAs2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyPresentationExportApiV2OnPresentationExportPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyPresentationExportApiV2OnPresentationExportPostExportAs), TypeInfoPropertyName = "BodyPresentationExportApiV2OnPresentationExportPostExportAs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyRaiseExceptionApiV1DebugRaiseExceptionPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyResetForgotPasswordApiV1AuthForgotPasswordPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyResetResetPasswordApiV1AuthResetPasswordPost))] @@ -213,23 +229,35 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodySendWelcomeEmailApiV1DebugSendWelcomeEmailPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyTestJobApiV1DebugTestJobPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDelete))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUpdatePresentationApiV1PptPresentationUpdatePatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFilesForUiApiV1PptFilesUploadUiPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFilesV1ApiV1PptFilesUploadPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFontApiV1PptFontsUploadPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadImageForUiApiV1PptImagesUploadUiPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadImageV1ApiV1PptImagesUploadPost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyVerifyRequestTokenApiV1AuthRequestVerifyTokenPost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.BodyVerifyVerifyApiV1AuthVerifyPost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChangePasswordRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatConversationListItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatEditMessageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatEditMessageRequestPresentationType), TypeInfoPropertyName = "ChatEditMessageRequestPresentationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatHistoryMessageItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatHistoryResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatHistoryResponsePresentationType), TypeInfoPropertyName = "ChatHistoryResponsePresentationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatMessageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatMessageRequestPresentationType), TypeInfoPropertyName = "ChatMessageRequestPresentationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ChatMessageResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CheckCreditBalanceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CloneSlideLayoutRequest))] @@ -237,7 +265,11 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ContentGenerationMode), TypeInfoPropertyName = "ContentGenerationMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateCheckoutSessionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateCheckoutSessionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateDesignSystemRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateDesignAsyncRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateDesignInitRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateDesignReferenceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateDesignReferenceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreateDesignRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreatePortalSessionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreatePresentationFromJsonRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -255,12 +287,16 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.CreditsRatesAndAutoTopupInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TopupInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DecomposedFileInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DefaultPresentationThemeModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DesignSystemExportInfo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DefaultPresentationThemeResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentionThemeDataOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DesignExportInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DesignSystemSlideInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.Device), TypeInfoPropertyName = "Device2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.DownloadFormat), TypeInfoPropertyName = "DownloadFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.EditDesignReferenceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.EditDesignReferenceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.EditDesignReferenceSectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.EditDesignReferenceSectionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.EditOutlineRequestV2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.EditPresentationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -301,12 +337,6 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ErrorModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf>), TypeInfoPropertyName = "AnyOfStringDictionaryStringString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ExtractDesignSystemRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ExtractDesignSystemResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.FontAnalysisResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.FontCheckResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.FontInfo))] @@ -314,8 +344,6 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.FontListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.FontsUploadAndSlidesPreviewResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateContentForSchemaRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateContentForSchemaRequestMode), TypeInfoPropertyName = "GenerateContentForSchemaRequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateContentForSchemaResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateHTMLPresentationRequestV2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateHTMLPresentationRequestV2ImageType), TypeInfoPropertyName = "GenerateHTMLPresentationRequestV2ImageType2")] @@ -333,58 +361,47 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GeneratePresentationRequestV3ImageType), TypeInfoPropertyName = "GeneratePresentationRequestV3ImageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GeneratePresentationRequestV3ExportAs), TypeInfoPropertyName = "GeneratePresentationRequestV3ExportAs2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateSlideRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.QualitativeChart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateSlideResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateThemeRequestV3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetJwtTokenResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetLayoutsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.LayoutData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf, object, object>), TypeInfoPropertyName = "AnyOfIListStringObjectObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetMeResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetMultipleTemplateLayoutsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetPresentationStatusResponseV2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetPresentationSummaryResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetTemplateLayoutsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TemplateLayoutData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TemplateData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf, object, object>), TypeInfoPropertyName = "AnyOfIListStringObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HTMLDesignV2Detail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HTMLSlideV2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HTTPValidationError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ValidationError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HealthResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HtmlEditInitResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HtmlEditResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HtmlToReactRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.HtmlToReactResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ImageAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ModifySubscriptionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.OAuth2AuthorizeResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.OnboardingQuestion))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PaginatedResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PaginatedVariationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PdfSlideData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PdfSlidesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PptxFontsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PptxSlidesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideLayoutModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationPathAndEditPath))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationThemeModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationThemeResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationWithSlidesV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentationWithSlidesV2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentionThemeColors))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentionThemeFonts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PresentionThemeTextFont))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PriceItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.PurchaseCreditsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ReactivateSubscriptionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveLayoutsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveLayoutsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveDesignReferenceData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveDesignRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveDesignResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveSlideLayoutRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveTemplateLayoutData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveTemplateRequest))] @@ -392,16 +409,10 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SaveTemplateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SegmentVariationsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideExample))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideToHtmlRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideToHtmlResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideToReactRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SlideToReactResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SubscribeToWebhookRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.WebhookEvent), TypeInfoPropertyName = "WebhookEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.SubscribeToWebhookResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.Subscription))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TemplateCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TemplateCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TemplateDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.TemplateExample))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -416,22 +427,27 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.VariationsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateImageApiV1PptImagesGenerateGetImageType), TypeInfoPropertyName = "GenerateImageApiV1PptImagesGenerateGetImageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GenerateImagesApiV2PptImagesGenerateGetImageType), TypeInfoPropertyName = "GenerateImagesApiV2PptImagesGenerateGetImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType), TypeInfoPropertyName = "ListChatConversationsApiV3ChatConversationsGetPresentationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType), TypeInfoPropertyName = "GetChatHistoryApiV3ChatHistoryGetPresentationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf), TypeInfoPropertyName = "AnyOfPresentationPathAndEditPathSlideModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf), TypeInfoPropertyName = "AnyOfPresentationWithSlidesV1PresentationWithSlidesV22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -439,32 +455,29 @@ namespace Presenton [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf, object, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Presenton.AnyOf, object, object>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { diff --git a/src/libs/Presenton/Generated/Presenton.JsonSerializerContextTypes.g.cs b/src/libs/Presenton/Generated/Presenton.JsonSerializerContextTypes.g.cs index fba0916..b5bd570 100644 --- a/src/libs/Presenton/Generated/Presenton.JsonSerializerContextTypes.g.cs +++ b/src/libs/Presenton/Generated/Presenton.JsonSerializerContextTypes.g.cs @@ -96,7 +96,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost? Type17 { get; set; } + public global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost? Type17 { get; set; } /// /// /// @@ -104,7 +104,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost? Type19 { get; set; } + public global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost? Type19 { get; set; } /// /// /// @@ -140,19 +140,19 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Presenton.BodyDecomposeFilesApiV1PptFilesDecomposePost? Type28 { get; set; } + public global::Presenton.PresentionThemeDataInput? Type28 { get; set; } /// /// /// - public global::Presenton.BodyDeleteUserApiV1DebugDeleteUserDelete? Type29 { get; set; } + public global::Presenton.BodyCreateThemeApiV3ThemeCreatePost? Type29 { get; set; } /// /// /// - public global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost? Type30 { get; set; } + public global::Presenton.BodyDecomposeFilesApiV1PptFilesDecomposePost? Type30 { get; set; } /// /// /// - public global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost? Type31 { get; set; } + public global::Presenton.BodyDeleteUserApiV1DebugDeleteUserDelete? Type31 { get; set; } /// /// /// @@ -164,99 +164,99 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Presenton.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost? Type34 { get; set; } + public global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost? Type34 { get; set; } /// /// /// - public global::Presenton.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPostExportAs? Type35 { get; set; } + public global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs? Type35 { get; set; } /// /// /// - public global::Presenton.BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost? Type36 { get; set; } + public global::Presenton.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost? Type36 { get; set; } /// /// /// - public global::Presenton.BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPostExportAs? Type37 { get; set; } + public global::Presenton.BodyExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPostExportAs? Type37 { get; set; } /// /// /// - public global::Presenton.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost? Type38 { get; set; } + public global::Presenton.BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost? Type38 { get; set; } /// /// /// - public global::Presenton.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostExportAs? Type39 { get; set; } + public global::Presenton.BodyExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPostExportAs? Type39 { get; set; } /// /// /// - public global::Presenton.BodyGetJwtTokenApiV1DebugGetJwtTokenPost? Type40 { get; set; } + public global::Presenton.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost? Type40 { get; set; } /// /// /// - public global::Presenton.BodyInitFixSlideApiV2PptFixSlideInitPost? Type41 { get; set; } + public global::Presenton.BodyExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostExportAs? Type41 { get; set; } /// /// /// - public global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost? Type42 { get; set; } + public global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode? Type43 { get; set; } /// /// /// - public global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost? Type44 { get; set; } + public global::Presenton.BodyGetJwtTokenApiV1DebugGetJwtTokenPost? Type44 { get; set; } /// /// /// - public global::Presenton.BodyModifySubscriptionApiV1BillingSubscriptionModifyPost? Type45 { get; set; } + public global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost? Type45 { get; set; } /// /// /// - public global::Presenton.BodyPatchMeApiV1AuthProfileUpdatePatch? Type46 { get; set; } + public global::System.Collections.Generic.IList? Type46 { get; set; } /// /// /// - public global::Presenton.BodyPreparePresentationApiV1PptPresentationPreparePost? Type47 { get; set; } + public global::Presenton.BodyInitFixSlideApiV2PptFixSlideInitPost? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::Presenton.BodyModifySubscriptionApiV1BillingSubscriptionModifyPost? Type48 { get; set; } /// /// /// - public global::Presenton.SlideOutlineModel? Type49 { get; set; } + public global::Presenton.BodyPatchMeApiV1AuthProfileUpdatePatch? Type49 { get; set; } /// /// /// - public global::Presenton.PresentationLayoutModel? Type50 { get; set; } + public global::Presenton.BodyPreparePresentationApiV1PptPresentationPreparePost? Type50 { get; set; } /// /// /// - public global::Presenton.BodyPresentationExportApiV1OnPresentationExportPost? Type51 { get; set; } + public global::System.Collections.Generic.IList? Type51 { get; set; } /// /// /// - public global::Presenton.BodyPresentationExportApiV1OnPresentationExportPostExportAs? Type52 { get; set; } + public global::Presenton.SlideOutlineModel? Type52 { get; set; } /// /// /// - public global::Presenton.BodyPresentationExportApiV2OnPresentationExportPost? Type53 { get; set; } + public global::Presenton.PresentationLayoutModel? Type53 { get; set; } /// /// /// - public global::Presenton.BodyPresentationExportApiV2OnPresentationExportPostExportAs? Type54 { get; set; } + public global::Presenton.BodyPresentationExportApiV1OnPresentationExportPost? Type54 { get; set; } /// /// /// - public global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost? Type55 { get; set; } + public global::Presenton.BodyPresentationExportApiV1OnPresentationExportPostExportAs? Type55 { get; set; } /// /// /// - public global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost? Type56 { get; set; } + public global::Presenton.BodyPresentationExportApiV2OnPresentationExportPost? Type56 { get; set; } /// /// /// - public global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost? Type57 { get; set; } + public global::Presenton.BodyPresentationExportApiV2OnPresentationExportPostExportAs? Type57 { get; set; } /// /// /// @@ -304,7 +304,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete? Type69 { get; set; } + public global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete? Type69 { get; set; } /// /// /// @@ -324,843 +324,839 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Presenton.BodyUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost? Type74 { get; set; } + public global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch? Type74 { get; set; } /// /// /// - public global::Presenton.BodyUploadFilesForUiApiV1PptFilesUploadUiPost? Type75 { get; set; } + public global::Presenton.BodyUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost? Type75 { get; set; } /// /// /// - public global::Presenton.BodyUploadFilesV1ApiV1PptFilesUploadPost? Type76 { get; set; } + public global::Presenton.BodyUploadFilesForUiApiV1PptFilesUploadUiPost? Type76 { get; set; } /// /// /// - public global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost? Type77 { get; set; } + public global::Presenton.BodyUploadFilesV1ApiV1PptFilesUploadPost? Type77 { get; set; } /// /// /// - public global::Presenton.BodyUploadFontApiV1PptFontsUploadPost? Type78 { get; set; } + public global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost? Type78 { get; set; } /// /// /// - public global::Presenton.BodyUploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost? Type79 { get; set; } + public global::Presenton.BodyUploadFontApiV1PptFontsUploadPost? Type79 { get; set; } /// /// /// - public global::Presenton.BodyUploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost? Type80 { get; set; } + public global::Presenton.BodyUploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost? Type80 { get; set; } /// /// /// - public global::Presenton.BodyUploadImageForUiApiV1PptImagesUploadUiPost? Type81 { get; set; } + public global::Presenton.BodyUploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost? Type81 { get; set; } /// /// /// - public global::Presenton.BodyUploadImageV1ApiV1PptImagesUploadPost? Type82 { get; set; } + public global::Presenton.BodyUploadImageForUiApiV1PptImagesUploadUiPost? Type82 { get; set; } /// /// /// - public global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost? Type83 { get; set; } + public global::Presenton.BodyUploadImageV1ApiV1PptImagesUploadPost? Type83 { get; set; } /// /// /// - public global::Presenton.BodyVerifyRequestTokenApiV1AuthRequestVerifyTokenPost? Type84 { get; set; } + public global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost? Type84 { get; set; } /// /// /// - public global::Presenton.BodyVerifyVerifyApiV1AuthVerifyPost? Type85 { get; set; } + public global::Presenton.BodyVerifyRequestTokenApiV1AuthRequestVerifyTokenPost? Type85 { get; set; } /// /// /// - public global::Presenton.CheckCreditBalanceResponse? Type86 { get; set; } + public global::Presenton.BodyVerifyVerifyApiV1AuthVerifyPost? Type86 { get; set; } /// /// /// - public double? Type87 { get; set; } + public global::Presenton.ChangePasswordRequest? Type87 { get; set; } /// /// /// - public global::Presenton.CloneSlideLayoutRequest? Type88 { get; set; } + public global::Presenton.ChatConversationListItem? Type88 { get; set; } /// /// /// - public global::Presenton.CloneTemplateRequest? Type89 { get; set; } + public global::Presenton.ChatEditMessageRequest? Type89 { get; set; } /// /// /// - public global::Presenton.ContentGenerationMode? Type90 { get; set; } + public global::Presenton.ChatEditMessageRequestPresentationType? Type90 { get; set; } /// /// /// - public global::Presenton.CreateCheckoutSessionRequest? Type91 { get; set; } + public global::Presenton.ChatHistoryMessageItem? Type91 { get; set; } /// /// /// - public global::Presenton.CreateCheckoutSessionResponse? Type92 { get; set; } + public global::Presenton.ChatHistoryResponse? Type92 { get; set; } /// /// /// - public global::Presenton.CreateDesignSystemRequest? Type93 { get; set; } + public global::Presenton.ChatHistoryResponsePresentationType? Type93 { get; set; } /// /// /// - public global::Presenton.CreatePortalSessionResponse? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public global::Presenton.CreatePresentationFromJsonRequestV1? Type95 { get; set; } + public global::Presenton.ChatMessageRequest? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::Presenton.ChatMessageRequestPresentationType? Type96 { get; set; } /// /// /// - public global::Presenton.CreateSlideFromJsonRequestV1? Type97 { get; set; } + public global::Presenton.ChatMessageResponse? Type97 { get; set; } /// /// /// - public global::Presenton.CreatePresentationFromJsonRequestV1ExportAs? Type98 { get; set; } + public global::Presenton.CheckCreditBalanceResponse? Type98 { get; set; } /// /// /// - public global::Presenton.CreatePresentationFromJsonRequestV3? Type99 { get; set; } + public double? Type99 { get; set; } /// /// /// - public global::Presenton.CreatePresentationFromJsonRequestV3ExportAs? Type100 { get; set; } + public global::Presenton.CloneSlideLayoutRequest? Type100 { get; set; } /// /// /// - public global::Presenton.CreateSlideLayoutRequest? Type101 { get; set; } + public global::Presenton.CloneTemplateRequest? Type101 { get; set; } /// /// /// - public global::Presenton.CreateSlideLayoutResponse? Type102 { get; set; } + public global::Presenton.ContentGenerationMode? Type102 { get; set; } /// /// /// - public global::Presenton.CreateTemplateInitRequest? Type103 { get; set; } + public global::Presenton.CreateCheckoutSessionRequest? Type103 { get; set; } /// /// /// - public global::Presenton.CreditAccount? Type104 { get; set; } + public global::Presenton.CreateCheckoutSessionResponse? Type104 { get; set; } /// /// /// - public global::Presenton.CreditAccountWithBalance? Type105 { get; set; } + public global::Presenton.CreateDesignAsyncRequest? Type105 { get; set; } /// /// /// - public global::Presenton.CreditAddTransactionRead? Type106 { get; set; } + public global::Presenton.CreateDesignInitRequest? Type106 { get; set; } /// /// /// - public global::Presenton.CreditsRate? Type107 { get; set; } + public global::Presenton.CreateDesignReferenceRequest? Type107 { get; set; } /// /// /// - public global::Presenton.CreditsRatesAndAutoTopupInfoResponse? Type108 { get; set; } + public global::Presenton.CreateDesignReferenceResponse? Type108 { get; set; } /// /// /// - public global::Presenton.TopupInfo? Type109 { get; set; } + public global::Presenton.CreateDesignRequest? Type109 { get; set; } /// /// /// - public global::Presenton.DecomposedFileInfo? Type110 { get; set; } + public global::Presenton.CreatePortalSessionResponse? Type110 { get; set; } /// /// /// - public global::Presenton.DefaultPresentationThemeModel? Type111 { get; set; } + public global::Presenton.CreatePresentationFromJsonRequestV1? Type111 { get; set; } /// /// /// - public global::Presenton.DesignSystemExportInfo? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::Presenton.CreateSlideFromJsonRequestV1? Type113 { get; set; } /// /// /// - public global::Presenton.DesignSystemSlideInput? Type114 { get; set; } + public global::Presenton.CreatePresentationFromJsonRequestV1ExportAs? Type114 { get; set; } /// /// /// - public global::Presenton.Device? Type115 { get; set; } + public global::Presenton.CreatePresentationFromJsonRequestV3? Type115 { get; set; } /// /// /// - public global::Presenton.DownloadFormat? Type116 { get; set; } + public global::Presenton.CreatePresentationFromJsonRequestV3ExportAs? Type116 { get; set; } /// /// /// - public global::Presenton.EditOutlineRequestV2? Type117 { get; set; } + public global::Presenton.CreateSlideLayoutRequest? Type117 { get; set; } /// /// /// - public global::Presenton.EditPresentationRequest? Type118 { get; set; } + public global::Presenton.CreateSlideLayoutResponse? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::Presenton.CreateTemplateInitRequest? Type119 { get; set; } /// /// /// - public global::Presenton.SlideContentUpdate? Type120 { get; set; } + public global::Presenton.CreditAccount? Type120 { get; set; } /// /// /// - public global::Presenton.EditPresentationRequestExportAs? Type121 { get; set; } + public global::Presenton.CreditAccountWithBalance? Type121 { get; set; } /// /// /// - public global::Presenton.EditSectionHTMLRequestV2? Type122 { get; set; } + public global::Presenton.CreditAddTransactionRead? Type122 { get; set; } /// /// /// - public global::Presenton.EditSectionHTMLResponseV2? Type123 { get; set; } + public global::Presenton.CreditsRate? Type123 { get; set; } /// /// /// - public global::Presenton.EditSlideHTMLRequestV2? Type124 { get; set; } + public global::Presenton.CreditsRatesAndAutoTopupInfoResponse? Type124 { get; set; } /// /// /// - public global::Presenton.EditSlideHTMLResponseV2? Type125 { get; set; } + public global::Presenton.TopupInfo? Type125 { get; set; } /// /// /// - public global::Presenton.EditSlideLayoutRequest? Type126 { get; set; } + public global::Presenton.DecomposedFileInfo? Type126 { get; set; } /// /// /// - public global::Presenton.EditSlideLayoutResponse? Type127 { get; set; } + public global::Presenton.DefaultPresentationThemeResponse? Type127 { get; set; } /// /// /// - public global::Presenton.EditSlideLayoutSectionRequest? Type128 { get; set; } + public global::Presenton.PresentionThemeDataOutput? Type128 { get; set; } /// /// /// - public global::Presenton.EditSlideLayoutSectionResponse? Type129 { get; set; } + public global::Presenton.DesignExportInfo? Type129 { get; set; } /// /// /// - public global::Presenton.EditSlideRequest? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Presenton.EditSlideRequestExportAs2? Type131 { get; set; } + public global::Presenton.Device? Type131 { get; set; } /// /// /// - public global::Presenton.EnterpriseCreditsAddResponse? Type132 { get; set; } + public global::Presenton.DownloadFormat? Type132 { get; set; } /// /// /// - public global::Presenton.UserRead? Type133 { get; set; } + public global::Presenton.EditDesignReferenceRequest? Type133 { get; set; } /// /// /// - public global::Presenton.EnterpriseCreditsAddsResponse? Type134 { get; set; } + public global::Presenton.EditDesignReferenceResponse? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::Presenton.EditDesignReferenceSectionRequest? Type135 { get; set; } /// /// /// - public global::Presenton.EnterpriseCreditsInfoResponse? Type136 { get; set; } + public global::Presenton.EditDesignReferenceSectionResponse? Type136 { get; set; } /// /// /// - public global::Presenton.EnterpriseLoginResponse? Type137 { get; set; } + public global::Presenton.EditOutlineRequestV2? Type137 { get; set; } /// /// /// - public global::Presenton.EnterprisePresentationRead? Type138 { get; set; } + public global::Presenton.EditPresentationRequest? Type138 { get; set; } /// /// /// - public global::Presenton.EnterprisePresentationsInfoResponse? Type139 { get; set; } + public global::System.Collections.Generic.IList? Type139 { get; set; } /// /// /// - public global::Presenton.EnterprisePresentationsResponse? Type140 { get; set; } + public global::Presenton.SlideContentUpdate? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Presenton.EditPresentationRequestExportAs? Type141 { get; set; } /// /// /// - public global::Presenton.EnterpriseRead? Type142 { get; set; } + public global::Presenton.EditSectionHTMLRequestV2? Type142 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserAccessTokenRead? Type143 { get; set; } + public global::Presenton.EditSectionHTMLResponseV2? Type143 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserAccessTokensResponse? Type144 { get; set; } + public global::Presenton.EditSlideHTMLRequestV2? Type144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type145 { get; set; } + public global::Presenton.EditSlideHTMLResponseV2? Type145 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserAddRequest? Type146 { get; set; } + public global::Presenton.EditSlideLayoutRequest? Type146 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserCreditsAddRequest? Type147 { get; set; } + public global::Presenton.EditSlideLayoutResponse? Type147 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserCreditsInfoResponse? Type148 { get; set; } + public global::Presenton.EditSlideLayoutSectionRequest? Type148 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserPasswordResetRequest? Type149 { get; set; } + public global::Presenton.EditSlideLayoutSectionResponse? Type149 { get; set; } /// /// /// - public global::Presenton.EnterpriseUserPresentationsInfoResponse? Type150 { get; set; } + public global::Presenton.EditSlideRequest? Type150 { get; set; } /// /// /// - public global::Presenton.EnterpriseUsersInfoResponse? Type151 { get; set; } + public global::Presenton.EditSlideRequestExportAs2? Type151 { get; set; } /// /// /// - public global::Presenton.EnterpriseUsersResponse? Type152 { get; set; } + public global::Presenton.EnterpriseCreditsAddResponse? Type152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type153 { get; set; } + public global::Presenton.UserRead? Type153 { get; set; } /// /// /// - public global::Presenton.ErrorModel? Type154 { get; set; } + public global::Presenton.EnterpriseCreditsAddsResponse? Type154 { get; set; } /// /// /// - public global::Presenton.AnyOf>? Type155 { get; set; } + public global::System.Collections.Generic.IList? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type156 { get; set; } + public global::Presenton.EnterpriseCreditsInfoResponse? Type156 { get; set; } /// /// /// - public global::Presenton.ErrorResponse? Type157 { get; set; } + public global::Presenton.EnterpriseLoginResponse? Type157 { get; set; } /// /// /// - public global::Presenton.ExtractDesignSystemRequest? Type158 { get; set; } + public global::Presenton.EnterprisePresentationRead? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::Presenton.EnterprisePresentationsInfoResponse? Type159 { get; set; } /// /// /// - public global::Presenton.ExtractDesignSystemResponse? Type160 { get; set; } + public global::Presenton.EnterprisePresentationsResponse? Type160 { get; set; } /// /// /// - public global::Presenton.FontAnalysisResult? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type162 { get; set; } + public global::Presenton.EnterpriseRead? Type162 { get; set; } /// /// /// - public global::Presenton.FontCheckResponse? Type163 { get; set; } + public global::Presenton.EnterpriseUserAccessTokenRead? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Presenton.EnterpriseUserAccessTokensResponse? Type164 { get; set; } /// /// /// - public global::Presenton.FontInfo? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::Presenton.FontDetail? Type166 { get; set; } + public global::Presenton.EnterpriseUserAddRequest? Type166 { get; set; } /// /// /// - public global::Presenton.FontListResponse? Type167 { get; set; } + public global::Presenton.EnterpriseUserCreditsAddRequest? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Presenton.EnterpriseUserCreditsInfoResponse? Type168 { get; set; } /// /// /// - public global::Presenton.FontsUploadAndSlidesPreviewResponse? Type169 { get; set; } + public global::Presenton.EnterpriseUserPasswordResetRequest? Type169 { get; set; } /// /// /// - public global::Presenton.GenerateContentForSchemaRequest? Type170 { get; set; } + public global::Presenton.EnterpriseUserPresentationsInfoResponse? Type170 { get; set; } /// /// /// - public global::Presenton.GenerateContentForSchemaRequestMode? Type171 { get; set; } + public global::Presenton.EnterpriseUsersInfoResponse? Type171 { get; set; } /// /// /// - public global::Presenton.GenerateContentForSchemaResponse? Type172 { get; set; } + public global::Presenton.EnterpriseUsersResponse? Type172 { get; set; } /// /// /// - public global::Presenton.GenerateHTMLPresentationRequestV2? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type173 { get; set; } /// /// /// - public global::Presenton.GenerateHTMLPresentationRequestV2ImageType? Type174 { get; set; } + public global::Presenton.ErrorModel? Type174 { get; set; } /// /// /// - public global::Presenton.GenerateHTMLPresentationResponseV2? Type175 { get; set; } + public global::Presenton.AnyOf>? Type175 { get; set; } /// /// /// - public global::Presenton.GenerateOutlinesRequest? Type176 { get; set; } + public global::System.Collections.Generic.Dictionary? Type176 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV1? Type177 { get; set; } + public global::Presenton.FontCheckResponse? Type177 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV1ImageType? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV1ExportAs? Type179 { get; set; } + public global::Presenton.FontInfo? Type179 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV2? Type180 { get; set; } + public global::Presenton.FontDetail? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Presenton.FontListResponse? Type181 { get; set; } /// /// /// - public global::Presenton.SlideContentLayout? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV2ImageType? Type183 { get; set; } + public global::Presenton.FontsUploadAndSlidesPreviewResponse? Type183 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV2ExportAs? Type184 { get; set; } + public global::Presenton.GenerateContentForSchemaResponse? Type184 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV3? Type185 { get; set; } + public global::Presenton.GenerateHTMLPresentationRequestV2? Type185 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV3ImageType? Type186 { get; set; } + public global::Presenton.GenerateHTMLPresentationRequestV2ImageType? Type186 { get; set; } /// /// /// - public global::Presenton.GeneratePresentationRequestV3ExportAs? Type187 { get; set; } + public global::Presenton.GenerateHTMLPresentationResponseV2? Type187 { get; set; } /// /// /// - public global::Presenton.GenerateSlideRequest? Type188 { get; set; } + public global::Presenton.GenerateOutlinesRequest? Type188 { get; set; } /// /// /// - public global::Presenton.QualitativeChart? Type189 { get; set; } + public global::Presenton.GeneratePresentationRequestV1? Type189 { get; set; } /// /// /// - public global::Presenton.GenerateSlideResponse? Type190 { get; set; } + public global::Presenton.GeneratePresentationRequestV1ImageType? Type190 { get; set; } /// /// /// - public global::Presenton.GenerateThemeRequestV3? Type191 { get; set; } + public global::Presenton.GeneratePresentationRequestV1ExportAs? Type191 { get; set; } /// /// /// - public global::Presenton.GetJwtTokenResponse? Type192 { get; set; } + public global::Presenton.GeneratePresentationRequestV2? Type192 { get; set; } /// /// /// - public global::Presenton.GetLayoutsResponse? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::Presenton.SlideContentLayout? Type194 { get; set; } /// /// /// - public global::Presenton.LayoutData? Type195 { get; set; } + public global::Presenton.GeneratePresentationRequestV2ImageType? Type195 { get; set; } /// /// /// - public global::Presenton.AnyOf, object, object>? Type196 { get; set; } + public global::Presenton.GeneratePresentationRequestV2ExportAs? Type196 { get; set; } /// /// /// - public global::Presenton.GetMeResponse? Type197 { get; set; } + public global::Presenton.GeneratePresentationRequestV3? Type197 { get; set; } /// /// /// - public global::Presenton.GetPresentationStatusResponseV2? Type198 { get; set; } + public global::Presenton.GeneratePresentationRequestV3ImageType? Type198 { get; set; } /// /// /// - public global::Presenton.GetPresentationSummaryResponse? Type199 { get; set; } + public global::Presenton.GeneratePresentationRequestV3ExportAs? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Presenton.GenerateSlideRequest? Type200 { get; set; } /// /// /// - public global::Presenton.PresentationSummary? Type201 { get; set; } + public global::Presenton.GenerateSlideResponse? Type201 { get; set; } /// /// /// - public global::Presenton.GetTemplateLayoutsResponse? Type202 { get; set; } + public global::Presenton.GenerateThemeRequestV3? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type203 { get; set; } + public global::Presenton.GetJwtTokenResponse? Type203 { get; set; } /// /// /// - public global::Presenton.TemplateLayoutData? Type204 { get; set; } + public global::Presenton.GetMeResponse? Type204 { get; set; } /// /// /// - public global::Presenton.TemplateData? Type205 { get; set; } + public global::Presenton.GetMultipleTemplateLayoutsRequest? Type205 { get; set; } /// /// /// - public global::Presenton.HTMLSlideV2? Type206 { get; set; } + public global::Presenton.GetPresentationStatusResponseV2? Type206 { get; set; } /// /// /// - public global::Presenton.HTTPValidationError? Type207 { get; set; } + public global::Presenton.GetTemplateLayoutsResponse? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::Presenton.ValidationError? Type209 { get; set; } + public global::Presenton.TemplateLayoutData? Type209 { get; set; } /// /// /// - public global::Presenton.HealthResponse? Type210 { get; set; } + public global::Presenton.TemplateData? Type210 { get; set; } /// /// /// - public global::Presenton.HtmlEditInitResponse? Type211 { get; set; } + public global::Presenton.AnyOf, object, object>? Type211 { get; set; } /// /// /// - public global::Presenton.HtmlEditResponse? Type212 { get; set; } + public global::Presenton.HTMLDesignV2Detail? Type212 { get; set; } /// /// /// - public global::Presenton.HtmlToReactRequest? Type213 { get; set; } + public global::Presenton.HTMLSlideV2? Type213 { get; set; } /// /// /// - public global::Presenton.HtmlToReactResponse? Type214 { get; set; } + public global::Presenton.HTTPValidationError? Type214 { get; set; } /// /// /// - public global::Presenton.ImageAsset? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::Presenton.ModifySubscriptionResponse? Type216 { get; set; } + public global::Presenton.ValidationError? Type216 { get; set; } /// /// /// - public global::Presenton.OAuth2AuthorizeResponse? Type217 { get; set; } + public global::Presenton.HealthResponse? Type217 { get; set; } /// /// /// - public global::Presenton.OnboardingQuestion? Type218 { get; set; } + public global::Presenton.ImageAsset? Type218 { get; set; } /// /// /// - public global::Presenton.PaginatedResponse? Type219 { get; set; } + public global::Presenton.ModifySubscriptionResponse? Type219 { get; set; } /// /// /// - public global::Presenton.PaginatedVariationsResponse? Type220 { get; set; } + public global::Presenton.OAuth2AuthorizeResponse? Type220 { get; set; } /// /// /// - public global::Presenton.PdfSlideData? Type221 { get; set; } + public global::Presenton.OnboardingQuestion? Type221 { get; set; } /// /// /// - public global::Presenton.PdfSlidesResponse? Type222 { get; set; } + public global::Presenton.PaginatedResponse? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Presenton.PaginatedVariationsResponse? Type223 { get; set; } /// /// /// - public global::Presenton.PptxFontsResponse? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type224 { get; set; } /// /// /// - public global::Presenton.PptxSlidesResponse? Type225 { get; set; } + public global::Presenton.SlideLayoutModel? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Presenton.PresentationModel? Type226 { get; set; } /// /// /// - public global::Presenton.SlideData? Type227 { get; set; } + public global::Presenton.PresentationPathAndEditPath? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Presenton.PresentationThemeResponse? Type228 { get; set; } /// /// /// - public global::Presenton.SlideLayoutModel? Type229 { get; set; } + public global::Presenton.PresentationWithSlidesV1? Type229 { get; set; } /// /// /// - public global::Presenton.PresentationModel? Type230 { get; set; } + public global::Presenton.PresentationWithSlidesV2? Type230 { get; set; } /// /// /// - public global::Presenton.PresentationPathAndEditPath? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::Presenton.PresentationThemeModel? Type232 { get; set; } + public global::Presenton.PresentionThemeColors? Type232 { get; set; } /// /// /// - public global::Presenton.PresentationWithSlidesV1? Type233 { get; set; } + public global::Presenton.PresentionThemeFonts? Type233 { get; set; } /// /// /// - public global::Presenton.PresentationWithSlidesV2? Type234 { get; set; } + public global::Presenton.PresentionThemeTextFont? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::Presenton.PriceItem? Type235 { get; set; } /// /// /// - public global::Presenton.PriceItem? Type236 { get; set; } + public global::Presenton.PurchaseCreditsRequest? Type236 { get; set; } /// /// /// - public global::Presenton.PurchaseCreditsRequest? Type237 { get; set; } + public global::Presenton.ReactivateSubscriptionResponse? Type237 { get; set; } /// /// /// - public global::Presenton.ReactivateSubscriptionResponse? Type238 { get; set; } + public global::Presenton.SaveDesignReferenceData? Type238 { get; set; } /// /// /// - public global::Presenton.SaveLayoutsRequest? Type239 { get; set; } + public global::Presenton.SaveDesignRequest? Type239 { get; set; } /// /// /// - public global::Presenton.SaveLayoutsResponse? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::Presenton.SaveSlideLayoutRequest? Type241 { get; set; } + public global::Presenton.SaveDesignResponse? Type241 { get; set; } /// /// /// - public global::Presenton.SaveTemplateLayoutData? Type242 { get; set; } + public global::Presenton.SaveSlideLayoutRequest? Type242 { get; set; } /// /// /// - public global::Presenton.SaveTemplateRequest? Type243 { get; set; } + public global::Presenton.SaveTemplateLayoutData? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Presenton.SaveTemplateRequest? Type244 { get; set; } /// /// /// - public global::Presenton.SaveTemplateResponse? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::Presenton.SegmentVariationsRequest? Type246 { get; set; } + public global::Presenton.SaveTemplateResponse? Type246 { get; set; } /// /// /// - public global::Presenton.SlideExample? Type247 { get; set; } + public global::Presenton.SegmentVariationsRequest? Type247 { get; set; } /// /// /// - public global::Presenton.SlideToHtmlRequest? Type248 { get; set; } + public global::Presenton.SlideExample? Type248 { get; set; } /// /// /// - public global::Presenton.SlideToHtmlResponse? Type249 { get; set; } + public global::Presenton.SubscribeToWebhookRequestV1? Type249 { get; set; } /// /// /// - public global::Presenton.SlideToReactRequest? Type250 { get; set; } + public global::Presenton.WebhookEvent? Type250 { get; set; } /// /// /// - public global::Presenton.SlideToReactResponse? Type251 { get; set; } + public global::Presenton.SubscribeToWebhookResponseV1? Type251 { get; set; } /// /// /// - public global::Presenton.SubscribeToWebhookRequestV1? Type252 { get; set; } + public global::Presenton.Subscription? Type252 { get; set; } /// /// /// - public global::Presenton.WebhookEvent? Type253 { get; set; } + public global::Presenton.TemplateDetail? Type253 { get; set; } /// /// /// - public global::Presenton.SubscribeToWebhookResponseV1? Type254 { get; set; } + public global::Presenton.TemplateExample? Type254 { get; set; } /// /// /// - public global::Presenton.Subscription? Type255 { get; set; } + public global::System.Collections.Generic.IList? Type255 { get; set; } /// /// /// - public global::Presenton.TemplateCreateRequest? Type256 { get; set; } + public global::Presenton.TemplateExampleV3? Type256 { get; set; } /// /// /// - public global::Presenton.TemplateCreateResponse? Type257 { get; set; } + public global::Presenton.ThemeData? Type257 { get; set; } /// /// /// - public global::Presenton.TemplateDetail? Type258 { get; set; } + public global::Presenton.UpdatePresentationRequestV2? Type258 { get; set; } /// /// /// - public global::Presenton.TemplateExample? Type259 { get; set; } + public global::Presenton.UpdateTemplateRequest? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::Presenton.UserCreate? Type260 { get; set; } /// /// /// - public global::Presenton.TemplateExampleV3? Type261 { get; set; } + public global::Presenton.UserUpdate? Type261 { get; set; } /// /// /// - public global::Presenton.ThemeData? Type262 { get; set; } + public global::System.Collections.Generic.IList>? Type262 { get; set; } /// /// /// - public global::Presenton.UpdatePresentationRequestV2? Type263 { get; set; } + public global::Presenton.AnyOf? Type263 { get; set; } /// /// /// - public global::Presenton.UpdateTemplateRequest? Type264 { get; set; } + public global::Presenton.VariationsResponse? Type264 { get; set; } /// /// /// - public global::Presenton.UserCreate? Type265 { get; set; } + public global::Presenton.GenerateImageApiV1PptImagesGenerateGetImageType? Type265 { get; set; } /// /// /// - public global::Presenton.UserUpdate? Type266 { get; set; } + public global::Presenton.GenerateImagesApiV2PptImagesGenerateGetImageType? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type267 { get; set; } + public global::Presenton.ListChatConversationsApiV3ChatConversationsGetPresentationType? Type267 { get; set; } /// /// /// - public global::Presenton.AnyOf? Type268 { get; set; } + public global::Presenton.GetChatHistoryApiV3ChatHistoryGetPresentationType? Type268 { get; set; } /// /// /// - public global::Presenton.VariationsResponse? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::Presenton.GenerateImageApiV1PptImagesGenerateGetImageType? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::Presenton.GenerateImagesApiV2PptImagesGenerateGetImageType? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type273 { get; set; } + public global::Presenton.AnyOf? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::System.Collections.Generic.IList? Type274 { get; set; } /// /// /// - public global::Presenton.AnyOf? Type275 { get; set; } + public global::System.Collections.Generic.IList? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::System.Collections.Generic.IList? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Presenton.AnyOf? Type281 { get; set; } /// /// /// - public global::Presenton.AnyOf? Type282 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// @@ -1181,138 +1177,130 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType5 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::Presenton.AnyOf, object, object>? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::Presenton.AnyOf, object, object>? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List>? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.AddDownloadApiV3DownloadsAddPostResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.AddDownloadHandlerApiV3DownloadsAddPostResponse.Json.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.AddDownloadApiV3DownloadsAddPostResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.AddDownloadHandlerApiV3DownloadsAddPostResponse.Json.g.cs index 525d266..3f6e247 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.AddDownloadApiV3DownloadsAddPostResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.AddDownloadHandlerApiV3DownloadsAddPostResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class AddDownloadApiV3DownloadsAddPostResponse + public sealed partial class AddDownloadHandlerApiV3DownloadsAddPostResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.AddDownloadApiV3DownloadsAddPostResponse? FromJson( + public static global::Presenton.AddDownloadHandlerApiV3DownloadsAddPostResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.AddDownloadApiV3DownloadsAddPostResponse), - jsonSerializerContext) as global::Presenton.AddDownloadApiV3DownloadsAddPostResponse; + typeof(global::Presenton.AddDownloadHandlerApiV3DownloadsAddPostResponse), + jsonSerializerContext) as global::Presenton.AddDownloadHandlerApiV3DownloadsAddPostResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.AddDownloadApiV3DownloadsAddPostResponse? FromJson( + public static global::Presenton.AddDownloadHandlerApiV3DownloadsAddPostResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.AddDownloadApiV3DownloadsAddPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.AddDownloadApiV3DownloadsAddPostResponse; + typeof(global::Presenton.AddDownloadHandlerApiV3DownloadsAddPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.AddDownloadHandlerApiV3DownloadsAddPostResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.AddDownloadHandlerApiV3DownloadsAddPostResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.AddDownloadHandlerApiV3DownloadsAddPostResponse.g.cs new file mode 100644 index 0000000..aaa9e89 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.AddDownloadHandlerApiV3DownloadsAddPostResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class AddDownloadHandlerApiV3DownloadsAddPostResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost.Json.g.cs new file mode 100644 index 0000000..d2f0bca --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost), + jsonSerializerContext) as global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV1PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs similarity index 73% rename from src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV1PptFontsCheckPost.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs index 3f461e6..ea238b5 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV1PptFontsCheckPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost.g.cs @@ -6,17 +6,17 @@ namespace Presenton /// /// /// - public sealed partial class BodyCheckFontsInPptxApiV1PptFontsCheckPost + public sealed partial class BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost { /// - /// PPTX file to analyze fonts from + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_file")] [global::System.Text.Json.Serialization.JsonRequired] public required byte[] PptxFile { get; set; } /// - /// PPTX file to analyze fonts from + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_filename")] [global::System.Text.Json.Serialization.JsonRequired] @@ -29,18 +29,14 @@ public sealed partial class BodyCheckFontsInPptxApiV1PptFontsCheckPost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// PPTX file to analyze fonts from - /// - /// - /// PPTX file to analyze fonts from - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BodyCheckFontsInPptxApiV1PptFontsCheckPost( + public BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost( byte[] pptxFile, string pptxFilename) { @@ -49,9 +45,9 @@ public BodyCheckFontsInPptxApiV1PptFontsCheckPost( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BodyCheckFontsInPptxApiV1PptFontsCheckPost() + public BodyCheckFontsInPptxHandlerApiV1PptFontsCheckPost() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost.Json.g.cs new file mode 100644 index 0000000..e47dc9e --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost), + jsonSerializerContext) as global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV2PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs similarity index 73% rename from src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV2PptFontsCheckPost.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs index 5ea1f5d..4a05cff 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV2PptFontsCheckPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs @@ -6,17 +6,17 @@ namespace Presenton /// /// /// - public sealed partial class BodyCheckFontsInPptxApiV2PptFontsCheckPost + public sealed partial class BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost { /// - /// PPTX file to analyze fonts from + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_file")] [global::System.Text.Json.Serialization.JsonRequired] public required byte[] PptxFile { get; set; } /// - /// PPTX file to analyze fonts from + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_filename")] [global::System.Text.Json.Serialization.JsonRequired] @@ -29,18 +29,14 @@ public sealed partial class BodyCheckFontsInPptxApiV2PptFontsCheckPost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// PPTX file to analyze fonts from - /// - /// - /// PPTX file to analyze fonts from - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BodyCheckFontsInPptxApiV2PptFontsCheckPost( + public BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost( byte[] pptxFile, string pptxFilename) { @@ -49,9 +45,9 @@ public BodyCheckFontsInPptxApiV2PptFontsCheckPost( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BodyCheckFontsInPptxApiV2PptFontsCheckPost() + public BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePost.g.cs index 1939cba..06286f0 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePost.g.cs @@ -22,6 +22,13 @@ public sealed partial class BodyCreateThemeApiV1PptThemesCreatePost [global::System.Text.Json.Serialization.JsonRequired] public required string Description { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Presenton.PresentionThemeDataInput Data { get; set; } + /// /// /// @@ -34,12 +41,6 @@ public sealed partial class BodyCreateThemeApiV1PptThemesCreatePost [global::System.Text.Json.Serialization.JsonPropertyName("logo")] public global::System.Guid? Logo { get; set; } - /// - /// Default Value: {} - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public object? Data { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,26 +52,24 @@ public sealed partial class BodyCreateThemeApiV1PptThemesCreatePost /// /// /// + /// /// /// - /// - /// Default Value: {} - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BodyCreateThemeApiV1PptThemesCreatePost( string name, string description, + global::Presenton.PresentionThemeDataInput data, string? companyName, - global::System.Guid? logo, - object? data) + global::System.Guid? logo) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); this.CompanyName = companyName; this.Logo = logo; - this.Data = data; } /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePost.Json.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePost.Json.g.cs index dbc4f0d..97c98ee 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePost.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPost + public sealed partial class BodyCreateThemeApiV3ThemeCreatePost { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost? FromJson( + public static global::Presenton.BodyCreateThemeApiV3ThemeCreatePost? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost), - jsonSerializerContext) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost; + typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePost), + jsonSerializerContext) as global::Presenton.BodyCreateThemeApiV3ThemeCreatePost; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost? FromJson( + public static global::Presenton.BodyCreateThemeApiV3ThemeCreatePost? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPost; + typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCreateThemeApiV3ThemeCreatePost; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePost.g.cs new file mode 100644 index 0000000..08b300f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePost.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyCreateThemeApiV3ThemeCreatePost + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Presenton.PresentionThemeDataInput Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("company_name")] + public string? CompanyName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logo")] + public global::System.Guid? Logo { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BodyCreateThemeApiV3ThemeCreatePost( + string name, + string description, + global::Presenton.PresentionThemeDataInput data, + string? companyName, + global::System.Guid? logo) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.CompanyName = companyName; + this.Logo = logo; + } + + /// + /// Initializes a new instance of the class. + /// + public BodyCreateThemeApiV3ThemeCreatePost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostCompanyName.Json.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostCompanyName.Json.g.cs index 18d3af6..8dd234c 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostCompanyName.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPost + public sealed partial class BodyCreateThemeApiV3ThemeCreatePostCompanyName { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost? FromJson( + public static global::Presenton.BodyCreateThemeApiV3ThemeCreatePostCompanyName? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost), - jsonSerializerContext) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost; + typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePostCompanyName), + jsonSerializerContext) as global::Presenton.BodyCreateThemeApiV3ThemeCreatePostCompanyName; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost? FromJson( + public static global::Presenton.BodyCreateThemeApiV3ThemeCreatePostCompanyName? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost; + typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePostCompanyName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCreateThemeApiV3ThemeCreatePostCompanyName; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostCompanyName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostCompanyName.g.cs new file mode 100644 index 0000000..0fc5f07 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostCompanyName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyCreateThemeApiV3ThemeCreatePostCompanyName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfo.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostLogo.Json.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfo.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostLogo.Json.g.cs index 7e3bcc6..e849eb7 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfo.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostLogo.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DesignSystemExportInfoEmbeddedFontsInfo + public sealed partial class BodyCreateThemeApiV3ThemeCreatePostLogo { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DesignSystemExportInfoEmbeddedFontsInfo? FromJson( + public static global::Presenton.BodyCreateThemeApiV3ThemeCreatePostLogo? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DesignSystemExportInfoEmbeddedFontsInfo), - jsonSerializerContext) as global::Presenton.DesignSystemExportInfoEmbeddedFontsInfo; + typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePostLogo), + jsonSerializerContext) as global::Presenton.BodyCreateThemeApiV3ThemeCreatePostLogo; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DesignSystemExportInfoEmbeddedFontsInfo? FromJson( + public static global::Presenton.BodyCreateThemeApiV3ThemeCreatePostLogo? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DesignSystemExportInfoEmbeddedFontsInfo), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignSystemExportInfoEmbeddedFontsInfo; + typeof(global::Presenton.BodyCreateThemeApiV3ThemeCreatePostLogo), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCreateThemeApiV3ThemeCreatePostLogo; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostLogo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostLogo.g.cs new file mode 100644 index 0000000..6a77c4b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV3ThemeCreatePostLogo.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyCreateThemeApiV3ThemeCreatePostLogo + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs deleted file mode 100644 index e1ea3cb..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs +++ /dev/null @@ -1,116 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost - { - /// - /// Current UI image file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_ui_image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] CurrentUiImage { get; set; } - - /// - /// Current UI image file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_ui_imagename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CurrentUiImagename { get; set; } - - /// - /// Sketch/indication image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_image")] - public byte[]? SketchImage { get; set; } - - /// - /// Sketch/indication image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_imagename")] - public string? SketchImagename { get; set; } - - /// - /// Current HTML content to edit - /// - [global::System.Text.Json.Serialization.JsonPropertyName("html")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Html { get; set; } - - /// - /// Text prompt describing the changes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// Template identifier (any string) whose design system should guide edits - /// - [global::System.Text.Json.Serialization.JsonPropertyName("template_id")] - public string? TemplateId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Current UI image file - /// - /// - /// Current UI image file - /// - /// - /// Current HTML content to edit - /// - /// - /// Text prompt describing the changes - /// - /// - /// Sketch/indication image file (optional) - /// - /// - /// Sketch/indication image file (optional) - /// - /// - /// Template identifier (any string) whose design system should guide edits - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost( - byte[] currentUiImage, - string currentUiImagename, - string html, - string prompt, - byte[]? sketchImage, - string? sketchImagename, - string? templateId) - { - this.CurrentUiImage = currentUiImage ?? throw new global::System.ArgumentNullException(nameof(currentUiImage)); - this.CurrentUiImagename = currentUiImagename ?? throw new global::System.ArgumentNullException(nameof(currentUiImagename)); - this.SketchImage = sketchImage; - this.SketchImagename = sketchImagename; - this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.TemplateId = templateId; - } - - /// - /// Initializes a new instance of the class. - /// - public BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage.Json.g.cs deleted file mode 100644 index c642768..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage), - jsonSerializerContext) as global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId.Json.g.cs deleted file mode 100644 index cbe002e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId), - jsonSerializerContext) as global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPost.Json.g.cs deleted file mode 100644 index aadfc23..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPost.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPost - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost), - jsonSerializerContext) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPost.g.cs deleted file mode 100644 index 50f12b2..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPost.g.cs +++ /dev/null @@ -1,114 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPost - { - /// - /// Current UI image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_ui_image")] - public byte[]? CurrentUiImage { get; set; } - - /// - /// Current UI image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_ui_imagename")] - public string? CurrentUiImagename { get; set; } - - /// - /// Sketch/indication image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_image")] - public byte[]? SketchImage { get; set; } - - /// - /// Sketch/indication image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_imagename")] - public string? SketchImagename { get; set; } - - /// - /// Current React component code to edit - /// - [global::System.Text.Json.Serialization.JsonPropertyName("react")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string React { get; set; } - - /// - /// Text prompt describing the changes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// Optional design system JSON to guide the edit - /// - [global::System.Text.Json.Serialization.JsonPropertyName("design_system")] - public string? DesignSystem { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Current React component code to edit - /// - /// - /// Text prompt describing the changes - /// - /// - /// Current UI image file (optional) - /// - /// - /// Current UI image file (optional) - /// - /// - /// Sketch/indication image file (optional) - /// - /// - /// Sketch/indication image file (optional) - /// - /// - /// Optional design system JSON to guide the edit - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyEditReactWithImageEndpointApiV1PptReactEditPost( - string react, - string prompt, - byte[]? currentUiImage, - string? currentUiImagename, - byte[]? sketchImage, - string? sketchImagename, - string? designSystem) - { - this.CurrentUiImage = currentUiImage; - this.CurrentUiImagename = currentUiImagename; - this.SketchImage = sketchImage; - this.SketchImagename = sketchImagename; - this.React = react ?? throw new global::System.ArgumentNullException(nameof(react)); - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.DesignSystem = designSystem; - } - - /// - /// Initializes a new instance of the class. - /// - public BodyEditReactWithImageEndpointApiV1PptReactEditPost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage.Json.g.cs deleted file mode 100644 index 4faa469..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage), - jsonSerializerContext) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage.g.cs deleted file mode 100644 index 7372298..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Current UI image file (optional) - /// - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPostCurrentUiImage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem.Json.g.cs deleted file mode 100644 index 58a77f5..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem), - jsonSerializerContext) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem.g.cs deleted file mode 100644 index a72bcaf..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Optional design system JSON to guide the edit - /// - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPostDesignSystem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage.Json.g.cs deleted file mode 100644 index 74ca82f..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage), - jsonSerializerContext) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage.g.cs deleted file mode 100644 index db36e9c..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Sketch/indication image file (optional) - /// - public sealed partial class BodyEditReactWithImageEndpointApiV1PptReactEditPostSketchImage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPost.Json.g.cs similarity index 82% rename from src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPost.Json.g.cs index 28bd574..8b37003 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPost.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost + public sealed partial class BodyExportPresentationApiV1DebugExportPresentationPost { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost? FromJson( + public static global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost), - jsonSerializerContext) as global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost; + typeof(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost), + jsonSerializerContext) as global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost? FromJson( + public static global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPost; + typeof(global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPost; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPost.g.cs new file mode 100644 index 0000000..204ffb1 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPost.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyExportPresentationApiV1DebugExportPresentationPost + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("token")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Token { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid PresentationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("export_as")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.BodyExportPresentationApiV1DebugExportPresentationPostExportAsJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs ExportAs { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BodyExportPresentationApiV1DebugExportPresentationPost( + string token, + global::System.Guid presentationId, + global::Presenton.BodyExportPresentationApiV1DebugExportPresentationPostExportAs exportAs) + { + this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token)); + this.PresentationId = presentationId; + this.ExportAs = exportAs; + } + + /// + /// Initializes a new instance of the class. + /// + public BodyExportPresentationApiV1DebugExportPresentationPost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPostExportAs.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPostExportAs.g.cs new file mode 100644 index 0000000..83a7a07 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyExportPresentationApiV1DebugExportPresentationPostExportAs.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public enum BodyExportPresentationApiV1DebugExportPresentationPostExportAs + { + /// + /// + /// + Pdf, + /// + /// + /// + Png, + /// + /// + /// + Pptx, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BodyExportPresentationApiV1DebugExportPresentationPostExportAsExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BodyExportPresentationApiV1DebugExportPresentationPostExportAs value) + { + return value switch + { + BodyExportPresentationApiV1DebugExportPresentationPostExportAs.Pdf => "pdf", + BodyExportPresentationApiV1DebugExportPresentationPostExportAs.Png => "png", + BodyExportPresentationApiV1DebugExportPresentationPostExportAs.Pptx => "pptx", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BodyExportPresentationApiV1DebugExportPresentationPostExportAs? ToEnum(string value) + { + return value switch + { + "pdf" => BodyExportPresentationApiV1DebugExportPresentationPostExportAs.Pdf, + "png" => BodyExportPresentationApiV1DebugExportPresentationPostExportAs.Png, + "pptx" => BodyExportPresentationApiV1DebugExportPresentationPostExportAs.Pptx, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost.Json.g.cs new file mode 100644 index 0000000..ef2a394 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost), + jsonSerializerContext) as global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs similarity index 52% rename from src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs index 8de9aef..8b60f24 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs @@ -6,21 +6,22 @@ namespace Presenton /// /// /// - public sealed partial class GenerateContentForSchemaRequest + public sealed partial class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("schema")] - public object? Schema { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required object Schema { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.GenerateContentForSchemaRequestModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Presenton.GenerateContentForSchemaRequestMode Mode { get; set; } + public required global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode Mode { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +30,25 @@ public sealed partial class GenerateContentForSchemaRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GenerateContentForSchemaRequest( - global::Presenton.GenerateContentForSchemaRequestMode mode, - object? schema) + public BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost( + object schema, + global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode mode) { - this.Schema = schema; + this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); this.Mode = mode; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GenerateContentForSchemaRequest() + public BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.g.cs new file mode 100644 index 0000000..1cd3f9f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public enum BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode + { + /// + /// + /// + Max, + /// + /// + /// + Min, + /// + /// + /// + Normal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode value) + { + return value switch + { + BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.Max => "max", + BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.Min => "min", + BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.Normal => "normal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode? ToEnum(string value) + { + return value switch + { + "max" => BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.Max, + "min" => BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.Min, + "normal" => BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostMode.Normal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema.Json.g.cs new file mode 100644 index 0000000..6fee79e --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema), + jsonSerializerContext) as global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema.g.cs index a6af923..d40aa02 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages + public sealed partial class BodyGenerateContentForSchemaApiV3SchemaContentGeneratePostSchema { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.Json.g.cs new file mode 100644 index 0000000..86c879a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost), + jsonSerializerContext) as global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs similarity index 55% rename from src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs index 6ade546..5bc0c92 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs @@ -6,27 +6,33 @@ namespace Presenton /// /// /// - public sealed partial class BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost + public sealed partial class BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost { /// - /// PPTX file to process + /// PPTX file to import /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_file")] [global::System.Text.Json.Serialization.JsonRequired] public required byte[] PptxFile { get; set; } /// - /// PPTX file to process + /// PPTX file to import /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_filename")] [global::System.Text.Json.Serialization.JsonRequired] public required string PptxFilename { get; set; } /// - /// Optional font files + /// Font files to upload /// - [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] - public global::System.Collections.Generic.IList? Fonts { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("font_files")] + public global::System.Collections.Generic.IList? FontFiles { get; set; } + + /// + /// Original font names to replace (same order as font_files) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("original_font_names")] + public global::System.Collections.Generic.IList? OriginalFontNames { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,34 +41,39 @@ public sealed partial class BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// PPTX file to process + /// PPTX file to import /// /// - /// PPTX file to process + /// PPTX file to import + /// + /// + /// Font files to upload /// - /// - /// Optional font files + /// + /// Original font names to replace (same order as font_files) /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost( + public BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost( byte[] pptxFile, string pptxFilename, - global::System.Collections.Generic.IList? fonts) + global::System.Collections.Generic.IList? fontFiles, + global::System.Collections.Generic.IList? originalFontNames) { this.PptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile)); this.PptxFilename = pptxFilename ?? throw new global::System.ArgumentNullException(nameof(pptxFilename)); - this.Fonts = fonts; + this.FontFiles = fontFiles; + this.OriginalFontNames = originalFontNames; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost() + public BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles.Json.g.cs new file mode 100644 index 0000000..c72ca1f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles), + jsonSerializerContext) as global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles.g.cs similarity index 76% rename from src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles.g.cs index 6e5f058..eb10b22 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles.g.cs @@ -4,9 +4,9 @@ namespace Presenton { /// - /// Sketch/indication image file (optional) + /// Font files to upload /// - public sealed partial class BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostSketchImage + public sealed partial class BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostFontFiles { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames.Json.g.cs new file mode 100644 index 0000000..9945c21 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames), + jsonSerializerContext) as global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames.g.cs similarity index 70% rename from src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames.g.cs index 9f73343..40d938a 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames.g.cs @@ -4,9 +4,9 @@ namespace Presenton { /// - /// Template identifier (any string) whose design system should guide edits + /// Original font names to replace (same order as font_files) /// - public sealed partial class BodyEditHtmlWithImagesEndpointApiV1PptHtmlEditPostTemplateId + public sealed partial class BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostOriginalFontNames { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs deleted file mode 100644 index ae30816..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs +++ /dev/null @@ -1,100 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPost - { - /// - /// Primary reference/sketch image (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_image")] - public byte[]? SketchImage { get; set; } - - /// - /// Primary reference/sketch image (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_imagename")] - public string? SketchImagename { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("additional_images")] - public global::System.Collections.Generic.IList? AdditionalImages { get; set; } - - /// - /// Optional existing HTML content to inform create - /// - [global::System.Text.Json.Serialization.JsonPropertyName("html")] - public string? Html { get; set; } - - /// - /// Text prompt describing the slide to create - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// Template identifier (any string) whose design system should guide create - /// - [global::System.Text.Json.Serialization.JsonPropertyName("template_id")] - public string? TemplateId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Text prompt describing the slide to create - /// - /// - /// Primary reference/sketch image (optional) - /// - /// - /// Primary reference/sketch image (optional) - /// - /// - /// - /// Optional existing HTML content to inform create - /// - /// - /// Template identifier (any string) whose design system should guide create - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyInitHtmlCreateApiV1PptHtmlCreateInitPost( - string prompt, - byte[]? sketchImage, - string? sketchImagename, - global::System.Collections.Generic.IList? additionalImages, - string? html, - string? templateId) - { - this.SketchImage = sketchImage; - this.SketchImagename = sketchImagename; - this.AdditionalImages = additionalImages; - this.Html = html; - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.TemplateId = templateId; - } - - /// - /// Initializes a new instance of the class. - /// - public BodyInitHtmlCreateApiV1PptHtmlCreateInitPost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages.Json.g.cs deleted file mode 100644 index 3372b92..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages), - jsonSerializerContext) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostAdditionalImages; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage.Json.g.cs deleted file mode 100644 index 9cd2e0e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage), - jsonSerializerContext) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage.g.cs deleted file mode 100644 index 9909cd3..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Primary reference/sketch image (optional) - /// - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPostSketchImage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId.Json.g.cs deleted file mode 100644 index dc741e4..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId), - jsonSerializerContext) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId.g.cs deleted file mode 100644 index 6d60fc1..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Template identifier (any string) whose design system should guide create - /// - public sealed partial class BodyInitHtmlCreateApiV1PptHtmlCreateInitPostTemplateId - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPost.g.cs deleted file mode 100644 index 40a9beb..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPost.g.cs +++ /dev/null @@ -1,125 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPost - { - /// - /// Current UI image file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_ui_image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] CurrentUiImage { get; set; } - - /// - /// Current UI image file - /// - [global::System.Text.Json.Serialization.JsonPropertyName("current_ui_imagename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CurrentUiImagename { get; set; } - - /// - /// Sketch/indication image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_image")] - public byte[]? SketchImage { get; set; } - - /// - /// Sketch/indication image file (optional) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sketch_imagename")] - public string? SketchImagename { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("additional_images")] - public global::System.Collections.Generic.IList? AdditionalImages { get; set; } - - /// - /// Current HTML content to edit - /// - [global::System.Text.Json.Serialization.JsonPropertyName("html")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Html { get; set; } - - /// - /// Text prompt describing the changes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// Template identifier (any string) whose design system should guide edits - /// - [global::System.Text.Json.Serialization.JsonPropertyName("template_id")] - public string? TemplateId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Current UI image file - /// - /// - /// Current UI image file - /// - /// - /// Current HTML content to edit - /// - /// - /// Text prompt describing the changes - /// - /// - /// Sketch/indication image file (optional) - /// - /// - /// Sketch/indication image file (optional) - /// - /// - /// - /// Template identifier (any string) whose design system should guide edits - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyInitHtmlEditApiV1PptHtmlEditInitPost( - byte[] currentUiImage, - string currentUiImagename, - string html, - string prompt, - byte[]? sketchImage, - string? sketchImagename, - global::System.Collections.Generic.IList? additionalImages, - string? templateId) - { - this.CurrentUiImage = currentUiImage ?? throw new global::System.ArgumentNullException(nameof(currentUiImage)); - this.CurrentUiImagename = currentUiImagename ?? throw new global::System.ArgumentNullException(nameof(currentUiImagename)); - this.SketchImage = sketchImage; - this.SketchImagename = sketchImagename; - this.AdditionalImages = additionalImages; - this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.TemplateId = templateId; - } - - /// - /// Initializes a new instance of the class. - /// - public BodyInitHtmlEditApiV1PptHtmlEditInitPost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages.Json.g.cs deleted file mode 100644 index 71eb9a2..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages), - jsonSerializerContext) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage.Json.g.cs deleted file mode 100644 index 47906ea..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage), - jsonSerializerContext) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage.g.cs deleted file mode 100644 index 2ae75d0..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Sketch/indication image file (optional) - /// - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPostSketchImage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId.Json.g.cs deleted file mode 100644 index 87e0b02..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId), - jsonSerializerContext) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId.g.cs deleted file mode 100644 index 6f40036..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Template identifier (any string) whose design system should guide edits - /// - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPostTemplateId - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost.Json.g.cs deleted file mode 100644 index 292a5b3..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost), - jsonSerializerContext) as global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs deleted file mode 100644 index 853ee1d..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost - { - /// - /// PDF file to process - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pdf_file")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] PdfFile { get; set; } - - /// - /// PDF file to process - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pdf_filename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PdfFilename { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// PDF file to process - /// - /// - /// PDF file to process - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost( - byte[] pdfFile, - string pdfFilename) - { - this.PdfFile = pdfFile ?? throw new global::System.ArgumentNullException(nameof(pdfFile)); - this.PdfFilename = pdfFilename ?? throw new global::System.ArgumentNullException(nameof(pdfFilename)); - } - - /// - /// Initializes a new instance of the class. - /// - public BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost.Json.g.cs deleted file mode 100644 index e636e53..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyProcessPptxFontsApiV1PptPptxFontsProcessPost - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost), - jsonSerializerContext) as global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs deleted file mode 100644 index 7fed42e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class BodyProcessPptxFontsApiV1PptPptxFontsProcessPost - { - /// - /// PPTX file to analyze fonts from - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pptx_file")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] PptxFile { get; set; } - - /// - /// PPTX file to analyze fonts from - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pptx_filename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PptxFilename { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// PPTX file to analyze fonts from - /// - /// - /// PPTX file to analyze fonts from - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyProcessPptxFontsApiV1PptPptxFontsProcessPost( - byte[] pptxFile, - string pptxFilename) - { - this.PptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile)); - this.PptxFilename = pptxFilename ?? throw new global::System.ArgumentNullException(nameof(pptxFilename)); - } - - /// - /// Initializes a new instance of the class. - /// - public BodyProcessPptxFontsApiV1PptPptxFontsProcessPost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost.Json.g.cs deleted file mode 100644 index 64772d6..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost), - jsonSerializerContext) as global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts.Json.g.cs deleted file mode 100644 index 7eada1d..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts), - jsonSerializerContext) as global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts.g.cs deleted file mode 100644 index 8e1389f..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// Optional font files - /// - public sealed partial class BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPostFonts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.Json.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.Json.g.cs index 6c5719c..afa7114 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete + public sealed partial class BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete? FromJson( + public static global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete), - jsonSerializerContext) as global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete; + typeof(global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete), + jsonSerializerContext) as global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete? FromJson( + public static global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete; + typeof(global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs similarity index 81% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs index 8db19c8..871a483 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete + public sealed partial class BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete { /// /// The ID of the webhook subscription to unsubscribe from @@ -22,7 +22,7 @@ public sealed partial class BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDel public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The ID of the webhook subscription to unsubscribe from @@ -30,16 +30,16 @@ public sealed partial class BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDel #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete( + public BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete( string id) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete() + public BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs index 8136a62..fa31bdc 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs @@ -36,7 +36,7 @@ public sealed partial class BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch /// /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public object? Data { get; set; } + public global::Presenton.PresentionThemeDataInput? Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -60,7 +60,7 @@ public BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch( string? description, string? companyName, global::System.Guid? logo, - object? data) + global::Presenton.PresentionThemeDataInput? data) { this.Name = name; this.Description = description; diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2.Json.g.cs deleted file mode 100644 index 7869182..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2), - jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePostData.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch.Json.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePostData.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch.Json.g.cs index f2120ba..4e60ad6 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePostData.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyCreateThemeApiV1PptThemesCreatePostData + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyCreateThemeApiV1PptThemesCreatePostData? FromJson( + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyCreateThemeApiV1PptThemesCreatePostData), - jsonSerializerContext) as global::Presenton.BodyCreateThemeApiV1PptThemesCreatePostData; + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch), + jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyCreateThemeApiV1PptThemesCreatePostData? FromJson( + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyCreateThemeApiV1PptThemesCreatePostData), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCreateThemeApiV1PptThemesCreatePostData; + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs similarity index 57% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs index 0dddf85..9675ed6 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs @@ -6,39 +6,37 @@ namespace Presenton /// /// /// - public sealed partial class TemplateCreateRequest + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("company_name")] + public string? CompanyName { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("design_system")] - public object? DesignSystem { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("logo")] + public global::System.Guid? Logo { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("design_sysetm")] - public object? DesignSysetm { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public global::Presenton.PresentionThemeDataInput? Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -47,34 +45,34 @@ public sealed partial class TemplateCreateRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// /// /// - /// - /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public TemplateCreateRequest( - global::System.Guid id, - string name, + public BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch( + string? name, string? description, - object? designSystem, - object? designSysetm) + string? companyName, + global::System.Guid? logo, + global::Presenton.PresentionThemeDataInput? data) { - this.Id = id; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Name = name; this.Description = description; - this.DesignSystem = designSystem; - this.DesignSysetm = designSysetm; + this.CompanyName = companyName; + this.Logo = logo; + this.Data = data; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public TemplateCreateRequest() + public BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName.Json.g.cs new file mode 100644 index 0000000..0959f0a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName), + jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName.g.cs index df70173..6a657bb 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatchData2 + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchCompanyName { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV1PptFontsCheckPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData.Json.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV1PptFontsCheckPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData.Json.g.cs index 7f5e753..35394d0 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV1PptFontsCheckPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyCheckFontsInPptxApiV1PptFontsCheckPost + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost? FromJson( + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost), - jsonSerializerContext) as global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost; + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData), + jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost? FromJson( + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCheckFontsInPptxApiV1PptFontsCheckPost; + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData.g.cs new file mode 100644 index 0000000..6fb19ad --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchData + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription.Json.g.cs new file mode 100644 index 0000000..e6437a9 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription), + jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription.g.cs new file mode 100644 index 0000000..08bc0b5 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchDescription + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo.Json.g.cs new file mode 100644 index 0000000..6c094d3 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo), + jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo.g.cs new file mode 100644 index 0000000..0d21a50 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchLogo + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName.Json.g.cs new file mode 100644 index 0000000..3a68d85 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName), + jsonSerializerContext) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName.g.cs new file mode 100644 index 0000000..fd5a7bb --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class BodyUpdateThemeApiV3ThemeUpdateThemeIdPatchName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPost.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPost.Json.g.cs index 3851d03..dd9cdc0 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPost.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyUploadFilesV3ApiV3FilesUploadPost + public sealed partial class BodyUploadFilesV1ApiV3FilesUploadPost { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost? FromJson( + public static global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost), - jsonSerializerContext) as global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost; + typeof(global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost), + jsonSerializerContext) as global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost? FromJson( + public static global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost; + typeof(global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPost.g.cs similarity index 82% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPost.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPost.g.cs index ef7b140..da4193b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPost.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyUploadFilesV3ApiV3FilesUploadPost + public sealed partial class BodyUploadFilesV1ApiV3FilesUploadPost { /// /// @@ -21,22 +21,22 @@ public sealed partial class BodyUploadFilesV3ApiV3FilesUploadPost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BodyUploadFilesV3ApiV3FilesUploadPost( + public BodyUploadFilesV1ApiV3FilesUploadPost( global::System.Collections.Generic.IList? files) { this.Files = files; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BodyUploadFilesV3ApiV3FilesUploadPost() + public BodyUploadFilesV1ApiV3FilesUploadPost() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPostFiles.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPostFiles.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPostFiles.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPostFiles.Json.g.cs index dfbb89c..1606aa3 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPostFiles.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPostFiles.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyUploadFilesV3ApiV3FilesUploadPostFiles + public sealed partial class BodyUploadFilesV1ApiV3FilesUploadPostFiles { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPostFiles? FromJson( + public static global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPostFiles? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPostFiles), - jsonSerializerContext) as global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPostFiles; + typeof(global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPostFiles), + jsonSerializerContext) as global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPostFiles; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPostFiles? FromJson( + public static global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPostFiles? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPostFiles), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPostFiles; + typeof(global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPostFiles), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPostFiles; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPostFiles.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPostFiles.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPostFiles.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPostFiles.g.cs index a14b58f..cd44bec 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV3ApiV3FilesUploadPostFiles.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadFilesV1ApiV3FilesUploadPostFiles.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyUploadFilesV3ApiV3FilesUploadPostFiles + public sealed partial class BodyUploadFilesV1ApiV3FilesUploadPostFiles { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV3ApiV3ImagesUploadPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV1ApiV3ImagesUploadPost.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV3ApiV3ImagesUploadPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV1ApiV3ImagesUploadPost.Json.g.cs index a9bf692..b8a5e7a 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV3ApiV3ImagesUploadPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV1ApiV3ImagesUploadPost.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyUploadImageV3ApiV3ImagesUploadPost + public sealed partial class BodyUploadImageV1ApiV3ImagesUploadPost { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost? FromJson( + public static global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost), - jsonSerializerContext) as global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost; + typeof(global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost), + jsonSerializerContext) as global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost? FromJson( + public static global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost; + typeof(global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV3ApiV3ImagesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV1ApiV3ImagesUploadPost.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV3ApiV3ImagesUploadPost.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV1ApiV3ImagesUploadPost.g.cs index 65094b8..f176057 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV3ApiV3ImagesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.BodyUploadImageV1ApiV3ImagesUploadPost.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyUploadImageV3ApiV3ImagesUploadPost + public sealed partial class BodyUploadImageV1ApiV3ImagesUploadPost { /// /// @@ -29,14 +29,14 @@ public sealed partial class BodyUploadImageV3ApiV3ImagesUploadPost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BodyUploadImageV3ApiV3ImagesUploadPost( + public BodyUploadImageV1ApiV3ImagesUploadPost( byte[] file, string filename) { @@ -45,9 +45,9 @@ public BodyUploadImageV3ApiV3ImagesUploadPost( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BodyUploadImageV3ApiV3ImagesUploadPost() + public BodyUploadImageV1ApiV3ImagesUploadPost() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChangePasswordRequest.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChangePasswordRequest.Json.g.cs index 8c555b7..9bd286e 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChangePasswordRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class TemplateCreateRequest + public sealed partial class ChangePasswordRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.TemplateCreateRequest? FromJson( + public static global::Presenton.ChangePasswordRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.TemplateCreateRequest), - jsonSerializerContext) as global::Presenton.TemplateCreateRequest; + typeof(global::Presenton.ChangePasswordRequest), + jsonSerializerContext) as global::Presenton.ChangePasswordRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.TemplateCreateRequest? FromJson( + public static global::Presenton.ChangePasswordRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.TemplateCreateRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateRequest; + typeof(global::Presenton.ChangePasswordRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChangePasswordRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemSlideInput.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChangePasswordRequest.g.cs similarity index 55% rename from src/libs/Presenton/Generated/Presenton.Models.DesignSystemSlideInput.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChangePasswordRequest.g.cs index 1a6c0a5..8cffb29 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemSlideInput.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChangePasswordRequest.g.cs @@ -6,21 +6,21 @@ namespace Presenton /// /// /// - public sealed partial class DesignSystemSlideInput + public sealed partial class ChangePasswordRequest { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] + [global::System.Text.Json.Serialization.JsonPropertyName("current_password")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } + public required string CurrentPassword { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("markdown_content")] + [global::System.Text.Json.Serialization.JsonPropertyName("new_password")] [global::System.Text.Json.Serialization.JsonRequired] - public required string MarkdownContent { get; set; } + public required string NewPassword { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class DesignSystemSlideInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DesignSystemSlideInput( - string image, - string markdownContent) + public ChangePasswordRequest( + string currentPassword, + string newPassword) { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.MarkdownContent = markdownContent ?? throw new global::System.ArgumentNullException(nameof(markdownContent)); + this.CurrentPassword = currentPassword ?? throw new global::System.ArgumentNullException(nameof(currentPassword)); + this.NewPassword = newPassword ?? throw new global::System.ArgumentNullException(nameof(newPassword)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DesignSystemSlideInput() + public ChangePasswordRequest() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItem.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItem.Json.g.cs new file mode 100644 index 0000000..4870038 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class ChatConversationListItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.ChatConversationListItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.ChatConversationListItem), + jsonSerializerContext) as global::Presenton.ChatConversationListItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.ChatConversationListItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.ChatConversationListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatConversationListItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItem.g.cs similarity index 53% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItem.g.cs index f6e03c6..b256350 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItem.g.cs @@ -6,27 +6,26 @@ namespace Presenton /// /// /// - public sealed partial class TemplateCreateResponse + public sealed partial class ChatConversationListItem { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required global::System.Guid ConversationId { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("template")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Template { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public string? UpdatedAt { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("last_message_preview")] + public string? LastMessagePreview { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,28 +34,28 @@ public sealed partial class TemplateCreateResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public TemplateCreateResponse( - bool success, - object template, - string? message) + public ChatConversationListItem( + global::System.Guid conversationId, + string? updatedAt, + string? lastMessagePreview) { - this.Success = success; - this.Template = template ?? throw new global::System.ArgumentNullException(nameof(template)); - this.Message = message; + this.ConversationId = conversationId; + this.UpdatedAt = updatedAt; + this.LastMessagePreview = lastMessagePreview; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public TemplateCreateResponse() + public ChatConversationListItem() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV2PptFontsCheckPost.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemLastMessagePreview.Json.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV2PptFontsCheckPost.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemLastMessagePreview.Json.g.cs index 9c27757..4504b1e 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCheckFontsInPptxApiV2PptFontsCheckPost.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemLastMessagePreview.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class BodyCheckFontsInPptxApiV2PptFontsCheckPost + public sealed partial class ChatConversationListItemLastMessagePreview { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost? FromJson( + public static global::Presenton.ChatConversationListItemLastMessagePreview? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost), - jsonSerializerContext) as global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost; + typeof(global::Presenton.ChatConversationListItemLastMessagePreview), + jsonSerializerContext) as global::Presenton.ChatConversationListItemLastMessagePreview; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost? FromJson( + public static global::Presenton.ChatConversationListItemLastMessagePreview? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost; + typeof(global::Presenton.ChatConversationListItemLastMessagePreview), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatConversationListItemLastMessagePreview; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.AddDownloadApiV3DownloadsAddPostResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemLastMessagePreview.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.AddDownloadApiV3DownloadsAddPostResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemLastMessagePreview.g.cs index f01b762..98763d0 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.AddDownloadApiV3DownloadsAddPostResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemLastMessagePreview.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class AddDownloadApiV3DownloadsAddPostResponse + public sealed partial class ChatConversationListItemLastMessagePreview { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelCompanyName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemUpdatedAt.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelCompanyName.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemUpdatedAt.Json.g.cs index f464853..2664bbb 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelCompanyName.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemUpdatedAt.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationThemeModelCompanyName + public sealed partial class ChatConversationListItemUpdatedAt { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationThemeModelCompanyName? FromJson( + public static global::Presenton.ChatConversationListItemUpdatedAt? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationThemeModelCompanyName), - jsonSerializerContext) as global::Presenton.PresentationThemeModelCompanyName; + typeof(global::Presenton.ChatConversationListItemUpdatedAt), + jsonSerializerContext) as global::Presenton.ChatConversationListItemUpdatedAt; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationThemeModelCompanyName? FromJson( + public static global::Presenton.ChatConversationListItemUpdatedAt? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationThemeModelCompanyName), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeModelCompanyName; + typeof(global::Presenton.ChatConversationListItemUpdatedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatConversationListItemUpdatedAt; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemUpdatedAt.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelData.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemUpdatedAt.g.cs index 1501673..5b4cce2 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelData.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatConversationListItemUpdatedAt.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class DefaultPresentationThemeModelData + public sealed partial class ChatConversationListItemUpdatedAt { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponseErrorCode.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequest.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.ErrorResponseErrorCode.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequest.Json.g.cs index e55bd20..8323138 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponseErrorCode.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class ErrorResponseErrorCode + public sealed partial class ChatEditMessageRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.ErrorResponseErrorCode? FromJson( + public static global::Presenton.ChatEditMessageRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.ErrorResponseErrorCode), - jsonSerializerContext) as global::Presenton.ErrorResponseErrorCode; + typeof(global::Presenton.ChatEditMessageRequest), + jsonSerializerContext) as global::Presenton.ChatEditMessageRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.ErrorResponseErrorCode? FromJson( + public static global::Presenton.ChatEditMessageRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.ErrorResponseErrorCode), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ErrorResponseErrorCode; + typeof(global::Presenton.ChatEditMessageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatEditMessageRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequest.g.cs new file mode 100644 index 0000000..a25cea5 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequest.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatEditMessageRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid PresentationId { get; set; } + + /// + /// Default Value: standard + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.ChatEditMessageRequestPresentationTypeJsonConverter))] + public global::Presenton.ChatEditMessageRequestPresentationType? PresentationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ConversationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] + public global::System.Guid? MessageId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("position")] + public int? Position { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// Default Value: standard + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatEditMessageRequest( + global::System.Guid presentationId, + global::System.Guid conversationId, + string message, + global::Presenton.ChatEditMessageRequestPresentationType? presentationType, + global::System.Guid? messageId, + int? position) + { + this.PresentationId = presentationId; + this.PresentationType = presentationType; + this.ConversationId = conversationId; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.MessageId = messageId; + this.Position = position; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatEditMessageRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestDesignSystem.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestMessageId.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestDesignSystem.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestMessageId.Json.g.cs index 215b822..27983a7 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestDesignSystem.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestMessageId.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideToReactRequestDesignSystem + public sealed partial class ChatEditMessageRequestMessageId { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideToReactRequestDesignSystem? FromJson( + public static global::Presenton.ChatEditMessageRequestMessageId? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideToReactRequestDesignSystem), - jsonSerializerContext) as global::Presenton.SlideToReactRequestDesignSystem; + typeof(global::Presenton.ChatEditMessageRequestMessageId), + jsonSerializerContext) as global::Presenton.ChatEditMessageRequestMessageId; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideToReactRequestDesignSystem? FromJson( + public static global::Presenton.ChatEditMessageRequestMessageId? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideToReactRequestDesignSystem), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToReactRequestDesignSystem; + typeof(global::Presenton.ChatEditMessageRequestMessageId), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatEditMessageRequestMessageId; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestMessageId.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts2.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestMessageId.g.cs index 0d97e22..a8a4e6e 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts2.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestMessageId.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class CreateDesignSystemRequestFonts2 + public sealed partial class ChatEditMessageRequestMessageId { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPosition.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPosition.Json.g.cs index 95e4447..7ebf90d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPosition.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GetPresentationSummaryResponse + public sealed partial class ChatEditMessageRequestPosition { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GetPresentationSummaryResponse? FromJson( + public static global::Presenton.ChatEditMessageRequestPosition? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GetPresentationSummaryResponse), - jsonSerializerContext) as global::Presenton.GetPresentationSummaryResponse; + typeof(global::Presenton.ChatEditMessageRequestPosition), + jsonSerializerContext) as global::Presenton.ChatEditMessageRequestPosition; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GetPresentationSummaryResponse? FromJson( + public static global::Presenton.ChatEditMessageRequestPosition? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GetPresentationSummaryResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetPresentationSummaryResponse; + typeof(global::Presenton.ChatEditMessageRequestPosition), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatEditMessageRequestPosition; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPosition.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPosition.g.cs index 53aff63..81edc3b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPosition.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class CreateDesignSystemRequestFonts + public sealed partial class ChatEditMessageRequestPosition { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPresentationType.g.cs new file mode 100644 index 0000000..fc4f3c7 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatEditMessageRequestPresentationType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// Default Value: standard + /// + public enum ChatEditMessageRequestPresentationType + { + /// + /// + /// + Smart, + /// + /// + /// + Standard, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatEditMessageRequestPresentationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatEditMessageRequestPresentationType value) + { + return value switch + { + ChatEditMessageRequestPresentationType.Smart => "smart", + ChatEditMessageRequestPresentationType.Standard => "standard", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatEditMessageRequestPresentationType? ToEnum(string value) + { + return value switch + { + "smart" => ChatEditMessageRequestPresentationType.Smart, + "standard" => ChatEditMessageRequestPresentationType.Standard, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemSlideInput.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItem.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.DesignSystemSlideInput.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItem.Json.g.cs index 12779df..4672965 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemSlideInput.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DesignSystemSlideInput + public sealed partial class ChatHistoryMessageItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DesignSystemSlideInput? FromJson( + public static global::Presenton.ChatHistoryMessageItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DesignSystemSlideInput), - jsonSerializerContext) as global::Presenton.DesignSystemSlideInput; + typeof(global::Presenton.ChatHistoryMessageItem), + jsonSerializerContext) as global::Presenton.ChatHistoryMessageItem; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DesignSystemSlideInput? FromJson( + public static global::Presenton.ChatHistoryMessageItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DesignSystemSlideInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignSystemSlideInput; + typeof(global::Presenton.ChatHistoryMessageItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatHistoryMessageItem; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItem.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItem.g.cs new file mode 100644 index 0000000..548cb42 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItem.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatHistoryMessageItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public global::System.Guid? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("position")] + public int? Position { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public string? CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] + public global::System.Collections.Generic.IList? ToolCalls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatHistoryMessageItem( + string role, + string content, + global::System.Guid? id, + int? position, + string? createdAt, + global::System.Collections.Generic.IList? toolCalls) + { + this.Id = id; + this.Position = position; + this.Role = role ?? throw new global::System.ArgumentNullException(nameof(role)); + this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.CreatedAt = createdAt; + this.ToolCalls = toolCalls; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatHistoryMessageItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemCreatedAt.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponseMessage.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemCreatedAt.Json.g.cs index 4fc16db..ad00e35 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponseMessage.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemCreatedAt.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlToReactResponseMessage + public sealed partial class ChatHistoryMessageItemCreatedAt { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlToReactResponseMessage? FromJson( + public static global::Presenton.ChatHistoryMessageItemCreatedAt? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlToReactResponseMessage), - jsonSerializerContext) as global::Presenton.HtmlToReactResponseMessage; + typeof(global::Presenton.ChatHistoryMessageItemCreatedAt), + jsonSerializerContext) as global::Presenton.ChatHistoryMessageItemCreatedAt; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlToReactResponseMessage? FromJson( + public static global::Presenton.ChatHistoryMessageItemCreatedAt? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlToReactResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlToReactResponseMessage; + typeof(global::Presenton.ChatHistoryMessageItemCreatedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatHistoryMessageItemCreatedAt; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemCreatedAt.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemCreatedAt.g.cs new file mode 100644 index 0000000..df7917d --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemCreatedAt.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatHistoryMessageItemCreatedAt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemId.Json.g.cs new file mode 100644 index 0000000..628b70d --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class ChatHistoryMessageItemId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.ChatHistoryMessageItemId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.ChatHistoryMessageItemId), + jsonSerializerContext) as global::Presenton.ChatHistoryMessageItemId; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.ChatHistoryMessageItemId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.ChatHistoryMessageItemId), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatHistoryMessageItemId; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemId.g.cs new file mode 100644 index 0000000..de2861f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatHistoryMessageItemId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseTemplate.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemPosition.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseTemplate.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemPosition.Json.g.cs index e90e58b..6266b76 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseTemplate.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemPosition.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class TemplateCreateResponseTemplate + public sealed partial class ChatHistoryMessageItemPosition { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.TemplateCreateResponseTemplate? FromJson( + public static global::Presenton.ChatHistoryMessageItemPosition? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.TemplateCreateResponseTemplate), - jsonSerializerContext) as global::Presenton.TemplateCreateResponseTemplate; + typeof(global::Presenton.ChatHistoryMessageItemPosition), + jsonSerializerContext) as global::Presenton.ChatHistoryMessageItemPosition; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.TemplateCreateResponseTemplate? FromJson( + public static global::Presenton.ChatHistoryMessageItemPosition? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.TemplateCreateResponseTemplate), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateResponseTemplate; + typeof(global::Presenton.ChatHistoryMessageItemPosition), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatHistoryMessageItemPosition; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemPosition.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemPosition.g.cs new file mode 100644 index 0000000..b1e889a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryMessageItemPosition.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatHistoryMessageItemPosition + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponse.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponse.Json.g.cs index 070541a..1cee1e0 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlToReactResponse + public sealed partial class ChatHistoryResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlToReactResponse? FromJson( + public static global::Presenton.ChatHistoryResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlToReactResponse), - jsonSerializerContext) as global::Presenton.HtmlToReactResponse; + typeof(global::Presenton.ChatHistoryResponse), + jsonSerializerContext) as global::Presenton.ChatHistoryResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlToReactResponse? FromJson( + public static global::Presenton.ChatHistoryResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlToReactResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlToReactResponse; + typeof(global::Presenton.ChatHistoryResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatHistoryResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponse.g.cs new file mode 100644 index 0000000..f08e332 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponse.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatHistoryResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid PresentationId { get; set; } + + /// + /// Default Value: standard + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.ChatHistoryResponsePresentationTypeJsonConverter))] + public global::Presenton.ChatHistoryResponsePresentationType? PresentationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ConversationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Messages { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// Default Value: standard + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatHistoryResponse( + global::System.Guid presentationId, + global::System.Guid conversationId, + global::System.Collections.Generic.IList messages, + global::Presenton.ChatHistoryResponsePresentationType? presentationType) + { + this.PresentationId = presentationId; + this.PresentationType = presentationType; + this.ConversationId = conversationId; + this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); + } + + /// + /// Initializes a new instance of the class. + /// + public ChatHistoryResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestMode.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponsePresentationType.g.cs similarity index 50% rename from src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestMode.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponsePresentationType.g.cs index 9db4a94..95bcd3a 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestMode.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatHistoryResponsePresentationType.g.cs @@ -4,52 +4,46 @@ namespace Presenton { /// - /// + /// Default Value: standard /// - public enum GenerateContentForSchemaRequestMode + public enum ChatHistoryResponsePresentationType { /// /// /// - Max, + Smart, /// /// /// - Min, - /// - /// - /// - Normal, + Standard, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class GenerateContentForSchemaRequestModeExtensions + public static class ChatHistoryResponsePresentationTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this GenerateContentForSchemaRequestMode value) + public static string ToValueString(this ChatHistoryResponsePresentationType value) { return value switch { - GenerateContentForSchemaRequestMode.Max => "max", - GenerateContentForSchemaRequestMode.Min => "min", - GenerateContentForSchemaRequestMode.Normal => "normal", + ChatHistoryResponsePresentationType.Smart => "smart", + ChatHistoryResponsePresentationType.Standard => "standard", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static GenerateContentForSchemaRequestMode? ToEnum(string value) + public static ChatHistoryResponsePresentationType? ToEnum(string value) { return value switch { - "max" => GenerateContentForSchemaRequestMode.Max, - "min" => GenerateContentForSchemaRequestMode.Min, - "normal" => GenerateContentForSchemaRequestMode.Normal, + "smart" => ChatHistoryResponsePresentationType.Smart, + "standard" => ChatHistoryResponsePresentationType.Standard, _ => null, }; } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequest.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequest.Json.g.cs index 309cd3a..18d10cb 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PptxSlidesResponse + public sealed partial class ChatMessageRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PptxSlidesResponse? FromJson( + public static global::Presenton.ChatMessageRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PptxSlidesResponse), - jsonSerializerContext) as global::Presenton.PptxSlidesResponse; + typeof(global::Presenton.ChatMessageRequest), + jsonSerializerContext) as global::Presenton.ChatMessageRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PptxSlidesResponse? FromJson( + public static global::Presenton.ChatMessageRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PptxSlidesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PptxSlidesResponse; + typeof(global::Presenton.ChatMessageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatMessageRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequest.g.cs new file mode 100644 index 0000000..8a5e720 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequest.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatMessageRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid PresentationId { get; set; } + + /// + /// Default Value: standard + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presentation_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.ChatMessageRequestPresentationTypeJsonConverter))] + public global::Presenton.ChatMessageRequestPresentationType? PresentationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + public global::System.Guid? ConversationId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Default Value: standard + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatMessageRequest( + global::System.Guid presentationId, + string message, + global::Presenton.ChatMessageRequestPresentationType? presentationType, + global::System.Guid? conversationId) + { + this.PresentationId = presentationId; + this.PresentationType = presentationType; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.ConversationId = conversationId; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatMessageRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDescription.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestConversationId.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDescription.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestConversationId.Json.g.cs index f7debc7..3d9a461 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDescription.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestConversationId.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class TemplateCreateRequestDescription + public sealed partial class ChatMessageRequestConversationId { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.TemplateCreateRequestDescription? FromJson( + public static global::Presenton.ChatMessageRequestConversationId? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.TemplateCreateRequestDescription), - jsonSerializerContext) as global::Presenton.TemplateCreateRequestDescription; + typeof(global::Presenton.ChatMessageRequestConversationId), + jsonSerializerContext) as global::Presenton.ChatMessageRequestConversationId; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.TemplateCreateRequestDescription? FromJson( + public static global::Presenton.ChatMessageRequestConversationId? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.TemplateCreateRequestDescription), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateRequestDescription; + typeof(global::Presenton.ChatMessageRequestConversationId), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatMessageRequestConversationId; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryLastUpdatedAt.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestConversationId.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryLastUpdatedAt.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestConversationId.g.cs index 48a7929..5705803 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryLastUpdatedAt.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestConversationId.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class PresentationSummaryLastUpdatedAt + public sealed partial class ChatMessageRequestConversationId { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestPresentationType.g.cs new file mode 100644 index 0000000..2f16f3f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageRequestPresentationType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// Default Value: standard + /// + public enum ChatMessageRequestPresentationType + { + /// + /// + /// + Smart, + /// + /// + /// + Standard, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatMessageRequestPresentationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatMessageRequestPresentationType value) + { + return value switch + { + ChatMessageRequestPresentationType.Smart => "smart", + ChatMessageRequestPresentationType.Standard => "standard", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatMessageRequestPresentationType? ToEnum(string value) + { + return value switch + { + "smart" => ChatMessageRequestPresentationType.Smart, + "standard" => ChatMessageRequestPresentationType.Standard, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageResponse.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatMessageResponse.Json.g.cs index fa7ff72..f05c15b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideToHtmlResponse + public sealed partial class ChatMessageResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideToHtmlResponse? FromJson( + public static global::Presenton.ChatMessageResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideToHtmlResponse), - jsonSerializerContext) as global::Presenton.SlideToHtmlResponse; + typeof(global::Presenton.ChatMessageResponse), + jsonSerializerContext) as global::Presenton.ChatMessageResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideToHtmlResponse? FromJson( + public static global::Presenton.ChatMessageResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideToHtmlResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToHtmlResponse; + typeof(global::Presenton.ChatMessageResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatMessageResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageResponse.g.cs similarity index 56% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ChatMessageResponse.g.cs index 05a6937..cb9e530 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageResponse.g.cs @@ -6,27 +6,27 @@ namespace Presenton /// /// /// - public sealed partial class SlideToHtmlRequest + public sealed partial class ChatMessageResponse { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } + public required global::System.Guid ConversationId { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("xml")] + [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Xml { get; set; } + public required string Response { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] - public global::System.Collections.Generic.IList? Fonts { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] + public global::System.Collections.Generic.IList? ToolCalls { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,28 +35,28 @@ public sealed partial class SlideToHtmlRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SlideToHtmlRequest( - string image, - string xml, - global::System.Collections.Generic.IList? fonts) + public ChatMessageResponse( + global::System.Guid conversationId, + string response, + global::System.Collections.Generic.IList? toolCalls) { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Xml = xml ?? throw new global::System.ArgumentNullException(nameof(xml)); - this.Fonts = fonts; + this.ConversationId = conversationId; + this.Response = response ?? throw new global::System.ArgumentNullException(nameof(response)); + this.ToolCalls = toolCalls; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SlideToHtmlRequest() + public ChatMessageResponse() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatMessageStreamApiV3ChatMessageStreamPostResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageStreamApiV3ChatMessageStreamPostResponse.Json.g.cs new file mode 100644 index 0000000..5fbaa29 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageStreamApiV3ChatMessageStreamPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class ChatMessageStreamApiV3ChatMessageStreamPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.ChatMessageStreamApiV3ChatMessageStreamPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.ChatMessageStreamApiV3ChatMessageStreamPostResponse), + jsonSerializerContext) as global::Presenton.ChatMessageStreamApiV3ChatMessageStreamPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.ChatMessageStreamApiV3ChatMessageStreamPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.ChatMessageStreamApiV3ChatMessageStreamPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ChatMessageStreamApiV3ChatMessageStreamPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.ChatMessageStreamApiV3ChatMessageStreamPostResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageStreamApiV3ChatMessageStreamPostResponse.g.cs new file mode 100644 index 0000000..3243eb5 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ChatMessageStreamApiV3ChatMessageStreamPostResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ChatMessageStreamApiV3ChatMessageStreamPostResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideDataMarkdownContent.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequest.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.SlideDataMarkdownContent.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequest.Json.g.cs index ad3538a..9082d72 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideDataMarkdownContent.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideDataMarkdownContent + public sealed partial class CreateDesignAsyncRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideDataMarkdownContent? FromJson( + public static global::Presenton.CreateDesignAsyncRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideDataMarkdownContent), - jsonSerializerContext) as global::Presenton.SlideDataMarkdownContent; + typeof(global::Presenton.CreateDesignAsyncRequest), + jsonSerializerContext) as global::Presenton.CreateDesignAsyncRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideDataMarkdownContent? FromJson( + public static global::Presenton.CreateDesignAsyncRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideDataMarkdownContent), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideDataMarkdownContent; + typeof(global::Presenton.CreateDesignAsyncRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignAsyncRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequest.g.cs similarity index 56% rename from src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequest.g.cs index 2712c97..146cc31 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequest.g.cs @@ -6,34 +6,33 @@ namespace Presenton /// /// /// - public sealed partial class PptxSlidesResponse + public sealed partial class CreateDesignAsyncRequest { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("pptx_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required string PptxUrl { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("slides")] + [global::System.Text.Json.Serialization.JsonPropertyName("slide_image_urls")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Slides { get; set; } + public required global::System.Collections.Generic.IList SlideImageUrls { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_slides")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalSlides { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] + public object? Fonts { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] - public global::Presenton.FontAnalysisResult? Fonts { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,31 +41,31 @@ public sealed partial class PptxSlidesResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// + /// + /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PptxSlidesResponse( - bool success, - global::System.Collections.Generic.IList slides, - int totalSlides, - global::Presenton.FontAnalysisResult? fonts) + public CreateDesignAsyncRequest( + string pptxUrl, + global::System.Collections.Generic.IList slideImageUrls, + object? fonts, + string? name) { - this.Success = success; - this.Slides = slides ?? throw new global::System.ArgumentNullException(nameof(slides)); - this.TotalSlides = totalSlides; + this.PptxUrl = pptxUrl ?? throw new global::System.ArgumentNullException(nameof(pptxUrl)); + this.SlideImageUrls = slideImageUrls ?? throw new global::System.ArgumentNullException(nameof(slideImageUrls)); this.Fonts = fonts; + this.Name = name; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PptxSlidesResponse() + public CreateDesignAsyncRequest() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts2.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts.Json.g.cs index aa2fb88..12a5407 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts2.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class CreateDesignSystemRequestFonts2 + public sealed partial class CreateDesignAsyncRequestFonts { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.CreateDesignSystemRequestFonts2? FromJson( + public static global::Presenton.CreateDesignAsyncRequestFonts? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.CreateDesignSystemRequestFonts2), - jsonSerializerContext) as global::Presenton.CreateDesignSystemRequestFonts2; + typeof(global::Presenton.CreateDesignAsyncRequestFonts), + jsonSerializerContext) as global::Presenton.CreateDesignAsyncRequestFonts; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.CreateDesignSystemRequestFonts2? FromJson( + public static global::Presenton.CreateDesignAsyncRequestFonts? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.CreateDesignSystemRequestFonts2), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignSystemRequestFonts2; + typeof(global::Presenton.CreateDesignAsyncRequestFonts), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignAsyncRequestFonts; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts.g.cs new file mode 100644 index 0000000..56f4926 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignAsyncRequestFonts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts2.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts2.Json.g.cs index 38ffa83..6a8e508 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequestFonts.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts2.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class CreateDesignSystemRequestFonts + public sealed partial class CreateDesignAsyncRequestFonts2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.CreateDesignSystemRequestFonts? FromJson( + public static global::Presenton.CreateDesignAsyncRequestFonts2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.CreateDesignSystemRequestFonts), - jsonSerializerContext) as global::Presenton.CreateDesignSystemRequestFonts; + typeof(global::Presenton.CreateDesignAsyncRequestFonts2), + jsonSerializerContext) as global::Presenton.CreateDesignAsyncRequestFonts2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.CreateDesignSystemRequestFonts? FromJson( + public static global::Presenton.CreateDesignAsyncRequestFonts2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.CreateDesignSystemRequestFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignSystemRequestFonts; + typeof(global::Presenton.CreateDesignAsyncRequestFonts2), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignAsyncRequestFonts2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts2.g.cs new file mode 100644 index 0000000..94cb66b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestFonts2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignAsyncRequestFonts2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestName.Json.g.cs new file mode 100644 index 0000000..6de8693 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestName.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignAsyncRequestName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignAsyncRequestName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignAsyncRequestName), + jsonSerializerContext) as global::Presenton.CreateDesignAsyncRequestName; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignAsyncRequestName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignAsyncRequestName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignAsyncRequestName; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestName.g.cs new file mode 100644 index 0000000..bc306aa --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignAsyncRequestName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignAsyncRequestName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequest.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseFonts.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequest.Json.g.cs index 8f061b0..9053a64 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseFonts.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GetLayoutsResponseFonts + public sealed partial class CreateDesignInitRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GetLayoutsResponseFonts? FromJson( + public static global::Presenton.CreateDesignInitRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GetLayoutsResponseFonts), - jsonSerializerContext) as global::Presenton.GetLayoutsResponseFonts; + typeof(global::Presenton.CreateDesignInitRequest), + jsonSerializerContext) as global::Presenton.CreateDesignInitRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GetLayoutsResponseFonts? FromJson( + public static global::Presenton.CreateDesignInitRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GetLayoutsResponseFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetLayoutsResponseFonts; + typeof(global::Presenton.CreateDesignInitRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignInitRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequest.g.cs similarity index 80% rename from src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequest.g.cs index a5d8342..0b832c7 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequest.g.cs @@ -6,13 +6,14 @@ namespace Presenton /// /// /// - public sealed partial class CreateDesignSystemRequest + public sealed partial class CreateDesignInitRequest { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pptx_url")] - public string? PptxUrl { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required string PptxUrl { get; set; } /// /// @@ -34,28 +35,28 @@ public sealed partial class CreateDesignSystemRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateDesignSystemRequest( + public CreateDesignInitRequest( + string pptxUrl, global::System.Collections.Generic.IList slideImageUrls, - string? pptxUrl, object? fonts) { - this.PptxUrl = pptxUrl; + this.PptxUrl = pptxUrl ?? throw new global::System.ArgumentNullException(nameof(pptxUrl)); this.SlideImageUrls = slideImageUrls ?? throw new global::System.ArgumentNullException(nameof(slideImageUrls)); this.Fonts = fonts; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateDesignSystemRequest() + public CreateDesignInitRequest() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts.Json.g.cs new file mode 100644 index 0000000..af2fb6e --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignInitRequestFonts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignInitRequestFonts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignInitRequestFonts), + jsonSerializerContext) as global::Presenton.CreateDesignInitRequestFonts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignInitRequestFonts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignInitRequestFonts), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignInitRequestFonts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts.g.cs new file mode 100644 index 0000000..2ff42ed --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignInitRequestFonts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts2.Json.g.cs new file mode 100644 index 0000000..d307be9 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignInitRequestFonts2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignInitRequestFonts2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignInitRequestFonts2), + jsonSerializerContext) as global::Presenton.CreateDesignInitRequestFonts2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignInitRequestFonts2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignInitRequestFonts2), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignInitRequestFonts2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts2.g.cs new file mode 100644 index 0000000..0e2d831 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignInitRequestFonts2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignInitRequestFonts2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceRequest.Json.g.cs new file mode 100644 index 0000000..ffa1a19 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignReferenceRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignReferenceRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignReferenceRequest), + jsonSerializerContext) as global::Presenton.CreateDesignReferenceRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignReferenceRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignReferenceRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignReferenceRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceRequest.g.cs new file mode 100644 index 0000000..a8b8fad --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceRequest.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignReferenceRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Index { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateDesignReferenceRequest( + global::System.Guid id, + int index) + { + this.Id = id; + this.Index = index; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateDesignReferenceRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceResponse.Json.g.cs new file mode 100644 index 0000000..e44672a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignReferenceResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignReferenceResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignReferenceResponse), + jsonSerializerContext) as global::Presenton.CreateDesignReferenceResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignReferenceResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignReferenceResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignReferenceResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceResponse.g.cs new file mode 100644 index 0000000..107c97f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignReferenceResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignReferenceResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("html")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Html { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("structure")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Structure { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateDesignReferenceResponse( + string html, + string structure) + { + this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); + this.Structure = structure ?? throw new global::System.ArgumentNullException(nameof(structure)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateDesignReferenceResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequest.Json.g.cs new file mode 100644 index 0000000..011c2a2 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignRequest), + jsonSerializerContext) as global::Presenton.CreateDesignRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequest.g.cs new file mode 100644 index 0000000..6627747 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequest.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pptx_url")] + public string? PptxUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slide_image_urls")] + public global::System.Collections.Generic.IList? SlideImageUrls { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] + public object? Fonts { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateDesignRequest( + string? pptxUrl, + string? name, + global::System.Collections.Generic.IList? slideImageUrls, + object? fonts) + { + this.PptxUrl = pptxUrl; + this.Name = name; + this.SlideImageUrls = slideImageUrls; + this.Fonts = fonts; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateDesignRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestFonts.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts.Json.g.cs index a78a64a..3647631 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestFonts.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideToReactRequestFonts + public sealed partial class CreateDesignRequestFonts { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideToReactRequestFonts? FromJson( + public static global::Presenton.CreateDesignRequestFonts? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideToReactRequestFonts), - jsonSerializerContext) as global::Presenton.SlideToReactRequestFonts; + typeof(global::Presenton.CreateDesignRequestFonts), + jsonSerializerContext) as global::Presenton.CreateDesignRequestFonts; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideToReactRequestFonts? FromJson( + public static global::Presenton.CreateDesignRequestFonts? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideToReactRequestFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToReactRequestFonts; + typeof(global::Presenton.CreateDesignRequestFonts), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignRequestFonts; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts.g.cs new file mode 100644 index 0000000..ab5e36a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignRequestFonts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts2.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts2.Json.g.cs index 37cc458..74ce405 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignSystemRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts2.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class CreateDesignSystemRequest + public sealed partial class CreateDesignRequestFonts2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.CreateDesignSystemRequest? FromJson( + public static global::Presenton.CreateDesignRequestFonts2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.CreateDesignSystemRequest), - jsonSerializerContext) as global::Presenton.CreateDesignSystemRequest; + typeof(global::Presenton.CreateDesignRequestFonts2), + jsonSerializerContext) as global::Presenton.CreateDesignRequestFonts2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.CreateDesignSystemRequest? FromJson( + public static global::Presenton.CreateDesignRequestFonts2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.CreateDesignSystemRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignSystemRequest; + typeof(global::Presenton.CreateDesignRequestFonts2), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignRequestFonts2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts2.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseMessage.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts2.g.cs index 0b9870f..5531c3c 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseMessage.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestFonts2.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class GetLayoutsResponseMessage + public sealed partial class CreateDesignRequestFonts2 { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestName.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponseMessage.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestName.Json.g.cs index 955a48a..84b3b6f 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponseMessage.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestName.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlEditResponseMessage + public sealed partial class CreateDesignRequestName { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlEditResponseMessage? FromJson( + public static global::Presenton.CreateDesignRequestName? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlEditResponseMessage), - jsonSerializerContext) as global::Presenton.HtmlEditResponseMessage; + typeof(global::Presenton.CreateDesignRequestName), + jsonSerializerContext) as global::Presenton.CreateDesignRequestName; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlEditResponseMessage? FromJson( + public static global::Presenton.CreateDesignRequestName? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlEditResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlEditResponseMessage; + typeof(global::Presenton.CreateDesignRequestName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignRequestName; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequestImage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestName.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequestImage.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestName.g.cs index c93ef93..fc7d1f8 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequestImage.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestName.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class HtmlToReactRequestImage + public sealed partial class CreateDesignRequestName { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestPptxUrl.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestPptxUrl.Json.g.cs index cd18d99..12f2484 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestPptxUrl.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class ExtractDesignSystemRequest + public sealed partial class CreateDesignRequestPptxUrl { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.ExtractDesignSystemRequest? FromJson( + public static global::Presenton.CreateDesignRequestPptxUrl? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.ExtractDesignSystemRequest), - jsonSerializerContext) as global::Presenton.ExtractDesignSystemRequest; + typeof(global::Presenton.CreateDesignRequestPptxUrl), + jsonSerializerContext) as global::Presenton.CreateDesignRequestPptxUrl; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.ExtractDesignSystemRequest? FromJson( + public static global::Presenton.CreateDesignRequestPptxUrl? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.ExtractDesignSystemRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ExtractDesignSystemRequest; + typeof(global::Presenton.CreateDesignRequestPptxUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignRequestPptxUrl; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestPptxUrl.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestPptxUrl.g.cs index 43af543..3f7ddd7 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestPptxUrl.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class GetLayoutsResponseTemplate + public sealed partial class CreateDesignRequestPptxUrl { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestSlideImageUrls.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestSlideImageUrls.Json.g.cs new file mode 100644 index 0000000..04c78aa --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestSlideImageUrls.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class CreateDesignRequestSlideImageUrls + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.CreateDesignRequestSlideImageUrls? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.CreateDesignRequestSlideImageUrls), + jsonSerializerContext) as global::Presenton.CreateDesignRequestSlideImageUrls; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.CreateDesignRequestSlideImageUrls? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.CreateDesignRequestSlideImageUrls), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.CreateDesignRequestSlideImageUrls; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestSlideImageUrls.g.cs b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestSlideImageUrls.g.cs new file mode 100644 index 0000000..5a8dceb --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.CreateDesignRequestSlideImageUrls.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class CreateDesignRequestSlideImageUrls + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelCompanyName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelCompanyName.Json.g.cs deleted file mode 100644 index 61cb400..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelCompanyName.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class DefaultPresentationThemeModelCompanyName - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.DefaultPresentationThemeModelCompanyName? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.DefaultPresentationThemeModelCompanyName), - jsonSerializerContext) as global::Presenton.DefaultPresentationThemeModelCompanyName; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.DefaultPresentationThemeModelCompanyName? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.DefaultPresentationThemeModelCompanyName), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeModelCompanyName; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelCompanyName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelCompanyName.g.cs deleted file mode 100644 index 7719ec7..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelCompanyName.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class DefaultPresentationThemeModelCompanyName - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogoUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogoUrl.g.cs deleted file mode 100644 index 6b93b4e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogoUrl.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class DefaultPresentationThemeModelLogoUrl - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModel.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponse.Json.g.cs similarity index 90% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModel.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponse.Json.g.cs index 44e92cc..2ed423d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModel.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DefaultPresentationThemeModel + public sealed partial class DefaultPresentationThemeResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DefaultPresentationThemeModel? FromJson( + public static global::Presenton.DefaultPresentationThemeResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DefaultPresentationThemeModel), - jsonSerializerContext) as global::Presenton.DefaultPresentationThemeModel; + typeof(global::Presenton.DefaultPresentationThemeResponse), + jsonSerializerContext) as global::Presenton.DefaultPresentationThemeResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DefaultPresentationThemeModel? FromJson( + public static global::Presenton.DefaultPresentationThemeResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DefaultPresentationThemeModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeModel; + typeof(global::Presenton.DefaultPresentationThemeResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModel.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponse.g.cs similarity index 91% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModel.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponse.g.cs index bfdf9c4..fdd226d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModel.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponse.g.cs @@ -6,15 +6,8 @@ namespace Presenton /// /// /// - public sealed partial class DefaultPresentationThemeModel + public sealed partial class DefaultPresentationThemeResponse { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - /// /// /// @@ -66,7 +59,14 @@ public sealed partial class DefaultPresentationThemeModel /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required object Data { get; set; } + public required global::Presenton.PresentionThemeDataOutput Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -75,32 +75,31 @@ public sealed partial class DefaultPresentationThemeModel public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// /// /// /// /// /// + /// /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DefaultPresentationThemeModel( - string id, + public DefaultPresentationThemeResponse( string name, string description, global::System.DateTime createdAt, global::System.DateTime updatedAt, - object data, + global::Presenton.PresentionThemeDataOutput data, + string id, global::System.Guid? logo, string? logoUrl, string? companyName) { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); this.Logo = logo; @@ -109,12 +108,13 @@ public DefaultPresentationThemeModel( this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DefaultPresentationThemeModel() + public DefaultPresentationThemeResponse() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogo.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseCompanyName.Json.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogo.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseCompanyName.Json.g.cs index 290aad3..3712cc6 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogo.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseCompanyName.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DefaultPresentationThemeModelLogo + public sealed partial class DefaultPresentationThemeResponseCompanyName { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DefaultPresentationThemeModelLogo? FromJson( + public static global::Presenton.DefaultPresentationThemeResponseCompanyName? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DefaultPresentationThemeModelLogo), - jsonSerializerContext) as global::Presenton.DefaultPresentationThemeModelLogo; + typeof(global::Presenton.DefaultPresentationThemeResponseCompanyName), + jsonSerializerContext) as global::Presenton.DefaultPresentationThemeResponseCompanyName; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DefaultPresentationThemeModelLogo? FromJson( + public static global::Presenton.DefaultPresentationThemeResponseCompanyName? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DefaultPresentationThemeModelLogo), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeModelLogo; + typeof(global::Presenton.DefaultPresentationThemeResponseCompanyName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeResponseCompanyName; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseCompanyName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseCompanyName.g.cs new file mode 100644 index 0000000..e43e448 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseCompanyName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class DefaultPresentationThemeResponseCompanyName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogoUrl.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogo.Json.g.cs similarity index 90% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogoUrl.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogo.Json.g.cs index 5febd52..d6413c4 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogoUrl.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogo.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DefaultPresentationThemeModelLogoUrl + public sealed partial class DefaultPresentationThemeResponseLogo { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DefaultPresentationThemeModelLogoUrl? FromJson( + public static global::Presenton.DefaultPresentationThemeResponseLogo? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DefaultPresentationThemeModelLogoUrl), - jsonSerializerContext) as global::Presenton.DefaultPresentationThemeModelLogoUrl; + typeof(global::Presenton.DefaultPresentationThemeResponseLogo), + jsonSerializerContext) as global::Presenton.DefaultPresentationThemeResponseLogo; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DefaultPresentationThemeModelLogoUrl? FromJson( + public static global::Presenton.DefaultPresentationThemeResponseLogo? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DefaultPresentationThemeModelLogoUrl), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeModelLogoUrl; + typeof(global::Presenton.DefaultPresentationThemeResponseLogo), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeResponseLogo; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogo.g.cs new file mode 100644 index 0000000..164b9ce --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogo.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class DefaultPresentationThemeResponseLogo + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelData.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogoUrl.Json.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelData.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogoUrl.Json.g.cs index 1a6951a..f4100bf 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelData.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogoUrl.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DefaultPresentationThemeModelData + public sealed partial class DefaultPresentationThemeResponseLogoUrl { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DefaultPresentationThemeModelData? FromJson( + public static global::Presenton.DefaultPresentationThemeResponseLogoUrl? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DefaultPresentationThemeModelData), - jsonSerializerContext) as global::Presenton.DefaultPresentationThemeModelData; + typeof(global::Presenton.DefaultPresentationThemeResponseLogoUrl), + jsonSerializerContext) as global::Presenton.DefaultPresentationThemeResponseLogoUrl; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DefaultPresentationThemeModelData? FromJson( + public static global::Presenton.DefaultPresentationThemeResponseLogoUrl? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DefaultPresentationThemeModelData), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeModelData; + typeof(global::Presenton.DefaultPresentationThemeResponseLogoUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DefaultPresentationThemeResponseLogoUrl; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogoUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogoUrl.g.cs new file mode 100644 index 0000000..3b9bb3d --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeResponseLogoUrl.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class DefaultPresentationThemeResponseLogoUrl + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfo.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DesignExportInfo.Json.g.cs index 535032a..3176e28 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfo.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlEditResponse + public sealed partial class DesignExportInfo { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlEditResponse? FromJson( + public static global::Presenton.DesignExportInfo? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlEditResponse), - jsonSerializerContext) as global::Presenton.HtmlEditResponse; + typeof(global::Presenton.DesignExportInfo), + jsonSerializerContext) as global::Presenton.DesignExportInfo; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlEditResponse? FromJson( + public static global::Presenton.DesignExportInfo? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlEditResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlEditResponse; + typeof(global::Presenton.DesignExportInfo), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignExportInfo; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfo.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfo.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DesignExportInfo.g.cs index 333b9f3..a69752d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfo.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfo.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class DesignSystemExportInfo + public sealed partial class DesignExportInfo { /// /// @@ -33,7 +33,7 @@ public sealed partial class DesignSystemExportInfo public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -41,7 +41,7 @@ public sealed partial class DesignSystemExportInfo #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DesignSystemExportInfo( + public DesignExportInfo( global::System.Collections.Generic.IList? embeddedEotFonts, global::System.Collections.Generic.IList? embeddedFontsInfo, string? themeArchiveUrl) @@ -52,9 +52,9 @@ public DesignSystemExportInfo( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DesignSystemExportInfo() + public DesignExportInfo() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedEotFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedEotFonts.Json.g.cs new file mode 100644 index 0000000..00620f3 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedEotFonts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class DesignExportInfoEmbeddedEotFonts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.DesignExportInfoEmbeddedEotFonts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.DesignExportInfoEmbeddedEotFonts), + jsonSerializerContext) as global::Presenton.DesignExportInfoEmbeddedEotFonts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.DesignExportInfoEmbeddedEotFonts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.DesignExportInfoEmbeddedEotFonts), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignExportInfoEmbeddedEotFonts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDescription.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedEotFonts.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDescription.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedEotFonts.g.cs index aca8a96..ca4d268 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDescription.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedEotFonts.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class TemplateCreateRequestDescription + public sealed partial class DesignExportInfoEmbeddedEotFonts { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfo.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfo.Json.g.cs new file mode 100644 index 0000000..7667d4b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfo.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class DesignExportInfoEmbeddedFontsInfo + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.DesignExportInfoEmbeddedFontsInfo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.DesignExportInfoEmbeddedFontsInfo), + jsonSerializerContext) as global::Presenton.DesignExportInfoEmbeddedFontsInfo; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.DesignExportInfoEmbeddedFontsInfo? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.DesignExportInfoEmbeddedFontsInfo), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignExportInfoEmbeddedFontsInfo; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfo.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogo.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfo.g.cs index e1710e4..5c182be 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DefaultPresentationThemeModelLogo.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfo.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class DefaultPresentationThemeModelLogo + public sealed partial class DesignExportInfoEmbeddedFontsInfo { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedEotFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfoVariant1Item.Json.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedEotFonts.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfoVariant1Item.Json.g.cs index 4e8f2e2..46fd2cf 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedEotFonts.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfoVariant1Item.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DesignSystemExportInfoEmbeddedEotFonts + public sealed partial class DesignExportInfoEmbeddedFontsInfoVariant1Item { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DesignSystemExportInfoEmbeddedEotFonts? FromJson( + public static global::Presenton.DesignExportInfoEmbeddedFontsInfoVariant1Item? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DesignSystemExportInfoEmbeddedEotFonts), - jsonSerializerContext) as global::Presenton.DesignSystemExportInfoEmbeddedEotFonts; + typeof(global::Presenton.DesignExportInfoEmbeddedFontsInfoVariant1Item), + jsonSerializerContext) as global::Presenton.DesignExportInfoEmbeddedFontsInfoVariant1Item; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DesignSystemExportInfoEmbeddedEotFonts? FromJson( + public static global::Presenton.DesignExportInfoEmbeddedFontsInfoVariant1Item? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DesignSystemExportInfoEmbeddedEotFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignSystemExportInfoEmbeddedEotFonts; + typeof(global::Presenton.DesignExportInfoEmbeddedFontsInfoVariant1Item), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignExportInfoEmbeddedFontsInfoVariant1Item; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfoVariant1Item.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfoVariant1Item.g.cs new file mode 100644 index 0000000..fda17fb --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoEmbeddedFontsInfoVariant1Item.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class DesignExportInfoEmbeddedFontsInfoVariant1Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoThemeArchiveUrl.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoThemeArchiveUrl.Json.g.cs index d21b5eb..be3ca37 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoThemeArchiveUrl.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideToHtmlRequest + public sealed partial class DesignExportInfoThemeArchiveUrl { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideToHtmlRequest? FromJson( + public static global::Presenton.DesignExportInfoThemeArchiveUrl? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideToHtmlRequest), - jsonSerializerContext) as global::Presenton.SlideToHtmlRequest; + typeof(global::Presenton.DesignExportInfoThemeArchiveUrl), + jsonSerializerContext) as global::Presenton.DesignExportInfoThemeArchiveUrl; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideToHtmlRequest? FromJson( + public static global::Presenton.DesignExportInfoThemeArchiveUrl? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideToHtmlRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToHtmlRequest; + typeof(global::Presenton.DesignExportInfoThemeArchiveUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignExportInfoThemeArchiveUrl; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoThemeArchiveUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoThemeArchiveUrl.g.cs new file mode 100644 index 0000000..e675a97 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.DesignExportInfoThemeArchiveUrl.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class DesignExportInfoThemeArchiveUrl + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedEotFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedEotFonts.g.cs deleted file mode 100644 index a1b319f..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedEotFonts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class DesignSystemExportInfoEmbeddedEotFonts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfo.g.cs deleted file mode 100644 index d4df4a4..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfo.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class DesignSystemExportInfoEmbeddedFontsInfo - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item.Json.g.cs deleted file mode 100644 index e82b8c9..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class DesignSystemExportInfoEmbeddedFontsInfoVariant1Item - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item), - jsonSerializerContext) as global::Presenton.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item.g.cs deleted file mode 100644 index 8c49805..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoEmbeddedFontsInfoVariant1Item.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class DesignSystemExportInfoEmbeddedFontsInfoVariant1Item - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoThemeArchiveUrl.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoThemeArchiveUrl.Json.g.cs deleted file mode 100644 index d97a3a2..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoThemeArchiveUrl.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class DesignSystemExportInfoThemeArchiveUrl - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.DesignSystemExportInfoThemeArchiveUrl? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.DesignSystemExportInfoThemeArchiveUrl), - jsonSerializerContext) as global::Presenton.DesignSystemExportInfoThemeArchiveUrl; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.DesignSystemExportInfoThemeArchiveUrl? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.DesignSystemExportInfoThemeArchiveUrl), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignSystemExportInfoThemeArchiveUrl; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoThemeArchiveUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoThemeArchiveUrl.g.cs deleted file mode 100644 index 8e027c5..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfoThemeArchiveUrl.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class DesignSystemExportInfoThemeArchiveUrl - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse.Json.g.cs new file mode 100644 index 0000000..3706274 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse), + jsonSerializerContext) as global::Presenton.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse.g.cs index 5c7f7f1..9842959 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class BodyInitHtmlEditApiV1PptHtmlEditInitPostAdditionalImages + public sealed partial class EditChatMessageStreamApiV3ChatMessageEditStreamPostResponse { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceRequest.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceRequest.Json.g.cs index 021bd02..915ae6d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GetLayoutsResponseTemplate + public sealed partial class EditDesignReferenceRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GetLayoutsResponseTemplate? FromJson( + public static global::Presenton.EditDesignReferenceRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GetLayoutsResponseTemplate), - jsonSerializerContext) as global::Presenton.GetLayoutsResponseTemplate; + typeof(global::Presenton.EditDesignReferenceRequest), + jsonSerializerContext) as global::Presenton.EditDesignReferenceRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GetLayoutsResponseTemplate? FromJson( + public static global::Presenton.EditDesignReferenceRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GetLayoutsResponseTemplate), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetLayoutsResponseTemplate; + typeof(global::Presenton.EditDesignReferenceRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.EditDesignReferenceRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceRequest.g.cs similarity index 68% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceRequest.g.cs index d7cc8ec..c9975f8 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceRequest.g.cs @@ -6,21 +6,21 @@ namespace Presenton /// /// /// - public sealed partial class SlideToHtmlResponse + public sealed partial class EditDesignReferenceRequest { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("html")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required string Html { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("html")] + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Html { get; set; } + public required string Prompt { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class SlideToHtmlResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SlideToHtmlResponse( - bool success, - string html) + public EditDesignReferenceRequest( + string html, + string prompt) { - this.Success = success; this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SlideToHtmlResponse() + public EditDesignReferenceRequest() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceResponse.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceResponse.Json.g.cs index 95610db..fb448c1 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class ExtractDesignSystemResponse + public sealed partial class EditDesignReferenceResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.ExtractDesignSystemResponse? FromJson( + public static global::Presenton.EditDesignReferenceResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.ExtractDesignSystemResponse), - jsonSerializerContext) as global::Presenton.ExtractDesignSystemResponse; + typeof(global::Presenton.EditDesignReferenceResponse), + jsonSerializerContext) as global::Presenton.EditDesignReferenceResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.ExtractDesignSystemResponse? FromJson( + public static global::Presenton.EditDesignReferenceResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.ExtractDesignSystemResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ExtractDesignSystemResponse; + typeof(global::Presenton.EditDesignReferenceResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.EditDesignReferenceResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceResponse.g.cs similarity index 65% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceResponse.g.cs index cbe364b..71612c1 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceResponse.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class HtmlToReactRequest + public sealed partial class EditDesignReferenceResponse { /// /// @@ -18,8 +18,9 @@ public sealed partial class HtmlToReactRequest /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public string? Image { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("structure")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Structure { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,25 +29,25 @@ public sealed partial class HtmlToReactRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public HtmlToReactRequest( + public EditDesignReferenceResponse( string html, - string? image) + string structure) { this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); - this.Image = image; + this.Structure = structure ?? throw new global::System.ArgumentNullException(nameof(structure)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HtmlToReactRequest() + public EditDesignReferenceResponse() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionRequest.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionRequest.Json.g.cs index 305226e..7648b3b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class TemplateCreateRequestDesignSysetm + public sealed partial class EditDesignReferenceSectionRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.TemplateCreateRequestDesignSysetm? FromJson( + public static global::Presenton.EditDesignReferenceSectionRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.TemplateCreateRequestDesignSysetm), - jsonSerializerContext) as global::Presenton.TemplateCreateRequestDesignSysetm; + typeof(global::Presenton.EditDesignReferenceSectionRequest), + jsonSerializerContext) as global::Presenton.EditDesignReferenceSectionRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.TemplateCreateRequestDesignSysetm? FromJson( + public static global::Presenton.EditDesignReferenceSectionRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.TemplateCreateRequestDesignSysetm), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateRequestDesignSysetm; + typeof(global::Presenton.EditDesignReferenceSectionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.EditDesignReferenceSectionRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PdfSlidesResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionRequest.g.cs similarity index 54% rename from src/libs/Presenton/Generated/Presenton.Models.PdfSlidesResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionRequest.g.cs index 549e943..98c67f6 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PdfSlidesResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionRequest.g.cs @@ -6,28 +6,28 @@ namespace Presenton /// /// /// - public sealed partial class PdfSlidesResponse + public sealed partial class EditDesignReferenceSectionRequest { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("html")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required string Html { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("slides")] + [global::System.Text.Json.Serialization.JsonPropertyName("section")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Slides { get; set; } + public required string Section { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_slides")] + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalSlides { get; set; } + public required string Prompt { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,28 +36,28 @@ public sealed partial class PdfSlidesResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PdfSlidesResponse( - bool success, - global::System.Collections.Generic.IList slides, - int totalSlides) + public EditDesignReferenceSectionRequest( + string html, + string section, + string prompt) { - this.Success = success; - this.Slides = slides ?? throw new global::System.ArgumentNullException(nameof(slides)); - this.TotalSlides = totalSlides; + this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); + this.Section = section ?? throw new global::System.ArgumentNullException(nameof(section)); + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PdfSlidesResponse() + public EditDesignReferenceSectionRequest() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionResponse.Json.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm2.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionResponse.Json.g.cs index 3b6abe3..6a8c5a1 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm2.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class TemplateCreateRequestDesignSysetm2 + public sealed partial class EditDesignReferenceSectionResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.TemplateCreateRequestDesignSysetm2? FromJson( + public static global::Presenton.EditDesignReferenceSectionResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.TemplateCreateRequestDesignSysetm2), - jsonSerializerContext) as global::Presenton.TemplateCreateRequestDesignSysetm2; + typeof(global::Presenton.EditDesignReferenceSectionResponse), + jsonSerializerContext) as global::Presenton.EditDesignReferenceSectionResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.TemplateCreateRequestDesignSysetm2? FromJson( + public static global::Presenton.EditDesignReferenceSectionResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.TemplateCreateRequestDesignSysetm2), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateRequestDesignSysetm2; + typeof(global::Presenton.EditDesignReferenceSectionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.EditDesignReferenceSectionResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionResponse.g.cs new file mode 100644 index 0000000..9d41d7d --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.EditDesignReferenceSectionResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class EditDesignReferenceSectionResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("html")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Html { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("structure")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Structure { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public EditDesignReferenceSectionResponse( + string html, + string structure) + { + this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); + this.Structure = structure ?? throw new global::System.ArgumentNullException(nameof(structure)); + } + + /// + /// Initializes a new instance of the class. + /// + public EditDesignReferenceSectionResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ErrorResponse.g.cs deleted file mode 100644 index f02f488..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponse.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class ErrorResponse - { - /// - /// Default Value: false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("detail")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Detail { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error_code")] - public string? ErrorCode { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Default Value: false - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ErrorResponse( - string detail, - bool? success, - string? errorCode) - { - this.Success = success; - this.Detail = detail ?? throw new global::System.ArgumentNullException(nameof(detail)); - this.ErrorCode = errorCode; - } - - /// - /// Initializes a new instance of the class. - /// - public ErrorResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponseDesignSystem.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponseDesignSystem.Json.g.cs deleted file mode 100644 index 76972c8..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponseDesignSystem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class ExtractDesignSystemResponseDesignSystem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.ExtractDesignSystemResponseDesignSystem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.ExtractDesignSystemResponseDesignSystem), - jsonSerializerContext) as global::Presenton.ExtractDesignSystemResponseDesignSystem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.ExtractDesignSystemResponseDesignSystem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.ExtractDesignSystemResponseDesignSystem), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ExtractDesignSystemResponseDesignSystem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponseDesignSystem.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponseDesignSystem.g.cs deleted file mode 100644 index 6feca3e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponseDesignSystem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class ExtractDesignSystemResponseDesignSystem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResult.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResult.g.cs deleted file mode 100644 index 5008cae..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResult.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class FontAnalysisResult - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("internally_supported_fonts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> InternallySupportedFonts { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("not_supported_fonts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList NotSupportedFonts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FontAnalysisResult( - global::System.Collections.Generic.IList> internallySupportedFonts, - global::System.Collections.Generic.IList notSupportedFonts) - { - this.InternallySupportedFonts = internallySupportedFonts ?? throw new global::System.ArgumentNullException(nameof(internallySupportedFonts)); - this.NotSupportedFonts = notSupportedFonts ?? throw new global::System.ArgumentNullException(nameof(notSupportedFonts)); - } - - /// - /// Initializes a new instance of the class. - /// - public FontAnalysisResult() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResultInternallySupportedFont.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResultInternallySupportedFont.Json.g.cs deleted file mode 100644 index b91255a..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResultInternallySupportedFont.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class FontAnalysisResultInternallySupportedFont - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.FontAnalysisResultInternallySupportedFont? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.FontAnalysisResultInternallySupportedFont), - jsonSerializerContext) as global::Presenton.FontAnalysisResultInternallySupportedFont; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.FontAnalysisResultInternallySupportedFont? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.FontAnalysisResultInternallySupportedFont), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.FontAnalysisResultInternallySupportedFont; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResultInternallySupportedFont.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResultInternallySupportedFont.g.cs deleted file mode 100644 index ef8bbad..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResultInternallySupportedFont.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class FontAnalysisResultInternallySupportedFont - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.FontInfo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfo.g.cs index f8c6f93..95b33d1 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.FontInfo.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfo.g.cs @@ -21,6 +21,30 @@ public sealed partial class FontInfo [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("original_name")] + public string? OriginalName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("family_name")] + public string? FamilyName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("variant")] + public string? Variant { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("variants")] + public global::System.Collections.Generic.IList? Variants { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -32,15 +56,27 @@ public sealed partial class FontInfo /// /// /// + /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FontInfo( string name, - string? url) + string? url, + string? originalName, + string? familyName, + string? variant, + global::System.Collections.Generic.IList? variants) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Url = url; + this.OriginalName = originalName; + this.FamilyName = familyName; + this.Variant = variant; + this.Variants = variants; } /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResult.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoFamilyName.Json.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResult.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoFamilyName.Json.g.cs index d56bcea..734332b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.FontAnalysisResult.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoFamilyName.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class FontAnalysisResult + public sealed partial class FontInfoFamilyName { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.FontAnalysisResult? FromJson( + public static global::Presenton.FontInfoFamilyName? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.FontAnalysisResult), - jsonSerializerContext) as global::Presenton.FontAnalysisResult; + typeof(global::Presenton.FontInfoFamilyName), + jsonSerializerContext) as global::Presenton.FontInfoFamilyName; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.FontAnalysisResult? FromJson( + public static global::Presenton.FontInfoFamilyName? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.FontAnalysisResult), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.FontAnalysisResult; + typeof(global::Presenton.FontInfoFamilyName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.FontInfoFamilyName; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponseErrorCode.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoFamilyName.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.ErrorResponseErrorCode.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoFamilyName.g.cs index e86ae96..3f43801 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponseErrorCode.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoFamilyName.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class ErrorResponseErrorCode + public sealed partial class FontInfoFamilyName { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoOriginalName.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoOriginalName.Json.g.cs index 497dc01..b0e6ad5 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoOriginalName.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideToReactResponse + public sealed partial class FontInfoOriginalName { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideToReactResponse? FromJson( + public static global::Presenton.FontInfoOriginalName? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideToReactResponse), - jsonSerializerContext) as global::Presenton.SlideToReactResponse; + typeof(global::Presenton.FontInfoOriginalName), + jsonSerializerContext) as global::Presenton.FontInfoOriginalName; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideToReactResponse? FromJson( + public static global::Presenton.FontInfoOriginalName? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideToReactResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToReactResponse; + typeof(global::Presenton.FontInfoOriginalName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.FontInfoOriginalName; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoOriginalName.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseFonts.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoOriginalName.g.cs index dec0619..abc45a5 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseFonts.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoOriginalName.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class GetLayoutsResponseFonts + public sealed partial class FontInfoOriginalName { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.LayoutDataFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariant.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.LayoutDataFonts.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoVariant.Json.g.cs index 331af47..62c05f9 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.LayoutDataFonts.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariant.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class LayoutDataFonts + public sealed partial class FontInfoVariant { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.LayoutDataFonts? FromJson( + public static global::Presenton.FontInfoVariant? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.LayoutDataFonts), - jsonSerializerContext) as global::Presenton.LayoutDataFonts; + typeof(global::Presenton.FontInfoVariant), + jsonSerializerContext) as global::Presenton.FontInfoVariant; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.LayoutDataFonts? FromJson( + public static global::Presenton.FontInfoVariant? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.LayoutDataFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.LayoutDataFonts; + typeof(global::Presenton.FontInfoVariant), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.FontInfoVariant; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.LayoutDataFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariant.g.cs similarity index 90% rename from src/libs/Presenton/Generated/Presenton.Models.LayoutDataFonts.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoVariant.g.cs index 90dd040..84f9724 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.LayoutDataFonts.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariant.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class LayoutDataFonts + public sealed partial class FontInfoVariant { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariants.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.ErrorResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoVariants.Json.g.cs index 6083c2c..1a8427d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ErrorResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariants.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class ErrorResponse + public sealed partial class FontInfoVariants { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.ErrorResponse? FromJson( + public static global::Presenton.FontInfoVariants? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.ErrorResponse), - jsonSerializerContext) as global::Presenton.ErrorResponse; + typeof(global::Presenton.FontInfoVariants), + jsonSerializerContext) as global::Presenton.FontInfoVariants; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.ErrorResponse? FromJson( + public static global::Presenton.FontInfoVariants? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.ErrorResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ErrorResponse; + typeof(global::Presenton.FontInfoVariants), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.FontInfoVariants; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariants.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponseMessage.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.FontInfoVariants.g.cs index aecab98..822c9a3 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponseMessage.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.FontInfoVariants.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class HtmlEditResponseMessage + public sealed partial class FontInfoVariants { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestSchema.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestSchema.Json.g.cs deleted file mode 100644 index 0292d5e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestSchema.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class GenerateContentForSchemaRequestSchema - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.GenerateContentForSchemaRequestSchema? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.GenerateContentForSchemaRequestSchema), - jsonSerializerContext) as global::Presenton.GenerateContentForSchemaRequestSchema; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.GenerateContentForSchemaRequestSchema? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.GenerateContentForSchemaRequestSchema), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GenerateContentForSchemaRequestSchema; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestSchema.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestSchema.g.cs deleted file mode 100644 index c4577ee..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequestSchema.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class GenerateContentForSchemaRequestSchema - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequest.g.cs index a691003..f830539 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequest.g.cs @@ -26,6 +26,12 @@ public sealed partial class GenerateOutlinesRequest [global::System.Text.Json.Serialization.JsonPropertyName("n_slides")] public int? NSlides { get; set; } + /// + /// Optional design ID to use for outline generation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("design")] + public global::System.Guid? Design { get; set; } + /// /// The language for the presentation /// @@ -92,6 +98,9 @@ public sealed partial class GenerateOutlinesRequest /// /// The number of slides to generate /// + /// + /// Optional design ID to use for outline generation + /// /// /// The language for the presentation /// @@ -124,6 +133,7 @@ public GenerateOutlinesRequest( string? content, global::System.Collections.Generic.IList? files, int? nSlides, + global::System.Guid? design, string? language, global::Presenton.Tone? tone, global::Presenton.Verbosity? verbosity, @@ -135,6 +145,7 @@ public GenerateOutlinesRequest( this.Content = content; this.Files = files; this.NSlides = nSlides; + this.Design = design; this.Language = language; this.Tone = tone; this.Verbosity = verbosity; diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequestDesign.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequestDesign.Json.g.cs index 974611e..b97e61b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateContentForSchemaRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequestDesign.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GenerateContentForSchemaRequest + public sealed partial class GenerateOutlinesRequestDesign { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GenerateContentForSchemaRequest? FromJson( + public static global::Presenton.GenerateOutlinesRequestDesign? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GenerateContentForSchemaRequest), - jsonSerializerContext) as global::Presenton.GenerateContentForSchemaRequest; + typeof(global::Presenton.GenerateOutlinesRequestDesign), + jsonSerializerContext) as global::Presenton.GenerateOutlinesRequestDesign; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GenerateContentForSchemaRequest? FromJson( + public static global::Presenton.GenerateOutlinesRequestDesign? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GenerateContentForSchemaRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GenerateContentForSchemaRequest; + typeof(global::Presenton.GenerateOutlinesRequestDesign), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GenerateOutlinesRequestDesign; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePostData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequestDesign.g.cs similarity index 79% rename from src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePostData.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequestDesign.g.cs index 8a812e5..befb026 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.BodyCreateThemeApiV1PptThemesCreatePostData.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GenerateOutlinesRequestDesign.g.cs @@ -4,9 +4,9 @@ namespace Presenton { /// - /// Default Value: {} + /// Optional design ID to use for outline generation /// - public sealed partial class BodyCreateThemeApiV1PptThemesCreatePostData + public sealed partial class GenerateOutlinesRequestDesign { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV2.g.cs index e759f13..250aa1f 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV2.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV2.g.cs @@ -55,7 +55,7 @@ public sealed partial class GeneratePresentationRequestV2 public global::Presenton.ContentGenerationMode? ContentGeneration { get; set; } /// - /// Smart design to use for the presentation + /// Design V2 id to use for the smart presentation /// [global::System.Text.Json.Serialization.JsonPropertyName("smart_design")] [global::System.Text.Json.Serialization.JsonRequired] @@ -141,7 +141,7 @@ public sealed partial class GeneratePresentationRequestV2 /// Initializes a new instance of the class. /// /// - /// Smart design to use for the presentation + /// Design V2 id to use for the smart presentation /// /// /// The content for generating the presentation diff --git a/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3.g.cs index e23d201..23aff5a 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3.g.cs @@ -95,7 +95,7 @@ public sealed partial class GeneratePresentationRequestV3 public string? StandardTemplate { get; set; } /// - /// Smart design to use for the presentation + /// Design V2 id to use for the smart presentation /// [global::System.Text.Json.Serialization.JsonPropertyName("smart_design")] public string? SmartDesign { get; set; } @@ -196,7 +196,7 @@ public sealed partial class GeneratePresentationRequestV3 /// 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.Models.GeneratePresentationRequestV3SmartDesign.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3SmartDesign.g.cs index 2acbde9..f550220 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3SmartDesign.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GeneratePresentationRequestV3SmartDesign.g.cs @@ -4,7 +4,7 @@ namespace Presenton { /// - /// Smart design to use for the presentation + /// Design V2 id to use for the smart presentation /// public sealed partial class GeneratePresentationRequestV3SmartDesign { diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequest.g.cs index 6c6025e..2b94d5a 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequest.g.cs @@ -22,12 +22,6 @@ public sealed partial class GenerateSlideRequest [global::System.Text.Json.Serialization.JsonRequired] public required string Prompt { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("qualitativechart")] - public global::Presenton.QualitativeChart? Qualitativechart { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,18 +33,15 @@ public sealed partial class GenerateSlideRequest ///
/// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateSlideRequest( global::System.Guid presentationId, - string prompt, - global::Presenton.QualitativeChart? qualitativechart) + string prompt) { this.PresentationId = presentationId; this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.Qualitativechart = qualitativechart; } /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequestQualitativechart.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequestQualitativechart.g.cs deleted file mode 100644 index 6a400e9..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequestQualitativechart.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class GenerateSlideRequestQualitativechart - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetChatHistoryApiV3ChatHistoryGetPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetChatHistoryApiV3ChatHistoryGetPresentationType.g.cs new file mode 100644 index 0000000..48b790a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.GetChatHistoryApiV3ChatHistoryGetPresentationType.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// Presentation type
+ /// Default Value: standard + ///
+ public enum GetChatHistoryApiV3ChatHistoryGetPresentationType + { + /// + /// + /// + Smart, + /// + /// + /// + Standard, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetChatHistoryApiV3ChatHistoryGetPresentationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetChatHistoryApiV3ChatHistoryGetPresentationType value) + { + return value switch + { + GetChatHistoryApiV3ChatHistoryGetPresentationType.Smart => "smart", + GetChatHistoryApiV3ChatHistoryGetPresentationType.Standard => "standard", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetChatHistoryApiV3ChatHistoryGetPresentationType? ToEnum(string value) + { + return value switch + { + "smart" => GetChatHistoryApiV3ChatHistoryGetPresentationType.Smart, + "standard" => GetChatHistoryApiV3ChatHistoryGetPresentationType.Standard, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponse.g.cs deleted file mode 100644 index 980efc3..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponse.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class GetLayoutsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("layouts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Layouts { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("template")] - public object? Template { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.AnyOfJsonConverter, object, object>))] - public global::Presenton.AnyOf, object, object>? Fonts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetLayoutsResponse( - bool success, - global::System.Collections.Generic.IList layouts, - string? message, - object? template, - global::Presenton.AnyOf, object, object>? fonts) - { - this.Success = success; - this.Layouts = layouts ?? throw new global::System.ArgumentNullException(nameof(layouts)); - this.Message = message; - this.Template = template; - this.Fonts = fonts; - } - - /// - /// Initializes a new instance of the class. - /// - public GetLayoutsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseMessage.Json.g.cs deleted file mode 100644 index 6fa0544..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseMessage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class GetLayoutsResponseMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.GetLayoutsResponseMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.GetLayoutsResponseMessage), - jsonSerializerContext) as global::Presenton.GetLayoutsResponseMessage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.GetLayoutsResponseMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.GetLayoutsResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetLayoutsResponseMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate2.Json.g.cs deleted file mode 100644 index a81c952..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class GetLayoutsResponseTemplate2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.GetLayoutsResponseTemplate2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.GetLayoutsResponseTemplate2), - jsonSerializerContext) as global::Presenton.GetLayoutsResponseTemplate2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.GetLayoutsResponseTemplate2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.GetLayoutsResponseTemplate2), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetLayoutsResponseTemplate2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate2.g.cs deleted file mode 100644 index 98ffd1a..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponseTemplate2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class GetLayoutsResponseTemplate2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetMultipleTemplateLayoutsRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetMultipleTemplateLayoutsRequest.Json.g.cs new file mode 100644 index 0000000..39f7e9f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.GetMultipleTemplateLayoutsRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class GetMultipleTemplateLayoutsRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.GetMultipleTemplateLayoutsRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.GetMultipleTemplateLayoutsRequest), + jsonSerializerContext) as global::Presenton.GetMultipleTemplateLayoutsRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.GetMultipleTemplateLayoutsRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.GetMultipleTemplateLayoutsRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetMultipleTemplateLayoutsRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetMultipleTemplateLayoutsRequest.g.cs similarity index 59% rename from src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.GetMultipleTemplateLayoutsRequest.g.cs index 82d421c..03e8f20 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GetMultipleTemplateLayoutsRequest.g.cs @@ -6,14 +6,14 @@ namespace Presenton /// /// /// - public sealed partial class ExtractDesignSystemRequest + public sealed partial class GetMultipleTemplateLayoutsRequest { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("slides")] + [global::System.Text.Json.Serialization.JsonPropertyName("template_ids")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Slides { get; set; } + public required global::System.Collections.Generic.IList TemplateIds { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class ExtractDesignSystemRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ExtractDesignSystemRequest( - global::System.Collections.Generic.IList slides) + public GetMultipleTemplateLayoutsRequest( + global::System.Collections.Generic.IList templateIds) { - this.Slides = slides ?? throw new global::System.ArgumentNullException(nameof(slides)); + this.TemplateIds = templateIds ?? throw new global::System.ArgumentNullException(nameof(templateIds)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ExtractDesignSystemRequest() + public GetMultipleTemplateLayoutsRequest() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponse.g.cs deleted file mode 100644 index f193d26..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponse.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class GetPresentationSummaryResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presentations")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Presentations { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_presentations")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalPresentations { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_layouts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int TotalLayouts { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetPresentationSummaryResponse( - bool success, - global::System.Collections.Generic.IList presentations, - int totalPresentations, - int totalLayouts, - string? message) - { - this.Success = success; - this.Presentations = presentations ?? throw new global::System.ArgumentNullException(nameof(presentations)); - this.TotalPresentations = totalPresentations; - this.TotalLayouts = totalLayouts; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public GetPresentationSummaryResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponseMessage.Json.g.cs deleted file mode 100644 index accd2c3..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponseMessage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class GetPresentationSummaryResponseMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.GetPresentationSummaryResponseMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.GetPresentationSummaryResponseMessage), - jsonSerializerContext) as global::Presenton.GetPresentationSummaryResponseMessage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.GetPresentationSummaryResponseMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.GetPresentationSummaryResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetPresentationSummaryResponseMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponseMessage.g.cs deleted file mode 100644 index 02dc012..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.GetPresentationSummaryResponseMessage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class GetPresentationSummaryResponseMessage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse.Json.g.cs index 4dbbd81..e4c3bdf 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GetUploadedImagesV3ApiV3ImagesUploadedGetResponse + public sealed partial class GetUploadedImagesV1ApiV3ImagesUploadedGetResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse? FromJson( + public static global::Presenton.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse), - jsonSerializerContext) as global::Presenton.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse; + typeof(global::Presenton.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse), + jsonSerializerContext) as global::Presenton.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse? FromJson( + public static global::Presenton.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse; + typeof(global::Presenton.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse.g.cs index 2ec819a..c3e05cd 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV3ApiV3ImagesUploadedGetResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.GetUploadedImagesV1ApiV3ImagesUploadedGetResponse.g.cs @@ -6,7 +6,7 @@ namespace Presenton /// /// /// - public sealed partial class GetUploadedImagesV3ApiV3ImagesUploadedGetResponse + public sealed partial class GetUploadedImagesV1ApiV3ImagesUploadedGetResponse { /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2Detail.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2Detail.Json.g.cs index 466c814..1c9427c 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GetLayoutsResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2Detail.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GetLayoutsResponse + public sealed partial class HTMLDesignV2Detail { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GetLayoutsResponse? FromJson( + public static global::Presenton.HTMLDesignV2Detail? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GetLayoutsResponse), - jsonSerializerContext) as global::Presenton.GetLayoutsResponse; + typeof(global::Presenton.HTMLDesignV2Detail), + jsonSerializerContext) as global::Presenton.HTMLDesignV2Detail; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GetLayoutsResponse? FromJson( + public static global::Presenton.HTMLDesignV2Detail? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GetLayoutsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GetLayoutsResponse; + typeof(global::Presenton.HTMLDesignV2Detail), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2Detail; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2Detail.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2Detail.g.cs new file mode 100644 index 0000000..af1999f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2Detail.g.cs @@ -0,0 +1,130 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2Detail + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thumbnail_url")] + public string? ThumbnailUrl { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default")] + public bool? Default { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("design_info_id")] + public global::System.Guid? DesignInfoId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("design")] + public global::System.Collections.Generic.IList? Design { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chart_references")] + public object? ChartReferences { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] + public object? Fonts { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public HTMLDesignV2Detail( + global::System.Guid id, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string? name, + string? thumbnailUrl, + bool? @default, + global::System.Guid? designInfoId, + global::System.Collections.Generic.IList? design, + object? chartReferences, + object? fonts) + { + this.Id = id; + this.Name = name; + this.ThumbnailUrl = thumbnailUrl; + this.Default = @default; + this.DesignInfoId = designInfoId; + this.Design = design; + this.ChartReferences = chartReferences; + this.Fonts = fonts; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public HTMLDesignV2Detail() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences.Json.g.cs new file mode 100644 index 0000000..b5f5322 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class HTMLDesignV2DetailChartReferences + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.HTMLDesignV2DetailChartReferences? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.HTMLDesignV2DetailChartReferences), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailChartReferences; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.HTMLDesignV2DetailChartReferences? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.HTMLDesignV2DetailChartReferences), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailChartReferences; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences.g.cs new file mode 100644 index 0000000..ac8c98e --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailChartReferences + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences2.Json.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem2.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences2.Json.g.cs index 53f57bb..9dee28a 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem2.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences2.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class TemplateCreateRequestDesignSystem2 + public sealed partial class HTMLDesignV2DetailChartReferences2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.TemplateCreateRequestDesignSystem2? FromJson( + public static global::Presenton.HTMLDesignV2DetailChartReferences2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.TemplateCreateRequestDesignSystem2), - jsonSerializerContext) as global::Presenton.TemplateCreateRequestDesignSystem2; + typeof(global::Presenton.HTMLDesignV2DetailChartReferences2), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailChartReferences2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.TemplateCreateRequestDesignSystem2? FromJson( + public static global::Presenton.HTMLDesignV2DetailChartReferences2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.TemplateCreateRequestDesignSystem2), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateRequestDesignSystem2; + typeof(global::Presenton.HTMLDesignV2DetailChartReferences2), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailChartReferences2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences2.g.cs new file mode 100644 index 0000000..34065a7 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailChartReferences2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailChartReferences2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesign.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesign.Json.g.cs new file mode 100644 index 0000000..1e065a2 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesign.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class HTMLDesignV2DetailDesign + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.HTMLDesignV2DetailDesign? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.HTMLDesignV2DetailDesign), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailDesign; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.HTMLDesignV2DetailDesign? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.HTMLDesignV2DetailDesign), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailDesign; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesign.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesign.g.cs new file mode 100644 index 0000000..f41420b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesign.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailDesign + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignInfoId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignInfoId.Json.g.cs new file mode 100644 index 0000000..c337f24 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignInfoId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class HTMLDesignV2DetailDesignInfoId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.HTMLDesignV2DetailDesignInfoId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.HTMLDesignV2DetailDesignInfoId), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailDesignInfoId; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.HTMLDesignV2DetailDesignInfoId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.HTMLDesignV2DetailDesignInfoId), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailDesignInfoId; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignInfoId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignInfoId.g.cs new file mode 100644 index 0000000..f7fcc6a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignInfoId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailDesignInfoId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequestQualitativechart.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignVariant1Item.Json.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequestQualitativechart.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignVariant1Item.Json.g.cs index d8ef331..e16e6f4 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.GenerateSlideRequestQualitativechart.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignVariant1Item.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class GenerateSlideRequestQualitativechart + public sealed partial class HTMLDesignV2DetailDesignVariant1Item { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.GenerateSlideRequestQualitativechart? FromJson( + public static global::Presenton.HTMLDesignV2DetailDesignVariant1Item? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.GenerateSlideRequestQualitativechart), - jsonSerializerContext) as global::Presenton.GenerateSlideRequestQualitativechart; + typeof(global::Presenton.HTMLDesignV2DetailDesignVariant1Item), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailDesignVariant1Item; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.GenerateSlideRequestQualitativechart? FromJson( + public static global::Presenton.HTMLDesignV2DetailDesignVariant1Item? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.GenerateSlideRequestQualitativechart), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.GenerateSlideRequestQualitativechart; + typeof(global::Presenton.HTMLDesignV2DetailDesignVariant1Item), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailDesignVariant1Item; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignVariant1Item.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignVariant1Item.g.cs new file mode 100644 index 0000000..d5301f0 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailDesignVariant1Item.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailDesignVariant1Item + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequestImage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequestImage.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts.Json.g.cs index d8785af..291d937 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequestImage.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlToReactRequestImage + public sealed partial class HTMLDesignV2DetailFonts { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlToReactRequestImage? FromJson( + public static global::Presenton.HTMLDesignV2DetailFonts? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlToReactRequestImage), - jsonSerializerContext) as global::Presenton.HtmlToReactRequestImage; + typeof(global::Presenton.HTMLDesignV2DetailFonts), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailFonts; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlToReactRequestImage? FromJson( + public static global::Presenton.HTMLDesignV2DetailFonts? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlToReactRequestImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlToReactRequestImage; + typeof(global::Presenton.HTMLDesignV2DetailFonts), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailFonts; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts.g.cs new file mode 100644 index 0000000..1581b1a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailFonts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts2.Json.g.cs new file mode 100644 index 0000000..076e4f2 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class HTMLDesignV2DetailFonts2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.HTMLDesignV2DetailFonts2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.HTMLDesignV2DetailFonts2), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailFonts2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.HTMLDesignV2DetailFonts2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.HTMLDesignV2DetailFonts2), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailFonts2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts2.g.cs new file mode 100644 index 0000000..41fcb3a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailFonts2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailFonts2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfo.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailName.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfo.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailName.Json.g.cs index 6658b0f..4816b24 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.DesignSystemExportInfo.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailName.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class DesignSystemExportInfo + public sealed partial class HTMLDesignV2DetailName { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.DesignSystemExportInfo? FromJson( + public static global::Presenton.HTMLDesignV2DetailName? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.DesignSystemExportInfo), - jsonSerializerContext) as global::Presenton.DesignSystemExportInfo; + typeof(global::Presenton.HTMLDesignV2DetailName), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailName; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.DesignSystemExportInfo? FromJson( + public static global::Presenton.HTMLDesignV2DetailName? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.DesignSystemExportInfo), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.DesignSystemExportInfo; + typeof(global::Presenton.HTMLDesignV2DetailName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailName; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailName.g.cs new file mode 100644 index 0000000..58439a3 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailThumbnailUrl.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailThumbnailUrl.Json.g.cs new file mode 100644 index 0000000..bac0fc5 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailThumbnailUrl.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class HTMLDesignV2DetailThumbnailUrl + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.HTMLDesignV2DetailThumbnailUrl? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.HTMLDesignV2DetailThumbnailUrl), + jsonSerializerContext) as global::Presenton.HTMLDesignV2DetailThumbnailUrl; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.HTMLDesignV2DetailThumbnailUrl? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.HTMLDesignV2DetailThumbnailUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HTMLDesignV2DetailThumbnailUrl; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailThumbnailUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailThumbnailUrl.g.cs new file mode 100644 index 0000000..85c397a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.HTMLDesignV2DetailThumbnailUrl.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class HTMLDesignV2DetailThumbnailUrl + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponseMessage.Json.g.cs deleted file mode 100644 index 456ec70..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponseMessage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class HtmlEditInitResponseMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.HtmlEditInitResponseMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.HtmlEditInitResponseMessage), - jsonSerializerContext) as global::Presenton.HtmlEditInitResponseMessage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.HtmlEditInitResponseMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.HtmlEditInitResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlEditInitResponseMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponseMessage.g.cs deleted file mode 100644 index b7cec88..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponseMessage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class HtmlEditInitResponseMessage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponse.g.cs deleted file mode 100644 index 98bb4b5..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponse.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class HtmlToReactResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("react_component")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ReactComponent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public HtmlToReactResponse( - bool success, - string reactComponent, - string? message) - { - this.Success = success; - this.ReactComponent = reactComponent ?? throw new global::System.ArgumentNullException(nameof(reactComponent)); - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public HtmlToReactResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponseMessage.g.cs deleted file mode 100644 index b5a1e80..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactResponseMessage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class HtmlToReactResponseMessage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.LayoutData.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.LayoutData.Json.g.cs deleted file mode 100644 index 6b51fbc..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.LayoutData.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class LayoutData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.LayoutData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.LayoutData), - jsonSerializerContext) as global::Presenton.LayoutData; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.LayoutData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.LayoutData), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.LayoutData; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.LayoutData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.LayoutData.g.cs deleted file mode 100644 index 3c12e42..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.LayoutData.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class LayoutData - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presentation")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Presentation { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("layout_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LayoutId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("layout_name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LayoutName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("layout_code")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LayoutCode { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Presenton.JsonConverters.AnyOfJsonConverter, object, object>))] - public global::Presenton.AnyOf, object, object>? Fonts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public LayoutData( - global::System.Guid presentation, - string layoutId, - string layoutName, - string layoutCode, - global::Presenton.AnyOf, object, object>? fonts) - { - this.Presentation = presentation; - this.LayoutId = layoutId ?? throw new global::System.ArgumentNullException(nameof(layoutId)); - this.LayoutName = layoutName ?? throw new global::System.ArgumentNullException(nameof(layoutName)); - this.LayoutCode = layoutCode ?? throw new global::System.ArgumentNullException(nameof(layoutCode)); - this.Fonts = fonts; - } - - /// - /// Initializes a new instance of the class. - /// - public LayoutData() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.ListChatConversationsApiV3ChatConversationsGetPresentationType.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ListChatConversationsApiV3ChatConversationsGetPresentationType.g.cs new file mode 100644 index 0000000..27a7540 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ListChatConversationsApiV3ChatConversationsGetPresentationType.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// Presentation type
+ /// Default Value: standard + ///
+ public enum ListChatConversationsApiV3ChatConversationsGetPresentationType + { + /// + /// + /// + Smart, + /// + /// + /// + Standard, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListChatConversationsApiV3ChatConversationsGetPresentationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListChatConversationsApiV3ChatConversationsGetPresentationType value) + { + return value switch + { + ListChatConversationsApiV3ChatConversationsGetPresentationType.Smart => "smart", + ListChatConversationsApiV3ChatConversationsGetPresentationType.Standard => "standard", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListChatConversationsApiV3ChatConversationsGetPresentationType? ToEnum(string value) + { + return value switch + { + "smart" => ListChatConversationsApiV3ChatConversationsGetPresentationType.Smart, + "standard" => ListChatConversationsApiV3ChatConversationsGetPresentationType.Standard, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideData.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PdfSlideData.Json.g.cs deleted file mode 100644 index d14cfa0..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideData.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class PdfSlideData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.PdfSlideData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.PdfSlideData), - jsonSerializerContext) as global::Presenton.PdfSlideData; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.PdfSlideData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.PdfSlideData), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PdfSlideData; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PdfSlideData.g.cs deleted file mode 100644 index 21799d1..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideData.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PdfSlideData - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("slide_number")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SlideNumber { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("screenshot_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ScreenshotUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("markdown_content")] - public string? MarkdownContent { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PdfSlideData( - int slideNumber, - string screenshotUrl, - string? markdownContent) - { - this.SlideNumber = slideNumber; - this.ScreenshotUrl = screenshotUrl ?? throw new global::System.ArgumentNullException(nameof(screenshotUrl)); - this.MarkdownContent = markdownContent; - } - - /// - /// Initializes a new instance of the class. - /// - public PdfSlideData() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideDataMarkdownContent.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PdfSlideDataMarkdownContent.Json.g.cs deleted file mode 100644 index d7ca9e3..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideDataMarkdownContent.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class PdfSlideDataMarkdownContent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.PdfSlideDataMarkdownContent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.PdfSlideDataMarkdownContent), - jsonSerializerContext) as global::Presenton.PdfSlideDataMarkdownContent; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.PdfSlideDataMarkdownContent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.PdfSlideDataMarkdownContent), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PdfSlideDataMarkdownContent; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideDataMarkdownContent.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PdfSlideDataMarkdownContent.g.cs deleted file mode 100644 index 6a48007..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PdfSlideDataMarkdownContent.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PdfSlideDataMarkdownContent - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PdfSlidesResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PdfSlidesResponse.Json.g.cs deleted file mode 100644 index 860f636..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PdfSlidesResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class PdfSlidesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.PdfSlidesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.PdfSlidesResponse), - jsonSerializerContext) as global::Presenton.PdfSlidesResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.PdfSlidesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.PdfSlidesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PdfSlidesResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PptxFontsResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PptxFontsResponse.Json.g.cs deleted file mode 100644 index 61cc2e8..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PptxFontsResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class PptxFontsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.PptxFontsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.PptxFontsResponse), - jsonSerializerContext) as global::Presenton.PptxFontsResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.PptxFontsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.PptxFontsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PptxFontsResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponseFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponseFonts.Json.g.cs deleted file mode 100644 index 5e35407..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponseFonts.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class PptxSlidesResponseFonts - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.PptxSlidesResponseFonts? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.PptxSlidesResponseFonts), - jsonSerializerContext) as global::Presenton.PptxSlidesResponseFonts; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.PptxSlidesResponseFonts? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.PptxSlidesResponseFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PptxSlidesResponseFonts; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponseFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponseFonts.g.cs deleted file mode 100644 index 8b0bb31..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PptxSlidesResponseFonts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PptxSlidesResponseFonts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummary.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationSummary.g.cs deleted file mode 100644 index d8c8c8a..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummary.g.cs +++ /dev/null @@ -1,73 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationSummary - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("presentation")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Presentation { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("layout_count")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int LayoutCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("last_updated_at")] - public global::System.DateTime? LastUpdatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("template")] - public object? Template { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PresentationSummary( - global::System.Guid presentation, - int layoutCount, - global::System.DateTime? lastUpdatedAt, - object? template) - { - this.Presentation = presentation; - this.LayoutCount = layoutCount; - this.LastUpdatedAt = lastUpdatedAt; - this.Template = template; - } - - /// - /// Initializes a new instance of the class. - /// - public PresentationSummary() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate.g.cs deleted file mode 100644 index 2c3ef8f..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationSummaryTemplate - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate2.g.cs deleted file mode 100644 index 7e090be..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationSummaryTemplate2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelCompanyName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelCompanyName.g.cs deleted file mode 100644 index 42a6d70..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelCompanyName.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationThemeModelCompanyName - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelData.g.cs deleted file mode 100644 index 3e743a2..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationThemeModelData - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogo.g.cs deleted file mode 100644 index cd4e6db..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogo.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationThemeModelLogo - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogoUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogoUrl.g.cs deleted file mode 100644 index d019df2..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogoUrl.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationThemeModelLogoUrl - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelUser.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelUser.Json.g.cs deleted file mode 100644 index 822b053..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelUser.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class PresentationThemeModelUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.PresentationThemeModelUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.PresentationThemeModelUser), - jsonSerializerContext) as global::Presenton.PresentationThemeModelUser; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.PresentationThemeModelUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.PresentationThemeModelUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeModelUser; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelUser.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelUser.g.cs deleted file mode 100644 index cf0c7fa..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelUser.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class PresentationThemeModelUser - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelData.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponse.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelData.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponse.Json.g.cs index 73ffd8a..8a4f948 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelData.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationThemeModelData + public sealed partial class PresentationThemeResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationThemeModelData? FromJson( + public static global::Presenton.PresentationThemeResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationThemeModelData), - jsonSerializerContext) as global::Presenton.PresentationThemeModelData; + typeof(global::Presenton.PresentationThemeResponse), + jsonSerializerContext) as global::Presenton.PresentationThemeResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationThemeModelData? FromJson( + public static global::Presenton.PresentationThemeResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationThemeModelData), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeModelData; + typeof(global::Presenton.PresentationThemeResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModel.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponse.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModel.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponse.g.cs index e72fabf..bf7e700 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModel.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponse.g.cs @@ -6,20 +6,8 @@ namespace Presenton /// /// /// - public sealed partial class PresentationThemeModel + public sealed partial class PresentationThemeResponse { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public global::System.Guid? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public global::System.Guid? User { get; set; } - /// /// /// @@ -71,7 +59,20 @@ public sealed partial class PresentationThemeModel /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required object Data { get; set; } + public required global::Presenton.PresentionThemeDataOutput Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user")] + public global::System.Guid? User { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -80,7 +81,7 @@ public sealed partial class PresentationThemeModel public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -88,27 +89,25 @@ public sealed partial class PresentationThemeModel /// /// /// - /// /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PresentationThemeModel( + public PresentationThemeResponse( string name, string description, global::System.DateTime createdAt, global::System.DateTime updatedAt, - object data, - global::System.Guid? id, - global::System.Guid? user, + global::Presenton.PresentionThemeDataOutput data, + global::System.Guid id, global::System.Guid? logo, string? logoUrl, - string? companyName) + string? companyName, + global::System.Guid? user) { - this.Id = id; - this.User = user; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); this.Logo = logo; @@ -117,12 +116,14 @@ public PresentationThemeModel( this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Id = id; + this.User = user; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PresentationThemeModel() + public PresentationThemeResponse() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseCompanyName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseCompanyName.Json.g.cs new file mode 100644 index 0000000..1b761f9 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseCompanyName.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class PresentationThemeResponseCompanyName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.PresentationThemeResponseCompanyName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.PresentationThemeResponseCompanyName), + jsonSerializerContext) as global::Presenton.PresentationThemeResponseCompanyName; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.PresentationThemeResponseCompanyName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.PresentationThemeResponseCompanyName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeResponseCompanyName; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseCompanyName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseCompanyName.g.cs new file mode 100644 index 0000000..fafcae9 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseCompanyName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentationThemeResponseCompanyName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogoUrl.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogo.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogoUrl.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogo.Json.g.cs index b4f2641..b5836bd 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogoUrl.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogo.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationThemeModelLogoUrl + public sealed partial class PresentationThemeResponseLogo { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationThemeModelLogoUrl? FromJson( + public static global::Presenton.PresentationThemeResponseLogo? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationThemeModelLogoUrl), - jsonSerializerContext) as global::Presenton.PresentationThemeModelLogoUrl; + typeof(global::Presenton.PresentationThemeResponseLogo), + jsonSerializerContext) as global::Presenton.PresentationThemeResponseLogo; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationThemeModelLogoUrl? FromJson( + public static global::Presenton.PresentationThemeResponseLogo? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationThemeModelLogoUrl), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeModelLogoUrl; + typeof(global::Presenton.PresentationThemeResponseLogo), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeResponseLogo; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogo.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogo.g.cs new file mode 100644 index 0000000..c72590a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogo.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentationThemeResponseLogo + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryLastUpdatedAt.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogoUrl.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryLastUpdatedAt.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogoUrl.Json.g.cs index 0c8a82d..bbcc3e0 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryLastUpdatedAt.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogoUrl.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationSummaryLastUpdatedAt + public sealed partial class PresentationThemeResponseLogoUrl { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationSummaryLastUpdatedAt? FromJson( + public static global::Presenton.PresentationThemeResponseLogoUrl? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationSummaryLastUpdatedAt), - jsonSerializerContext) as global::Presenton.PresentationSummaryLastUpdatedAt; + typeof(global::Presenton.PresentationThemeResponseLogoUrl), + jsonSerializerContext) as global::Presenton.PresentationThemeResponseLogoUrl; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationSummaryLastUpdatedAt? FromJson( + public static global::Presenton.PresentationThemeResponseLogoUrl? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationSummaryLastUpdatedAt), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationSummaryLastUpdatedAt; + typeof(global::Presenton.PresentationThemeResponseLogoUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeResponseLogoUrl; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogoUrl.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogoUrl.g.cs new file mode 100644 index 0000000..4decc39 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseLogoUrl.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentationThemeResponseLogoUrl + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseUser.Json.g.cs similarity index 86% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseUser.Json.g.cs index 67cd3ed..9dc1d73 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseUser.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationSummaryTemplate + public sealed partial class PresentationThemeResponseUser { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationSummaryTemplate? FromJson( + public static global::Presenton.PresentationThemeResponseUser? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationSummaryTemplate), - jsonSerializerContext) as global::Presenton.PresentationSummaryTemplate; + typeof(global::Presenton.PresentationThemeResponseUser), + jsonSerializerContext) as global::Presenton.PresentationThemeResponseUser; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationSummaryTemplate? FromJson( + public static global::Presenton.PresentationThemeResponseUser? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationSummaryTemplate), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationSummaryTemplate; + typeof(global::Presenton.PresentationThemeResponseUser), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeResponseUser; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseUser.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseUser.g.cs new file mode 100644 index 0000000..22688fd --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeResponseUser.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentationThemeResponseUser + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2.g.cs index 5f36d5b..a0f98bf 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2.g.cs @@ -58,6 +58,12 @@ public sealed partial class PresentationWithSlidesV2 [global::System.Text.Json.Serialization.JsonPropertyName("design_system_id")] public global::System.Guid? DesignSystemId { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("design_v2_id")] + public global::System.Guid? DesignV2Id { get; set; } + /// /// /// @@ -89,6 +95,7 @@ public sealed partial class PresentationWithSlidesV2 /// /// /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -103,6 +110,7 @@ public PresentationWithSlidesV2( string? verbosity, string? language, global::System.Guid? designSystemId, + global::System.Guid? designV2Id, object? fonts) { this.Id = id; @@ -113,6 +121,7 @@ public PresentationWithSlidesV2( this.Verbosity = verbosity; this.Language = language; this.DesignSystemId = designSystemId; + this.DesignV2Id = designV2Id; this.Fonts = fonts; this.Slides = slides ?? throw new global::System.ArgumentNullException(nameof(slides)); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate2.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2DesignV2Id.Json.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate2.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2DesignV2Id.Json.g.cs index 51fe347..aceca4d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummaryTemplate2.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2DesignV2Id.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationSummaryTemplate2 + public sealed partial class PresentationWithSlidesV2DesignV2Id { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationSummaryTemplate2? FromJson( + public static global::Presenton.PresentationWithSlidesV2DesignV2Id? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationSummaryTemplate2), - jsonSerializerContext) as global::Presenton.PresentationSummaryTemplate2; + typeof(global::Presenton.PresentationWithSlidesV2DesignV2Id), + jsonSerializerContext) as global::Presenton.PresentationWithSlidesV2DesignV2Id; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationSummaryTemplate2? FromJson( + public static global::Presenton.PresentationWithSlidesV2DesignV2Id? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationSummaryTemplate2), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationSummaryTemplate2; + typeof(global::Presenton.PresentationWithSlidesV2DesignV2Id), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationWithSlidesV2DesignV2Id; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2DesignV2Id.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2DesignV2Id.g.cs new file mode 100644 index 0000000..bd7525d --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentationWithSlidesV2DesignV2Id.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentationWithSlidesV2DesignV2Id + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModel.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeColors.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModel.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentionThemeColors.Json.g.cs index 718e11f..3301fa5 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModel.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeColors.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationThemeModel + public sealed partial class PresentionThemeColors { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationThemeModel? FromJson( + public static global::Presenton.PresentionThemeColors? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationThemeModel), - jsonSerializerContext) as global::Presenton.PresentationThemeModel; + typeof(global::Presenton.PresentionThemeColors), + jsonSerializerContext) as global::Presenton.PresentionThemeColors; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationThemeModel? FromJson( + public static global::Presenton.PresentionThemeColors? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationThemeModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeModel; + typeof(global::Presenton.PresentionThemeColors), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentionThemeColors; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeColors.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeColors.g.cs new file mode 100644 index 0000000..a3dacd3 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeColors.g.cs @@ -0,0 +1,195 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentionThemeColors + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("primary")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Primary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("background")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Background { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("card")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Card { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stroke")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Stroke { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("primary_text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PrimaryText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("background_text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string BackgroundText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_0")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph0 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_1")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph1 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_2")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph2 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_3")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph3 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_4")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph4 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_5")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph5 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_6")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph6 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_7")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph7 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_8")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph8 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("graph_9")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Graph9 { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PresentionThemeColors( + string primary, + string background, + string card, + string stroke, + string primaryText, + string backgroundText, + string graph0, + string graph1, + string graph2, + string graph3, + string graph4, + string graph5, + string graph6, + string graph7, + string graph8, + string graph9) + { + this.Primary = primary ?? throw new global::System.ArgumentNullException(nameof(primary)); + this.Background = background ?? throw new global::System.ArgumentNullException(nameof(background)); + this.Card = card ?? throw new global::System.ArgumentNullException(nameof(card)); + this.Stroke = stroke ?? throw new global::System.ArgumentNullException(nameof(stroke)); + this.PrimaryText = primaryText ?? throw new global::System.ArgumentNullException(nameof(primaryText)); + this.BackgroundText = backgroundText ?? throw new global::System.ArgumentNullException(nameof(backgroundText)); + this.Graph0 = graph0 ?? throw new global::System.ArgumentNullException(nameof(graph0)); + this.Graph1 = graph1 ?? throw new global::System.ArgumentNullException(nameof(graph1)); + this.Graph2 = graph2 ?? throw new global::System.ArgumentNullException(nameof(graph2)); + this.Graph3 = graph3 ?? throw new global::System.ArgumentNullException(nameof(graph3)); + this.Graph4 = graph4 ?? throw new global::System.ArgumentNullException(nameof(graph4)); + this.Graph5 = graph5 ?? throw new global::System.ArgumentNullException(nameof(graph5)); + this.Graph6 = graph6 ?? throw new global::System.ArgumentNullException(nameof(graph6)); + this.Graph7 = graph7 ?? throw new global::System.ArgumentNullException(nameof(graph7)); + this.Graph8 = graph8 ?? throw new global::System.ArgumentNullException(nameof(graph8)); + this.Graph9 = graph9 ?? throw new global::System.ArgumentNullException(nameof(graph9)); + } + + /// + /// Initializes a new instance of the class. + /// + public PresentionThemeColors() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogo.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataInput.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogo.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataInput.Json.g.cs index 05112b8..deb3c3d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationThemeModelLogo.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationThemeModelLogo + public sealed partial class PresentionThemeDataInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationThemeModelLogo? FromJson( + public static global::Presenton.PresentionThemeDataInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationThemeModelLogo), - jsonSerializerContext) as global::Presenton.PresentationThemeModelLogo; + typeof(global::Presenton.PresentionThemeDataInput), + jsonSerializerContext) as global::Presenton.PresentionThemeDataInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationThemeModelLogo? FromJson( + public static global::Presenton.PresentionThemeDataInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationThemeModelLogo), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationThemeModelLogo; + typeof(global::Presenton.PresentionThemeDataInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentionThemeDataInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PptxFontsResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataInput.g.cs similarity index 61% rename from src/libs/Presenton/Generated/Presenton.Models.PptxFontsResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataInput.g.cs index 3aa7307..4817269 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PptxFontsResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataInput.g.cs @@ -6,21 +6,21 @@ namespace Presenton /// /// /// - public sealed partial class PptxFontsResponse + public sealed partial class PresentionThemeDataInput { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("colors")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required global::Presenton.PresentionThemeColors Colors { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Presenton.FontAnalysisResult Fonts { get; set; } + public required global::Presenton.PresentionThemeFonts Fonts { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class PptxFontsResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PptxFontsResponse( - bool success, - global::Presenton.FontAnalysisResult fonts) + public PresentionThemeDataInput( + global::Presenton.PresentionThemeColors colors, + global::Presenton.PresentionThemeFonts fonts) { - this.Success = success; + this.Colors = colors ?? throw new global::System.ArgumentNullException(nameof(colors)); this.Fonts = fonts ?? throw new global::System.ArgumentNullException(nameof(fonts)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PptxFontsResponse() + public PresentionThemeDataInput() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataOutput.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataOutput.Json.g.cs new file mode 100644 index 0000000..1cc8099 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataOutput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class PresentionThemeDataOutput + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.PresentionThemeDataOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.PresentionThemeDataOutput), + jsonSerializerContext) as global::Presenton.PresentionThemeDataOutput; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.PresentionThemeDataOutput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.PresentionThemeDataOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentionThemeDataOutput; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataOutput.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataOutput.g.cs new file mode 100644 index 0000000..a2f3c88 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeDataOutput.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class PresentionThemeDataOutput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("colors")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Presenton.PresentionThemeColors Colors { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Presenton.PresentionThemeFonts Fonts { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PresentionThemeDataOutput( + global::Presenton.PresentionThemeColors colors, + global::Presenton.PresentionThemeFonts fonts) + { + this.Colors = colors ?? throw new global::System.ArgumentNullException(nameof(colors)); + this.Fonts = fonts ?? throw new global::System.ArgumentNullException(nameof(fonts)); + } + + /// + /// Initializes a new instance of the class. + /// + public PresentionThemeDataOutput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummary.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeFonts.Json.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.PresentationSummary.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentionThemeFonts.Json.g.cs index 1fc4139..dbd9ee9 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.PresentationSummary.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeFonts.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class PresentationSummary + public sealed partial class PresentionThemeFonts { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.PresentationSummary? FromJson( + public static global::Presenton.PresentionThemeFonts? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.PresentationSummary), - jsonSerializerContext) as global::Presenton.PresentationSummary; + typeof(global::Presenton.PresentionThemeFonts), + jsonSerializerContext) as global::Presenton.PresentionThemeFonts; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.PresentationSummary? FromJson( + public static global::Presenton.PresentionThemeFonts? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.PresentationSummary), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentationSummary; + typeof(global::Presenton.PresentionThemeFonts), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentionThemeFonts; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeFonts.g.cs similarity index 57% rename from src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsRequest.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentionThemeFonts.g.cs index bc8c7f5..7fc6f7d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsRequest.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeFonts.g.cs @@ -6,14 +6,14 @@ namespace Presenton /// /// /// - public sealed partial class SaveLayoutsRequest + public sealed partial class PresentionThemeFonts { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("layouts")] + [global::System.Text.Json.Serialization.JsonPropertyName("textFont")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Layouts { get; set; } + public required global::Presenton.PresentionThemeTextFont TextFont { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class SaveLayoutsRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SaveLayoutsRequest( - global::System.Collections.Generic.IList layouts) + public PresentionThemeFonts( + global::Presenton.PresentionThemeTextFont textFont) { - this.Layouts = layouts ?? throw new global::System.ArgumentNullException(nameof(layouts)); + this.TextFont = textFont ?? throw new global::System.ArgumentNullException(nameof(textFont)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SaveLayoutsRequest() + public PresentionThemeFonts() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeTextFont.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeTextFont.Json.g.cs new file mode 100644 index 0000000..3b11edb --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeTextFont.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class PresentionThemeTextFont + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.PresentionThemeTextFont? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.PresentionThemeTextFont), + jsonSerializerContext) as global::Presenton.PresentionThemeTextFont; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.PresentionThemeTextFont? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.PresentionThemeTextFont), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.PresentionThemeTextFont; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeTextFont.g.cs similarity index 57% rename from src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.PresentionThemeTextFont.g.cs index 6f542a9..bf5988b 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ExtractDesignSystemResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.PresentionThemeTextFont.g.cs @@ -6,21 +6,21 @@ namespace Presenton /// /// /// - public sealed partial class ExtractDesignSystemResponse + public sealed partial class PresentionThemeTextFont { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required string Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("design_system")] + [global::System.Text.Json.Serialization.JsonPropertyName("url")] [global::System.Text.Json.Serialization.JsonRequired] - public required object DesignSystem { get; set; } + public required string Url { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ExtractDesignSystemResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ExtractDesignSystemResponse( - bool success, - object designSystem) + public PresentionThemeTextFont( + string name, + string url) { - this.Success = success; - this.DesignSystem = designSystem ?? throw new global::System.ArgumentNullException(nameof(designSystem)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ExtractDesignSystemResponse() + public PresentionThemeTextFont() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.QualitativeChart.g.cs b/src/libs/Presenton/Generated/Presenton.Models.QualitativeChart.g.cs deleted file mode 100644 index 6105c4d..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.QualitativeChart.g.cs +++ /dev/null @@ -1,129 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public enum QualitativeChart - { - /// - /// - /// - Comparison, - /// - /// - /// - Funnel, - /// - /// - /// - GanttChart, - /// - /// - /// - Infographics, - /// - /// - /// - JourneyMap, - /// - /// - /// - LadderChart, - /// - /// - /// - MatrixChart, - /// - /// - /// - OrganizationChart, - /// - /// - /// - PyramidChart, - /// - /// - /// - Roadmap, - /// - /// - /// - SequenceDiagram, - /// - /// - /// - StatsChart, - /// - /// - /// - Steps, - /// - /// - /// - SwotChart, - /// - /// - /// - Timeline, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class QualitativeChartExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this QualitativeChart value) - { - return value switch - { - QualitativeChart.Comparison => "comparison", - QualitativeChart.Funnel => "funnel", - QualitativeChart.GanttChart => "gantt_chart", - QualitativeChart.Infographics => "infographics", - QualitativeChart.JourneyMap => "journey_map", - QualitativeChart.LadderChart => "ladder_chart", - QualitativeChart.MatrixChart => "matrix_chart", - QualitativeChart.OrganizationChart => "organization_chart", - QualitativeChart.PyramidChart => "pyramid_chart", - QualitativeChart.Roadmap => "roadmap", - QualitativeChart.SequenceDiagram => "sequence_diagram", - QualitativeChart.StatsChart => "stats_chart", - QualitativeChart.Steps => "steps", - QualitativeChart.SwotChart => "swot_chart", - QualitativeChart.Timeline => "timeline", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static QualitativeChart? ToEnum(string value) - { - return value switch - { - "comparison" => QualitativeChart.Comparison, - "funnel" => QualitativeChart.Funnel, - "gantt_chart" => QualitativeChart.GanttChart, - "infographics" => QualitativeChart.Infographics, - "journey_map" => QualitativeChart.JourneyMap, - "ladder_chart" => QualitativeChart.LadderChart, - "matrix_chart" => QualitativeChart.MatrixChart, - "organization_chart" => QualitativeChart.OrganizationChart, - "pyramid_chart" => QualitativeChart.PyramidChart, - "roadmap" => QualitativeChart.Roadmap, - "sequence_diagram" => QualitativeChart.SequenceDiagram, - "stats_chart" => QualitativeChart.StatsChart, - "steps" => QualitativeChart.Steps, - "swot_chart" => QualitativeChart.SwotChart, - "timeline" => QualitativeChart.Timeline, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceData.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponseMessage.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceData.Json.g.cs index 9752c64..374761d 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponseMessage.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceData.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SaveLayoutsResponseMessage + public sealed partial class SaveDesignReferenceData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SaveLayoutsResponseMessage? FromJson( + public static global::Presenton.SaveDesignReferenceData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SaveLayoutsResponseMessage), - jsonSerializerContext) as global::Presenton.SaveLayoutsResponseMessage; + typeof(global::Presenton.SaveDesignReferenceData), + jsonSerializerContext) as global::Presenton.SaveDesignReferenceData; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SaveLayoutsResponseMessage? FromJson( + public static global::Presenton.SaveDesignReferenceData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SaveLayoutsResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveLayoutsResponseMessage; + typeof(global::Presenton.SaveDesignReferenceData), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignReferenceData; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceData.g.cs similarity index 56% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceData.g.cs index 19247d5..f94c08e 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceData.g.cs @@ -6,27 +6,27 @@ namespace Presenton /// /// /// - public sealed partial class HtmlEditResponse + public sealed partial class SaveDesignReferenceData { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("html")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required string Html { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("edited_html")] + [global::System.Text.Json.Serialization.JsonPropertyName("structure")] [global::System.Text.Json.Serialization.JsonRequired] - public required string EditedHtml { get; set; } + public required string Structure { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("slide")] + public int? Slide { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,28 +35,28 @@ public sealed partial class HtmlEditResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public HtmlEditResponse( - bool success, - string editedHtml, - string? message) + public SaveDesignReferenceData( + string html, + string structure, + int? slide) { - this.Success = success; - this.EditedHtml = editedHtml ?? throw new global::System.ArgumentNullException(nameof(editedHtml)); - this.Message = message; + this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); + this.Structure = structure ?? throw new global::System.ArgumentNullException(nameof(structure)); + this.Slide = slide; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HtmlEditResponse() + public SaveDesignReferenceData() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceDataSlide.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceDataSlide.Json.g.cs new file mode 100644 index 0000000..a579c6e --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceDataSlide.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class SaveDesignReferenceDataSlide + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.SaveDesignReferenceDataSlide? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.SaveDesignReferenceDataSlide), + jsonSerializerContext) as global::Presenton.SaveDesignReferenceDataSlide; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.SaveDesignReferenceDataSlide? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.SaveDesignReferenceDataSlide), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignReferenceDataSlide; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceDataSlide.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceDataSlide.g.cs new file mode 100644 index 0000000..90584e8 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignReferenceDataSlide.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SaveDesignReferenceDataSlide + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequest.Json.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequest.Json.g.cs index 20ed15c..94ac9a3 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SaveLayoutsResponse + public sealed partial class SaveDesignRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SaveLayoutsResponse? FromJson( + public static global::Presenton.SaveDesignRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SaveLayoutsResponse), - jsonSerializerContext) as global::Presenton.SaveLayoutsResponse; + typeof(global::Presenton.SaveDesignRequest), + jsonSerializerContext) as global::Presenton.SaveDesignRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SaveLayoutsResponse? FromJson( + public static global::Presenton.SaveDesignRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SaveLayoutsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveLayoutsResponse; + typeof(global::Presenton.SaveDesignRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequest.g.cs new file mode 100644 index 0000000..a338ae1 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequest.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SaveDesignRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("design_id")] + public global::System.Guid? DesignId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("design_info_id")] + public global::System.Guid? DesignInfoId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("references")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList References { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SaveDesignRequest( + global::System.Collections.Generic.IList references, + global::System.Guid? designId, + global::System.Guid? designInfoId, + string? name) + { + this.DesignId = designId; + this.DesignInfoId = designInfoId; + this.Name = name; + this.References = references ?? throw new global::System.ArgumentNullException(nameof(references)); + } + + /// + /// Initializes a new instance of the class. + /// + public SaveDesignRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignId.Json.g.cs new file mode 100644 index 0000000..a742915 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class SaveDesignRequestDesignId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.SaveDesignRequestDesignId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.SaveDesignRequestDesignId), + jsonSerializerContext) as global::Presenton.SaveDesignRequestDesignId; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.SaveDesignRequestDesignId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.SaveDesignRequestDesignId), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignRequestDesignId; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignId.g.cs new file mode 100644 index 0000000..ece718d --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SaveDesignRequestDesignId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignInfoId.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignInfoId.Json.g.cs new file mode 100644 index 0000000..e49334b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignInfoId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class SaveDesignRequestDesignInfoId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.SaveDesignRequestDesignInfoId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.SaveDesignRequestDesignInfoId), + jsonSerializerContext) as global::Presenton.SaveDesignRequestDesignInfoId; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.SaveDesignRequestDesignInfoId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.SaveDesignRequestDesignInfoId), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignRequestDesignInfoId; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignInfoId.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignInfoId.g.cs new file mode 100644 index 0000000..5a5071a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestDesignInfoId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SaveDesignRequestDesignInfoId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestName.Json.g.cs new file mode 100644 index 0000000..c164e02 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestName.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class SaveDesignRequestName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.SaveDesignRequestName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.SaveDesignRequestName), + jsonSerializerContext) as global::Presenton.SaveDesignRequestName; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.SaveDesignRequestName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.SaveDesignRequestName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignRequestName; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestName.g.cs new file mode 100644 index 0000000..6313b7a --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignRequestName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SaveDesignRequestName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponse.Json.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponse.Json.g.cs index 2edc4c7..822fecc 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SaveLayoutsRequest + public sealed partial class SaveDesignResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SaveLayoutsRequest? FromJson( + public static global::Presenton.SaveDesignResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SaveLayoutsRequest), - jsonSerializerContext) as global::Presenton.SaveLayoutsRequest; + typeof(global::Presenton.SaveDesignResponse), + jsonSerializerContext) as global::Presenton.SaveDesignResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SaveLayoutsRequest? FromJson( + public static global::Presenton.SaveDesignResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SaveLayoutsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveLayoutsRequest; + typeof(global::Presenton.SaveDesignResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponse.g.cs similarity index 67% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponse.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponse.g.cs index 851cc2f..b237b03 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponse.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponse.g.cs @@ -6,27 +6,27 @@ namespace Presenton /// /// /// - public sealed partial class HtmlEditInitResponse + public sealed partial class SaveDesignResponse { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public required global::System.Guid Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,28 +35,28 @@ public sealed partial class HtmlEditInitResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public HtmlEditInitResponse( - bool success, + public SaveDesignResponse( global::System.Guid id, - string? message) + global::System.DateTime createdAt, + string? name) { - this.Success = success; this.Id = id; - this.Message = message; + this.Name = name; + this.CreatedAt = createdAt; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HtmlEditInitResponse() + public SaveDesignResponse() { } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponseName.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponseName.Json.g.cs new file mode 100644 index 0000000..c4c41e9 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponseName.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Presenton +{ + public sealed partial class SaveDesignResponseName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Presenton.SaveDesignResponseName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Presenton.SaveDesignResponseName), + jsonSerializerContext) as global::Presenton.SaveDesignResponseName; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Presenton.SaveDesignResponseName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Presenton.SaveDesignResponseName), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SaveDesignResponseName; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponseName.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponseName.g.cs new file mode 100644 index 0000000..7152ece --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SaveDesignResponseName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SaveDesignResponseName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponse.g.cs deleted file mode 100644 index a6f1818..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponse.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SaveLayoutsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("saved_count")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SavedCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SaveLayoutsResponse( - bool success, - int savedCount, - string? message) - { - this.Success = success; - this.SavedCount = savedCount; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public SaveLayoutsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponseMessage.g.cs deleted file mode 100644 index 4d4b2f5..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SaveLayoutsResponseMessage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SaveLayoutsResponseMessage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayout.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayout.g.cs index 3baabd6..974f3b2 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayout.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayout.g.cs @@ -9,14 +9,14 @@ namespace Presenton public sealed partial class SlideContentLayout { /// - /// The content for the slide + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonRequired] public required string Content { get; set; } /// - /// The layout for the slide + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("layout")] public string? Layout { get; set; } @@ -30,12 +30,8 @@ public sealed partial class SlideContentLayout /// /// Initializes a new instance of the class. /// - /// - /// The content for the slide - /// - /// - /// The layout for the slide - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayoutLayout.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayoutLayout.g.cs index 0c0eaaf..1c956e9 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayoutLayout.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SlideContentLayoutLayout.g.cs @@ -4,7 +4,7 @@ namespace Presenton { /// - /// The layout for the slide + /// /// public sealed partial class SlideContentLayoutLayout { diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideData.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideData.Json.g.cs deleted file mode 100644 index 5095429..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideData.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class SlideData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.SlideData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.SlideData), - jsonSerializerContext) as global::Presenton.SlideData; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.SlideData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.SlideData), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideData; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideData.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideData.g.cs deleted file mode 100644 index 89a9bb9..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideData.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideData - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("slide_number")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int SlideNumber { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("screenshot_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ScreenshotUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("xml_content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string XmlContent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("normalized_fonts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList NormalizedFonts { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("markdown_content")] - public string? MarkdownContent { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SlideData( - int slideNumber, - string screenshotUrl, - string xmlContent, - global::System.Collections.Generic.IList normalizedFonts, - string? markdownContent) - { - this.SlideNumber = slideNumber; - this.ScreenshotUrl = screenshotUrl ?? throw new global::System.ArgumentNullException(nameof(screenshotUrl)); - this.XmlContent = xmlContent ?? throw new global::System.ArgumentNullException(nameof(xmlContent)); - this.NormalizedFonts = normalizedFonts ?? throw new global::System.ArgumentNullException(nameof(normalizedFonts)); - this.MarkdownContent = markdownContent; - } - - /// - /// Initializes a new instance of the class. - /// - public SlideData() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideDataMarkdownContent.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideDataMarkdownContent.g.cs deleted file mode 100644 index bf871a7..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideDataMarkdownContent.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideDataMarkdownContent - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModel.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModel.g.cs index cd39064..fc72e35 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModel.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModel.g.cs @@ -15,6 +15,12 @@ public sealed partial class SlideOutlineModel [global::System.Text.Json.Serialization.JsonRequired] public required string Content { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("layout")] + public string? Layout { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -25,13 +31,16 @@ public sealed partial class SlideOutlineModel /// Initializes a new instance of the class. /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SlideOutlineModel( - string content) + string content, + string? layout) { this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.Layout = layout; } /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequestFonts.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModelLayout.Json.g.cs similarity index 88% rename from src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequestFonts.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModelLayout.Json.g.cs index a014c77..a8ef253 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequestFonts.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModelLayout.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class SlideToHtmlRequestFonts + public sealed partial class SlideOutlineModelLayout { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.SlideToHtmlRequestFonts? FromJson( + public static global::Presenton.SlideOutlineModelLayout? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.SlideToHtmlRequestFonts), - jsonSerializerContext) as global::Presenton.SlideToHtmlRequestFonts; + typeof(global::Presenton.SlideOutlineModelLayout), + jsonSerializerContext) as global::Presenton.SlideOutlineModelLayout; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.SlideToHtmlRequestFonts? FromJson( + public static global::Presenton.SlideOutlineModelLayout? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.SlideToHtmlRequestFonts), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToHtmlRequestFonts; + typeof(global::Presenton.SlideOutlineModelLayout), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideOutlineModelLayout; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModelLayout.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModelLayout.g.cs new file mode 100644 index 0000000..2f2102c --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.SlideOutlineModelLayout.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class SlideOutlineModelLayout + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequestFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequestFonts.g.cs deleted file mode 100644 index ce8e745..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToHtmlRequestFonts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideToHtmlRequestFonts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequest.Json.g.cs deleted file mode 100644 index 553dd0c..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequest.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class SlideToReactRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.SlideToReactRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.SlideToReactRequest), - jsonSerializerContext) as global::Presenton.SlideToReactRequest; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.SlideToReactRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.SlideToReactRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToReactRequest; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequest.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequest.g.cs deleted file mode 100644 index 5baa715..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequest.g.cs +++ /dev/null @@ -1,74 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideToReactRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("markdown_content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MarkdownContent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("design_system")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object DesignSystem { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fonts")] - public global::System.Collections.Generic.IList? Fonts { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SlideToReactRequest( - string image, - string markdownContent, - object designSystem, - global::System.Collections.Generic.IList? fonts) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.MarkdownContent = markdownContent ?? throw new global::System.ArgumentNullException(nameof(markdownContent)); - this.DesignSystem = designSystem ?? throw new global::System.ArgumentNullException(nameof(designSystem)); - this.Fonts = fonts; - } - - /// - /// Initializes a new instance of the class. - /// - public SlideToReactRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestDesignSystem.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestDesignSystem.g.cs deleted file mode 100644 index c54b684..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestDesignSystem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideToReactRequestDesignSystem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestFonts.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestFonts.g.cs deleted file mode 100644 index c28768b..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactRequestFonts.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideToReactRequestFonts - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponse.g.cs deleted file mode 100644 index 0003220..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponse.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideToReactResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("react_component")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ReactComponent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SlideToReactResponse( - bool success, - string reactComponent, - string? message) - { - this.Success = success; - this.ReactComponent = reactComponent ?? throw new global::System.ArgumentNullException(nameof(reactComponent)); - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public SlideToReactResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponseMessage.Json.g.cs deleted file mode 100644 index 6833a12..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponseMessage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class SlideToReactResponseMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.SlideToReactResponseMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.SlideToReactResponseMessage), - jsonSerializerContext) as global::Presenton.SlideToReactResponseMessage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.SlideToReactResponseMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.SlideToReactResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.SlideToReactResponseMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponseMessage.g.cs deleted file mode 100644 index bbdbee5..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.SlideToReactResponseMessage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class SlideToReactResponseMessage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse.Json.g.cs deleted file mode 100644 index bae75ea..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse), - jsonSerializerContext) as global::Presenton.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse.g.cs deleted file mode 100644 index 6a66689..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse.Json.g.cs deleted file mode 100644 index a23b574..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse), - jsonSerializerContext) as global::Presenton.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse.g.cs deleted file mode 100644 index 301d07d..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse.Json.g.cs deleted file mode 100644 index cea557e..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse), - jsonSerializerContext) as global::Presenton.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse.g.cs b/src/libs/Presenton/Generated/Presenton.Models.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse.g.cs deleted file mode 100644 index 430df0f..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm.g.cs deleted file mode 100644 index 95deb78..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class TemplateCreateRequestDesignSysetm - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm2.g.cs deleted file mode 100644 index 9a09995..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSysetm2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class TemplateCreateRequestDesignSysetm2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem.Json.g.cs deleted file mode 100644 index c3acf3f..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class TemplateCreateRequestDesignSystem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.TemplateCreateRequestDesignSystem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.TemplateCreateRequestDesignSystem), - jsonSerializerContext) as global::Presenton.TemplateCreateRequestDesignSystem; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.TemplateCreateRequestDesignSystem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.TemplateCreateRequestDesignSystem), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateRequestDesignSystem; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem.g.cs deleted file mode 100644 index f274332..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class TemplateCreateRequestDesignSystem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem2.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem2.g.cs deleted file mode 100644 index 15dd428..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateRequestDesignSystem2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class TemplateCreateRequestDesignSystem2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponse.Json.g.cs deleted file mode 100644 index cdfb2f9..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class TemplateCreateResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.TemplateCreateResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.TemplateCreateResponse), - jsonSerializerContext) as global::Presenton.TemplateCreateResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.TemplateCreateResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.TemplateCreateResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseMessage.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseMessage.Json.g.cs deleted file mode 100644 index 85b1f17..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseMessage.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Presenton -{ - public sealed partial class TemplateCreateResponseMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Presenton.TemplateCreateResponseMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Presenton.TemplateCreateResponseMessage), - jsonSerializerContext) as global::Presenton.TemplateCreateResponseMessage; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Presenton.TemplateCreateResponseMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Presenton.TemplateCreateResponseMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.TemplateCreateResponseMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseMessage.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseMessage.g.cs deleted file mode 100644 index 6631f7b..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseMessage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class TemplateCreateResponseMessage - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseTemplate.g.cs b/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseTemplate.g.cs deleted file mode 100644 index 93b81ac..0000000 --- a/src/libs/Presenton/Generated/Presenton.Models.TemplateCreateResponseTemplate.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - /// - /// - /// - public sealed partial class TemplateCreateResponseTemplate - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.ValidationError.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ValidationError.g.cs index 2d7defa..2d8a535 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.ValidationError.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ValidationError.g.cs @@ -29,6 +29,18 @@ public sealed partial class ValidationError [global::System.Text.Json.Serialization.JsonRequired] public required string Type { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + public object? Input { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ctx")] + public object? Ctx { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,17 +53,23 @@ public sealed partial class ValidationError /// /// /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ValidationError( global::System.Collections.Generic.IList> loc, string msg, - string type) + string type, + object? input, + object? ctx) { this.Loc = loc ?? throw new global::System.ArgumentNullException(nameof(loc)); this.Msg = msg ?? throw new global::System.ArgumentNullException(nameof(msg)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Input = input; + this.Ctx = ctx; } /// diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequest.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorCtx.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequest.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ValidationErrorCtx.Json.g.cs index 29f1a73..823ed90 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlToReactRequest.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorCtx.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlToReactRequest + public sealed partial class ValidationErrorCtx { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlToReactRequest? FromJson( + public static global::Presenton.ValidationErrorCtx? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlToReactRequest), - jsonSerializerContext) as global::Presenton.HtmlToReactRequest; + typeof(global::Presenton.ValidationErrorCtx), + jsonSerializerContext) as global::Presenton.ValidationErrorCtx; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlToReactRequest? FromJson( + public static global::Presenton.ValidationErrorCtx? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlToReactRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlToReactRequest; + typeof(global::Presenton.ValidationErrorCtx), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ValidationErrorCtx; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorCtx.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorCtx.g.cs new file mode 100644 index 0000000..a3e42b1 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorCtx.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ValidationErrorCtx + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponse.Json.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorInput.Json.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponse.Json.g.cs rename to src/libs/Presenton/Generated/Presenton.Models.ValidationErrorInput.Json.g.cs index 27d9939..80faea8 100644 --- a/src/libs/Presenton/Generated/Presenton.Models.HtmlEditInitResponse.Json.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Presenton { - public sealed partial class HtmlEditInitResponse + public sealed partial class ValidationErrorInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Presenton.HtmlEditInitResponse? FromJson( + public static global::Presenton.ValidationErrorInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Presenton.HtmlEditInitResponse), - jsonSerializerContext) as global::Presenton.HtmlEditInitResponse; + typeof(global::Presenton.ValidationErrorInput), + jsonSerializerContext) as global::Presenton.ValidationErrorInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Presenton.HtmlEditInitResponse? FromJson( + public static global::Presenton.ValidationErrorInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Presenton.HtmlEditInitResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.HtmlEditInitResponse; + typeof(global::Presenton.ValidationErrorInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Presenton.ValidationErrorInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorInput.g.cs b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorInput.g.cs new file mode 100644 index 0000000..2e1cb2e --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.Models.ValidationErrorInput.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Presenton +{ + /// + /// + /// + public sealed partial class ValidationErrorInput + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs index 52fae6e..23990cb 100644 --- a/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs @@ -480,6 +480,9 @@ partial void ProcessGenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePostResponseCo /// /// The number of slides to generate /// + /// + /// Optional design ID to use for outline generation + /// /// /// The language for the presentation /// @@ -512,6 +515,7 @@ partial void ProcessGenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePostResponseCo 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, @@ -527,6 +531,7 @@ partial void ProcessGenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePostResponseCo Content = content, Files = files, NSlides = nSlides, + Design = design, Language = language, Tone = tone, Verbosity = verbosity, diff --git a/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs deleted file mode 100644 index 5ea32dc..0000000 --- a/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs +++ /dev/null @@ -1,1462 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - public partial class PdfSlidesClient - { - - - private static readonly global::Presenton.EndPointSecurityRequirement s_ProcessPdfSlidesApiV1PptPdfSlidesProcessPostSecurityRequirement0 = - 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_ProcessPdfSlidesApiV1PptPdfSlidesProcessPostSecurityRequirements = - new global::Presenton.EndPointSecurityRequirement[] - { s_ProcessPdfSlidesApiV1PptPdfSlidesProcessPostSecurityRequirement0, - }; - partial void PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostArguments( - global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost request); - partial void PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost request); - partial void ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync( - - global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsResponseAsync( - - global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPdfSlidesApiV1PptPdfSlidesProcessPostSecurityRequirements, - operationName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync"); - - 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/pdf-slides/process", - 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 __contentPdfFile = new global::System.Net.Http.ByteArrayContent(request.PdfFile ?? global::System.Array.Empty()); - __contentPdfFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.PdfFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.PdfFilename) ?? 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: __contentPdfFile, - name: "\"pdf_file\"", - fileName: request.PdfFilename != null ? $"\"{request.PdfFilename}\"" : string.Empty); - if (__contentPdfFile.Headers.ContentDisposition != null) - { - __contentPdfFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostRequest( - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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); - ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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); - ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Presenton.PdfSlidesResponse.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.PdfSlidesResponse.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(); - } - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync( - byte[] pdfFile, - string pdfFilename, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost - { - PdfFile = pdfFile, - PdfFilename = pdfFilename, - }; - - return await ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync( - global::System.IO.Stream pdfFile, - string pdfFilename, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - pdfFile = pdfFile ?? throw new global::System.ArgumentNullException(nameof(pdfFile)); - var request = new global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost - { - PdfFile = global::System.Array.Empty(), - PdfFilename = pdfFilename, - }; - PrepareArguments( - client: HttpClient); - PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPdfSlidesApiV1PptPdfSlidesProcessPostSecurityRequirements, - operationName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync"); - - 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/pdf-slides/process", - 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 __contentPdfFile = new global::System.Net.Http.StreamContent(pdfFile); - __contentPdfFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.PdfFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.PdfFilename) ?? 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: __contentPdfFile, - name: "\"pdf_file\"", - fileName: request.PdfFilename != null ? $"\"{request.PdfFilename}\"" : string.Empty); - if (__contentPdfFile.Headers.ContentDisposition != null) - { - __contentPdfFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostRequest( - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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); - ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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); - ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Presenton.PdfSlidesResponse.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.PdfSlidesResponse.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(); - } - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsResponseAsync( - global::System.IO.Stream pdfFile, - string pdfFilename, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - pdfFile = pdfFile ?? throw new global::System.ArgumentNullException(nameof(pdfFile)); - var request = new global::Presenton.BodyProcessPdfSlidesApiV1PptPdfSlidesProcessPost - { - PdfFile = global::System.Array.Empty(), - PdfFilename = pdfFilename, - }; - PrepareArguments( - client: HttpClient); - PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPdfSlidesApiV1PptPdfSlidesProcessPostSecurityRequirements, - operationName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync"); - - 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/pdf-slides/process", - 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 __contentPdfFile = new global::System.Net.Http.StreamContent(pdfFile); - __contentPdfFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.PdfFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.PdfFilename) ?? 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: __contentPdfFile, - name: "\"pdf_file\"", - fileName: request.PdfFilename != null ? $"\"{request.PdfFilename}\"" : string.Empty); - if (__contentPdfFile.Headers.ContentDisposition != null) - { - __contentPdfFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareProcessPdfSlidesApiV1PptPdfSlidesProcessPostRequest( - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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); - ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPost", - methodName: "ProcessPdfSlidesApiV1PptPdfSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pdf-slides/process\"", - 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); - ProcessProcessPdfSlidesApiV1PptPdfSlidesProcessPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Presenton.PdfSlidesResponse.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.PdfSlidesResponse.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.PdfSlidesClient.g.cs b/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.g.cs deleted file mode 100644 index f2277d1..0000000 --- a/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.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 PdfSlidesClient : global::Presenton.IPdfSlidesClient, 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 PdfSlidesClient. - /// 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 PdfSlidesClient( - 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 PdfSlidesClient 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 PdfSlidesClient( - 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 PdfSlidesClient. - /// 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 PdfSlidesClient( - 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.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs deleted file mode 100644 index 549099a..0000000 --- a/src/libs/Presenton/Generated/Presenton.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs +++ /dev/null @@ -1,1442 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - public partial class PptxFontsClient - { - - - private static readonly global::Presenton.EndPointSecurityRequirement s_ProcessPptxFontsApiV1PptPptxFontsProcessPostSecurityRequirement0 = - 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_ProcessPptxFontsApiV1PptPptxFontsProcessPostSecurityRequirements = - new global::Presenton.EndPointSecurityRequirement[] - { s_ProcessPptxFontsApiV1PptPptxFontsProcessPostSecurityRequirement0, - }; - partial void PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostArguments( - global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost request); - partial void PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost request); - partial void ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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. - ///
- /// - /// 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 ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync( - - global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ProcessPptxFontsApiV1PptPptxFontsProcessPostAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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. - ///
- /// - /// 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> ProcessPptxFontsApiV1PptPptxFontsProcessPostAsResponseAsync( - - global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPptxFontsApiV1PptPptxFontsProcessPostSecurityRequirements, - operationName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync"); - - 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/pptx-fonts/process", - 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 __contentPptxFile = new global::System.Net.Http.ByteArrayContent(request.PptxFile ?? global::System.Array.Empty()); - __contentPptxFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.PptxFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.PptxFilename) ?? 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: __contentPptxFile, - name: "\"pptx_file\"", - fileName: request.PptxFilename != null ? $"\"{request.PptxFilename}\"" : string.Empty); - if (__contentPptxFile.Headers.ContentDisposition != null) - { - __contentPptxFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostRequest( - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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); - ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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); - ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Presenton.PptxFontsResponse.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.PptxFontsResponse.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(); - } - } - /// - /// 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. - ///
- /// - /// 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 ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync( - byte[] pptxFile, - string pptxFilename, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost - { - PptxFile = pptxFile, - PptxFilename = pptxFilename, - }; - - return await ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 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. - ///
- /// - /// 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 ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync( - global::System.IO.Stream pptxFile, - string pptxFilename, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - pptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile)); - var request = new global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost - { - PptxFile = global::System.Array.Empty(), - PptxFilename = pptxFilename, - }; - PrepareArguments( - client: HttpClient); - PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPptxFontsApiV1PptPptxFontsProcessPostSecurityRequirements, - operationName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync"); - - 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/pptx-fonts/process", - 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 __contentPptxFile = new global::System.Net.Http.StreamContent(pptxFile); - __contentPptxFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.PptxFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.PptxFilename) ?? 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: __contentPptxFile, - name: "\"pptx_file\"", - fileName: request.PptxFilename != null ? $"\"{request.PptxFilename}\"" : string.Empty); - if (__contentPptxFile.Headers.ContentDisposition != null) - { - __contentPptxFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostRequest( - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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); - ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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); - ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Presenton.PptxFontsResponse.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.PptxFontsResponse.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(); - } - } - /// - /// 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. - ///
- /// - /// 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> ProcessPptxFontsApiV1PptPptxFontsProcessPostAsResponseAsync( - global::System.IO.Stream pptxFile, - string pptxFilename, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - pptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile)); - var request = new global::Presenton.BodyProcessPptxFontsApiV1PptPptxFontsProcessPost - { - PptxFile = global::System.Array.Empty(), - PptxFilename = pptxFilename, - }; - PrepareArguments( - client: HttpClient); - PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPptxFontsApiV1PptPptxFontsProcessPostSecurityRequirements, - operationName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync"); - - 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/pptx-fonts/process", - 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 __contentPptxFile = new global::System.Net.Http.StreamContent(pptxFile); - __contentPptxFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.PptxFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.PptxFilename) ?? 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: __contentPptxFile, - name: "\"pptx_file\"", - fileName: request.PptxFilename != null ? $"\"{request.PptxFilename}\"" : string.Empty); - if (__contentPptxFile.Headers.ContentDisposition != null) - { - __contentPptxFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareProcessPptxFontsApiV1PptPptxFontsProcessPostRequest( - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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); - ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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: "ProcessPptxFontsApiV1PptPptxFontsProcessPost", - methodName: "ProcessPptxFontsApiV1PptPptxFontsProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-fonts/process\"", - 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); - ProcessProcessPptxFontsApiV1PptPptxFontsProcessPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Presenton.PptxFontsResponse.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.PptxFontsResponse.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.PptxFontsClient.g.cs b/src/libs/Presenton/Generated/Presenton.PptxFontsClient.g.cs deleted file mode 100644 index f21890c..0000000 --- a/src/libs/Presenton/Generated/Presenton.PptxFontsClient.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 PptxFontsClient : global::Presenton.IPptxFontsClient, 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 PptxFontsClient. - /// 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 PptxFontsClient( - 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 PptxFontsClient 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 PptxFontsClient( - 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 PptxFontsClient. - /// 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 PptxFontsClient( - 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.PptxSlidesClient.g.cs b/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.g.cs deleted file mode 100644 index 0435e2d..0000000 --- a/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.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 PptxSlidesClient : global::Presenton.IPptxSlidesClient, 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 PptxSlidesClient. - /// 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 PptxSlidesClient( - 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 PptxSlidesClient 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 PptxSlidesClient( - 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 PptxSlidesClient. - /// 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 PptxSlidesClient( - 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.PresentonClient.g.cs b/src/libs/Presenton/Generated/Presenton.PresentonClient.g.cs index 798f59d..416b47f 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentonClient.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentonClient.g.cs @@ -60,7 +60,7 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient /// /// /// - public CreditClient Credit => new CreditClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public ChatClient Chat => new ChatClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -69,7 +69,7 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient /// /// /// - public DebugClient Debug => new DebugClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public CreditClient Credit => new CreditClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -78,7 +78,7 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient /// /// /// - public DesignSystemClient DesignSystem => new DesignSystemClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public DebugClient Debug => new DebugClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -120,33 +120,6 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public HtmlCreateClient HtmlCreate => new HtmlCreateClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - - /// - /// - /// - public HtmlEditClient HtmlEdit => new HtmlEditClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - - /// - /// - /// - public HtmlToReactClient HtmlToReact => new HtmlToReactClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// @@ -183,33 +156,6 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public PdfSlidesClient PdfSlides => new PdfSlidesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - - /// - /// - /// - public PptxFontsClient PptxFonts => new PptxFontsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - - /// - /// - /// - public PptxSlidesClient PptxSlides => new PptxSlidesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// @@ -219,15 +165,6 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public ReactEditClient ReactEdit => new ReactEditClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// @@ -237,24 +174,6 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public SlideToHtmlClient SlideToHtml => new SlideToHtmlClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - - /// - /// - /// - public SlideToReactClient SlideToReact => new SlideToReactClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// @@ -264,15 +183,6 @@ public sealed partial class PresentonClient : global::Presenton.IPresentonClient JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public TemplateManagementClient TemplateManagement => new TemplateManagementClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// diff --git a/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs deleted file mode 100644 index 959e4e8..0000000 --- a/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs +++ /dev/null @@ -1,625 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - public partial class ReactEditClient - { - - - private static readonly global::Presenton.EndPointSecurityRequirement s_EditReactWithImageEndpointApiV1PptReactEditPostSecurityRequirement0 = - 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_EditReactWithImageEndpointApiV1PptReactEditPostSecurityRequirements = - new global::Presenton.EndPointSecurityRequirement[] - { s_EditReactWithImageEndpointApiV1PptReactEditPostSecurityRequirement0, - }; - partial void PrepareEditReactWithImageEndpointApiV1PptReactEditPostArguments( - global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost request); - partial void PrepareEditReactWithImageEndpointApiV1PptReactEditPostRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost request); - partial void ProcessEditReactWithImageEndpointApiV1PptReactEditPostResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessEditReactWithImageEndpointApiV1PptReactEditPostResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task EditReactWithImageEndpointApiV1PptReactEditPostAsync( - - global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await EditReactWithImageEndpointApiV1PptReactEditPostAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> EditReactWithImageEndpointApiV1PptReactEditPostAsResponseAsync( - - global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareEditReactWithImageEndpointApiV1PptReactEditPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_EditReactWithImageEndpointApiV1PptReactEditPostSecurityRequirements, - operationName: "EditReactWithImageEndpointApiV1PptReactEditPostAsync"); - - 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/react-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(); - if (request.CurrentUiImage != default) - { - - 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.React ?? string.Empty), - name: "\"react\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty), - name: "\"prompt\""); - - if (request.DesignSystem != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.DesignSystem ?? string.Empty), - name: "\"design_system\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::Presenton.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareEditReactWithImageEndpointApiV1PptReactEditPostRequest( - 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: "EditReactWithImageEndpointApiV1PptReactEditPost", - methodName: "EditReactWithImageEndpointApiV1PptReactEditPostAsync", - pathTemplate: "\"/api/v1/ppt/react-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: "EditReactWithImageEndpointApiV1PptReactEditPost", - methodName: "EditReactWithImageEndpointApiV1PptReactEditPostAsync", - pathTemplate: "\"/api/v1/ppt/react-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: "EditReactWithImageEndpointApiV1PptReactEditPost", - methodName: "EditReactWithImageEndpointApiV1PptReactEditPostAsync", - pathTemplate: "\"/api/v1/ppt/react-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); - ProcessEditReactWithImageEndpointApiV1PptReactEditPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "EditReactWithImageEndpointApiV1PptReactEditPost", - methodName: "EditReactWithImageEndpointApiV1PptReactEditPostAsync", - pathTemplate: "\"/api/v1/ppt/react-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: "EditReactWithImageEndpointApiV1PptReactEditPost", - methodName: "EditReactWithImageEndpointApiV1PptReactEditPostAsync", - pathTemplate: "\"/api/v1/ppt/react-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); - ProcessEditReactWithImageEndpointApiV1PptReactEditPostResponseContent( - 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 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 - /// - public async 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) - { - var __request = new global::Presenton.BodyEditReactWithImageEndpointApiV1PptReactEditPost - { - CurrentUiImage = currentUiImage, - CurrentUiImagename = currentUiImagename, - SketchImage = sketchImage, - SketchImagename = sketchImagename, - React = react, - Prompt = prompt, - DesignSystem = designSystem, - }; - - return await EditReactWithImageEndpointApiV1PptReactEditPostAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.ReactEditClient.g.cs b/src/libs/Presenton/Generated/Presenton.ReactEditClient.g.cs deleted file mode 100644 index 225abbf..0000000 --- a/src/libs/Presenton/Generated/Presenton.ReactEditClient.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 ReactEditClient : global::Presenton.IReactEditClient, 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 ReactEditClient. - /// 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 ReactEditClient( - 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 ReactEditClient 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 ReactEditClient( - 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 ReactEditClient. - /// 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 ReactEditClient( - 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.SlideToHtmlClient.g.cs b/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.g.cs deleted file mode 100644 index 7e5a2a4..0000000 --- a/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.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 SlideToHtmlClient : global::Presenton.ISlideToHtmlClient, 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 SlideToHtmlClient. - /// 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 SlideToHtmlClient( - 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 SlideToHtmlClient 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 SlideToHtmlClient( - 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 SlideToHtmlClient. - /// 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 SlideToHtmlClient( - 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.SlideToReactClient.g.cs b/src/libs/Presenton/Generated/Presenton.SlideToReactClient.g.cs deleted file mode 100644 index 96454dd..0000000 --- a/src/libs/Presenton/Generated/Presenton.SlideToReactClient.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 SlideToReactClient : global::Presenton.ISlideToReactClient, 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 SlideToReactClient. - /// 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 SlideToReactClient( - 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 SlideToReactClient 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 SlideToReactClient( - 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 SlideToReactClient. - /// 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 SlideToReactClient( - 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.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost.g.cs similarity index 89% rename from src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs rename to src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost.g.cs index 965861d..ef353df 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost.g.cs @@ -7,7 +7,7 @@ public partial class TemplateClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,30 +21,30 @@ public partial class TemplateClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostSecurityRequirement0, + { s_CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostSecurityRequirement0, }; - partial void PrepareCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostArguments( + partial void PrepareCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostArguments( global::System.Net.Http.HttpClient httpClient, ref bool? isReconstruct, global::Presenton.CreateSlideLayoutRequest request); - partial void PrepareCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRequest( + partial void PrepareCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, bool? isReconstruct, global::Presenton.CreateSlideLayoutRequest request); - partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostResponse( + partial void ProcessCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostResponseContent( + partial void ProcessCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Create Slide Layout Old + /// Create Slide Layout /// /// /// Whether the slide layout is being reconstructed
@@ -54,14 +54,14 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes /// 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 CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync( + public async global::System.Threading.Tasks.Task CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync( global::Presenton.CreateSlideLayoutRequest request, bool? isReconstruct = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsResponseAsync( + var __response = await CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsResponseAsync( request: request, isReconstruct: isReconstruct, @@ -72,7 +72,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes return __response.Body; } /// - /// Create Slide Layout Old + /// Create Slide Layout /// /// /// Whether the slide layout is being reconstructed
@@ -82,7 +82,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes /// 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> CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsResponseAsync( global::Presenton.CreateSlideLayoutRequest request, bool? isReconstruct = default, @@ -93,7 +93,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes PrepareArguments( client: HttpClient); - PrepareCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostArguments( + PrepareCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostArguments( httpClient: HttpClient, isReconstruct: ref isReconstruct, request: request); @@ -101,8 +101,8 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostSecurityRequirements, - operationName: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync"); + securityRequirements: s_CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostSecurityRequirements, + operationName: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -170,7 +170,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRequest( + PrepareCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, isReconstruct: isReconstruct, @@ -191,8 +191,8 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost", - methodName: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync", + operationId: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost", + methodName: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync", pathTemplate: "\"/api/v1/ppt/template/create/slide-layout\"", httpMethod: "POST", baseUri: BaseUri, @@ -225,8 +225,8 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost", - methodName: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync", + operationId: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost", + methodName: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync", pathTemplate: "\"/api/v1/ppt/template/create/slide-layout\"", httpMethod: "POST", baseUri: BaseUri, @@ -266,8 +266,8 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost", - methodName: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync", + operationId: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost", + methodName: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync", pathTemplate: "\"/api/v1/ppt/template/create/slide-layout\"", httpMethod: "POST", baseUri: BaseUri, @@ -306,7 +306,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes ProcessResponse( client: HttpClient, response: __response); - ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostResponse( + ProcessCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -314,8 +314,8 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost", - methodName: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync", + operationId: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost", + methodName: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync", pathTemplate: "\"/api/v1/ppt/template/create/slide-layout\"", httpMethod: "POST", baseUri: BaseUri, @@ -336,8 +336,8 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost", - methodName: "CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync", + operationId: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPost", + methodName: "CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync", pathTemplate: "\"/api/v1/ppt/template/create/slide-layout\"", httpMethod: "POST", baseUri: BaseUri, @@ -403,7 +403,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes client: HttpClient, response: __response, content: ref __content); - ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostResponseContent( + ProcessCreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -487,7 +487,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes } } /// - /// Create Slide Layout Old + /// Create Slide Layout /// /// /// Whether the slide layout is being reconstructed
@@ -498,7 +498,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes /// 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 CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync( + public async global::System.Threading.Tasks.Task CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync( global::System.Guid id, int index, bool? isReconstruct = default, @@ -511,7 +511,7 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes Index = index, }; - return await CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostAsync( + return await CreateSlideLayoutApiV1PptTemplateCreateSlideLayoutPostAsync( isReconstruct: isReconstruct, request: __request, requestOptions: requestOptions, diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsBatchApiV1PptTemplateLayoutsPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsBatchApiV1PptTemplateLayoutsPost.g.cs new file mode 100644 index 0000000..ded77ae --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsBatchApiV1PptTemplateLayoutsPost.g.cs @@ -0,0 +1,494 @@ + +#nullable enable + +namespace Presenton +{ + public partial class TemplateClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_GetLayoutsBatchApiV1PptTemplateLayoutsPostSecurityRequirement0 = + 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_GetLayoutsBatchApiV1PptTemplateLayoutsPostSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_GetLayoutsBatchApiV1PptTemplateLayoutsPostSecurityRequirement0, + }; + partial void PrepareGetLayoutsBatchApiV1PptTemplateLayoutsPostArguments( + global::System.Net.Http.HttpClient httpClient, + global::Presenton.GetMultipleTemplateLayoutsRequest request); + partial void PrepareGetLayoutsBatchApiV1PptTemplateLayoutsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Presenton.GetMultipleTemplateLayoutsRequest request); + partial void ProcessGetLayoutsBatchApiV1PptTemplateLayoutsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetLayoutsBatchApiV1PptTemplateLayoutsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Layouts Batch + /// + /// + /// 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> GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync( + + global::Presenton.GetMultipleTemplateLayoutsRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetLayoutsBatchApiV1PptTemplateLayoutsPostAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Layouts Batch + /// + /// + /// 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>> GetLayoutsBatchApiV1PptTemplateLayoutsPostAsResponseAsync( + + global::Presenton.GetMultipleTemplateLayoutsRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareGetLayoutsBatchApiV1PptTemplateLayoutsPostArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetLayoutsBatchApiV1PptTemplateLayoutsPostSecurityRequirements, + operationName: "GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync"); + + 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/ppt/template/layouts", + 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); + PrepareGetLayoutsBatchApiV1PptTemplateLayoutsPostRequest( + 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: "GetLayoutsBatchApiV1PptTemplateLayoutsPost", + methodName: "GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync", + pathTemplate: "\"/api/v1/ppt/template/layouts\"", + 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: "GetLayoutsBatchApiV1PptTemplateLayoutsPost", + methodName: "GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync", + pathTemplate: "\"/api/v1/ppt/template/layouts\"", + 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: "GetLayoutsBatchApiV1PptTemplateLayoutsPost", + methodName: "GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync", + pathTemplate: "\"/api/v1/ppt/template/layouts\"", + 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); + ProcessGetLayoutsBatchApiV1PptTemplateLayoutsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetLayoutsBatchApiV1PptTemplateLayoutsPost", + methodName: "GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync", + pathTemplate: "\"/api/v1/ppt/template/layouts\"", + 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: "GetLayoutsBatchApiV1PptTemplateLayoutsPost", + methodName: "GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync", + pathTemplate: "\"/api/v1/ppt/template/layouts\"", + 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); + ProcessGetLayoutsBatchApiV1PptTemplateLayoutsPostResponseContent( + 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(); + } + } + /// + /// Get Layouts Batch + /// + /// + /// 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> GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync( + global::System.Collections.Generic.IList templateIds, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Presenton.GetMultipleTemplateLayoutsRequest + { + TemplateIds = templateIds, + }; + + return await GetLayoutsBatchApiV1PptTemplateLayoutsPostAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs deleted file mode 100644 index aec4a17..0000000 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs +++ /dev/null @@ -1,592 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - public partial class TemplateManagementClient - { - - - private static readonly global::Presenton.EndPointSecurityRequirement s_SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostSecurityRequirement0 = - 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_SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostSecurityRequirements = - new global::Presenton.EndPointSecurityRequirement[] - { s_SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostSecurityRequirement0, - }; - partial void PrepareSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostArguments( - global::System.Net.Http.HttpClient httpClient, - global::Presenton.SaveLayoutsRequest request); - partial void PrepareSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.SaveLayoutsRequest request); - partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync( - - global::Presenton.SaveLayoutsRequest request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task> SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsResponseAsync( - - global::Presenton.SaveLayoutsRequest request, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostSecurityRequirements, - operationName: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync"); - - 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/ppt/template-management/save-templates", - 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); - PrepareSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRequest( - 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: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost", - methodName: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/save-templates\"", - 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: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost", - methodName: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/save-templates\"", - 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: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost", - methodName: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/save-templates\"", - 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); - ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost", - methodName: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/save-templates\"", - 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: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost", - methodName: "SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/save-templates\"", - 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 == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::Presenton.ErrorResponse? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Presenton.ErrorResponse.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::Presenton.ErrorResponse.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) - { - 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)); - } - // Internal server error - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - global::Presenton.ErrorResponse? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - - throw global::Presenton.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - responseBody: __content_500, - responseObject: __value_500, - 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); - ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Presenton.SaveLayoutsResponse.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.SaveLayoutsResponse.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(); - } - } - /// - /// 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 - /// - public async global::System.Threading.Tasks.Task SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync( - global::System.Collections.Generic.IList layouts, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Presenton.SaveLayoutsRequest - { - Layouts = layouts, - }; - - return await SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.g.cs deleted file mode 100644 index 036a795..0000000 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.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 TemplateManagementClient : global::Presenton.ITemplateManagementClient, 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 TemplateManagementClient. - /// 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 TemplateManagementClient( - 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 TemplateManagementClient 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 TemplateManagementClient( - 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 TemplateManagementClient. - /// 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 TemplateManagementClient( - 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.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs index 21168f2..fb5bdb4 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs @@ -42,13 +42,14 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task CreateThemeApiV1PptThemesCreatePostAsync( + public async global::System.Threading.Tasks.Task CreateThemeApiV1PptThemesCreatePostAsync( global::Presenton.BodyCreateThemeApiV1PptThemesCreatePost request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -64,13 +65,14 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task> CreateThemeApiV1PptThemesCreatePostAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateThemeApiV1PptThemesCreatePostAsResponseAsync( global::Presenton.BodyCreateThemeApiV1PptThemesCreatePost request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -335,6 +337,70 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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 == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Validation Error if ((int)__response.StatusCode == 422) { @@ -394,9 +460,9 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.PresentationThemeModel.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Presenton.PresentationThemeResponse.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 +492,9 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Presenton.PresentationThemeModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Presenton.PresentationThemeResponse.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,24 +535,23 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( } } /// - /// 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 /// - public async global::System.Threading.Tasks.Task CreateThemeApiV1PptThemesCreatePostAsync( + public async 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) { @@ -494,9 +559,9 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( { Name = name, Description = description, + Data = data, CompanyName = companyName, Logo = logo, - Data = data, }; return await CreateThemeApiV1PptThemesCreatePostAsync( diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs index 7baa500..cf8a412 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs @@ -37,7 +37,8 @@ partial void ProcessDeleteThemeApiV1PptThemesDeleteThemeIdDeleteResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// 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. @@ -55,7 +56,8 @@ await DeleteThemeApiV1PptThemesDeleteThemeIdDeleteAsResponseAsync( ).ConfigureAwait(false); } /// - /// 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. @@ -317,6 +319,102 @@ await DeleteThemeApiV1PptThemesDeleteThemeIdDeleteAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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 == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + 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.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs index dd46d3d..50d4091 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs @@ -40,12 +40,13 @@ partial void ProcessGetDefaultThemesApiV1PptThemesDefaultGetResponseContent( ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task> GetDefaultThemesApiV1PptThemesDefaultGetAsync( + public async global::System.Threading.Tasks.Task> GetDefaultThemesApiV1PptThemesDefaultGetAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -57,12 +58,13 @@ partial void ProcessGetDefaultThemesApiV1PptThemesDefaultGetResponseContent( return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task>> GetDefaultThemesApiV1PptThemesDefaultGetAsResponseAsync( + public async global::System.Threading.Tasks.Task>> GetDefaultThemesApiV1PptThemesDefaultGetAsResponseAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -337,9 +339,9 @@ partial void ProcessGetDefaultThemesApiV1PptThemesDefaultGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + 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>( + return new global::Presenton.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -369,9 +371,9 @@ partial void ProcessGetDefaultThemesApiV1PptThemesDefaultGetResponseContent( #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) ?? + 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>( + return new global::Presenton.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs index 3c94d8a..ce85f29 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs @@ -40,12 +40,13 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task> GetThemesApiV1PptThemesAllGetAsync( + public async global::System.Threading.Tasks.Task> GetThemesApiV1PptThemesAllGetAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -57,12 +58,13 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task>> GetThemesApiV1PptThemesAllGetAsResponseAsync( + public async global::System.Threading.Tasks.Task>> GetThemesApiV1PptThemesAllGetAsResponseAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -315,6 +317,75 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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)); + } + // 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) { @@ -337,9 +408,9 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + 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>( + return new global::Presenton.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -369,9 +440,9 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( #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) ?? + 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>( + return new global::Presenton.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs index a763f03..4709205 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs @@ -44,14 +44,15 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync( + public async global::System.Threading.Tasks.Task UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync( global::System.Guid themeId, global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch request, @@ -69,14 +70,15 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task> UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsResponseAsync( + public async global::System.Threading.Tasks.Task> UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsResponseAsync( global::System.Guid themeId, global::Presenton.BodyUpdateThemeApiV1PptThemesUpdateThemeIdPatch request, @@ -344,6 +346,102 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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 == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Validation Error if ((int)__response.StatusCode == 422) { @@ -403,9 +501,9 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.PresentationThemeModel.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Presenton.PresentationThemeResponse.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, @@ -435,9 +533,9 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Presenton.PresentationThemeModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Presenton.PresentationThemeResponse.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, @@ -478,7 +576,8 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( } } /// - /// 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. ///
/// /// @@ -489,13 +588,13 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( /// 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 UpdateThemeApiV1PptThemesUpdateThemeIdPatchAsync( + public async 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.V2DesignClient.CreateDesignReferenceApiV2PptDesignCreateReferencePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignReferenceApiV2PptDesignCreateReferencePost.g.cs new file mode 100644 index 0000000..cd0354b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignReferenceApiV2PptDesignCreateReferencePost.g.cs @@ -0,0 +1,518 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V2DesignClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_CreateDesignReferenceApiV2PptDesignCreateReferencePostSecurityRequirement0 = + 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_CreateDesignReferenceApiV2PptDesignCreateReferencePostSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_CreateDesignReferenceApiV2PptDesignCreateReferencePostSecurityRequirement0, + }; + partial void PrepareCreateDesignReferenceApiV2PptDesignCreateReferencePostArguments( + global::System.Net.Http.HttpClient httpClient, + ref bool? isReconstruct, + global::Presenton.CreateDesignReferenceRequest request); + partial void PrepareCreateDesignReferenceApiV2PptDesignCreateReferencePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + bool? isReconstruct, + global::Presenton.CreateDesignReferenceRequest request); + partial void ProcessCreateDesignReferenceApiV2PptDesignCreateReferencePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateDesignReferenceApiV2PptDesignCreateReferencePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync( + + global::Presenton.CreateDesignReferenceRequest request, + bool? isReconstruct = default, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateDesignReferenceApiV2PptDesignCreateReferencePostAsResponseAsync( + + request: request, + isReconstruct: isReconstruct, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> CreateDesignReferenceApiV2PptDesignCreateReferencePostAsResponseAsync( + + global::Presenton.CreateDesignReferenceRequest request, + bool? isReconstruct = default, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateDesignReferenceApiV2PptDesignCreateReferencePostArguments( + httpClient: HttpClient, + isReconstruct: ref isReconstruct, + request: request); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateDesignReferenceApiV2PptDesignCreateReferencePostSecurityRequirements, + operationName: "CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync"); + + 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/v2/ppt/design/create/reference", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("is_reconstruct", isReconstruct?.ToString().ToLowerInvariant()) + ; + 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); + PrepareCreateDesignReferenceApiV2PptDesignCreateReferencePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + isReconstruct: isReconstruct, + 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: "CreateDesignReferenceApiV2PptDesignCreateReferencePost", + methodName: "CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync", + pathTemplate: "\"/api/v2/ppt/design/create/reference\"", + 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: "CreateDesignReferenceApiV2PptDesignCreateReferencePost", + methodName: "CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync", + pathTemplate: "\"/api/v2/ppt/design/create/reference\"", + 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: "CreateDesignReferenceApiV2PptDesignCreateReferencePost", + methodName: "CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync", + pathTemplate: "\"/api/v2/ppt/design/create/reference\"", + 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); + ProcessCreateDesignReferenceApiV2PptDesignCreateReferencePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDesignReferenceApiV2PptDesignCreateReferencePost", + methodName: "CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync", + pathTemplate: "\"/api/v2/ppt/design/create/reference\"", + 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: "CreateDesignReferenceApiV2PptDesignCreateReferencePost", + methodName: "CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync", + pathTemplate: "\"/api/v2/ppt/design/create/reference\"", + 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); + ProcessCreateDesignReferenceApiV2PptDesignCreateReferencePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Presenton.CreateDesignReferenceResponse.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.CreateDesignReferenceResponse.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(); + } + } + /// + /// 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 + /// + public async 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) + { + var __request = new global::Presenton.CreateDesignReferenceRequest + { + Id = id, + Index = index, + }; + + return await CreateDesignReferenceApiV2PptDesignCreateReferencePostAsync( + isReconstruct: isReconstruct, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignReferenceApiV2PptDesignReferenceCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignReferenceApiV2PptDesignReferenceCreatePost.g.cs new file mode 100644 index 0000000..ad2d88f --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignReferenceApiV2PptDesignReferenceCreatePost.g.cs @@ -0,0 +1,518 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V2DesignClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_CreateDesignReferenceApiV2PptDesignReferenceCreatePostSecurityRequirement0 = + 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_CreateDesignReferenceApiV2PptDesignReferenceCreatePostSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_CreateDesignReferenceApiV2PptDesignReferenceCreatePostSecurityRequirement0, + }; + partial void PrepareCreateDesignReferenceApiV2PptDesignReferenceCreatePostArguments( + global::System.Net.Http.HttpClient httpClient, + ref bool? isReconstruct, + global::Presenton.CreateDesignReferenceRequest request); + partial void PrepareCreateDesignReferenceApiV2PptDesignReferenceCreatePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + bool? isReconstruct, + global::Presenton.CreateDesignReferenceRequest request); + partial void ProcessCreateDesignReferenceApiV2PptDesignReferenceCreatePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateDesignReferenceApiV2PptDesignReferenceCreatePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync( + + global::Presenton.CreateDesignReferenceRequest request, + bool? isReconstruct = default, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsResponseAsync( + + request: request, + isReconstruct: isReconstruct, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsResponseAsync( + + global::Presenton.CreateDesignReferenceRequest request, + bool? isReconstruct = default, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateDesignReferenceApiV2PptDesignReferenceCreatePostArguments( + httpClient: HttpClient, + isReconstruct: ref isReconstruct, + request: request); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateDesignReferenceApiV2PptDesignReferenceCreatePostSecurityRequirements, + operationName: "CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync"); + + 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/v2/ppt/design/reference/create", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("is_reconstruct", isReconstruct?.ToString().ToLowerInvariant()) + ; + 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); + PrepareCreateDesignReferenceApiV2PptDesignReferenceCreatePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + isReconstruct: isReconstruct, + 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: "CreateDesignReferenceApiV2PptDesignReferenceCreatePost", + methodName: "CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/create\"", + 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: "CreateDesignReferenceApiV2PptDesignReferenceCreatePost", + methodName: "CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/create\"", + 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: "CreateDesignReferenceApiV2PptDesignReferenceCreatePost", + methodName: "CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/create\"", + 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); + ProcessCreateDesignReferenceApiV2PptDesignReferenceCreatePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateDesignReferenceApiV2PptDesignReferenceCreatePost", + methodName: "CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/create\"", + 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: "CreateDesignReferenceApiV2PptDesignReferenceCreatePost", + methodName: "CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/create\"", + 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); + ProcessCreateDesignReferenceApiV2PptDesignReferenceCreatePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Presenton.CreateDesignReferenceResponse.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.CreateDesignReferenceResponse.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(); + } + } + /// + /// 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 + /// + public async 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) + { + var __request = new global::Presenton.CreateDesignReferenceRequest + { + Id = id, + Index = index, + }; + + return await CreateDesignReferenceApiV2PptDesignReferenceCreatePostAsync( + isReconstruct: isReconstruct, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost.g.cs index fe043b0..f1846ed 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost.g.cs @@ -7,7 +7,7 @@ public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,41 +21,40 @@ public partial class V2DesignClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirement0, + { s_CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirement0, }; - partial void PrepareCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostArguments( + partial void PrepareCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.CreateDesignSystemRequest request); - partial void PrepareCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRequest( + global::Presenton.CreateDesignRequest request); + partial void PrepareCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.CreateDesignSystemRequest request); - partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostResponse( + global::Presenton.CreateDesignRequest request); + partial void ProcessCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostResponseContent( + partial void ProcessCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync( + public async 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) { - var __response = await CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsResponseAsync( + var __response = await CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -65,16 +64,15 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task> CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsResponseAsync( + public async 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) { @@ -82,15 +80,15 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon PrepareArguments( client: HttpClient); - PrepareCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostArguments( + PrepareCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirements, - operationName: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync"); + securityRequirements: s_CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostSecurityRequirements, + operationName: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -155,7 +153,7 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRequest( + PrepareCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -175,8 +173,8 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost", - methodName: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync", + operationId: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost", + methodName: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync", pathTemplate: "\"/api/v2/ppt/design/create/async\"", httpMethod: "POST", baseUri: BaseUri, @@ -209,8 +207,8 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost", - methodName: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync", + operationId: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost", + methodName: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync", pathTemplate: "\"/api/v2/ppt/design/create/async\"", httpMethod: "POST", baseUri: BaseUri, @@ -250,8 +248,8 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost", - methodName: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync", + operationId: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost", + methodName: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync", pathTemplate: "\"/api/v2/ppt/design/create/async\"", httpMethod: "POST", baseUri: BaseUri, @@ -290,7 +288,7 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon ProcessResponse( client: HttpClient, response: __response); - ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostResponse( + ProcessCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -298,8 +296,8 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost", - methodName: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync", + operationId: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost", + methodName: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync", pathTemplate: "\"/api/v2/ppt/design/create/async\"", httpMethod: "POST", baseUri: BaseUri, @@ -320,8 +318,8 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost", - methodName: "CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync", + operationId: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPost", + methodName: "CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync", pathTemplate: "\"/api/v2/ppt/design/create/async\"", httpMethod: "POST", baseUri: BaseUri, @@ -387,7 +385,7 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon client: HttpClient, response: __response, content: ref __content); - ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostResponseContent( + ProcessCreateDesignV2AsyncApiV2PptDesignCreateAsyncPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -471,30 +469,32 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon } } /// - /// 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 /// - public async global::System.Threading.Tasks.Task CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync( - global::System.Collections.Generic.IList slideImageUrls, + public async 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) { - var __request = new global::Presenton.CreateDesignSystemRequest + var __request = new global::Presenton.CreateDesignRequest { PptxUrl = pptxUrl, + Name = name, SlideImageUrls = slideImageUrls, Fonts = fonts, }; - return await CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostAsync( + return await CreateDesignV2AsyncApiV2PptDesignCreateAsyncPostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignV2ApiV2PptDesignDesignIdUiDelete.g.cs similarity index 87% rename from src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignV2ApiV2PptDesignDesignIdUiDelete.g.cs index 5f2e5d2..09f94db 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignV2ApiV2PptDesignDesignIdUiDelete.g.cs @@ -7,7 +7,7 @@ public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,62 +21,62 @@ public partial class V2DesignClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteSecurityRequirement0, + { s_DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteSecurityRequirement0, }; - partial void PrepareDeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteArguments( + partial void PrepareDeleteDesignV2ApiV2PptDesignDesignIdUiDeleteArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid designSystemId); - partial void PrepareDeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteRequest( + ref global::System.Guid designId); + partial void PrepareDeleteDesignV2ApiV2PptDesignDesignIdUiDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid designSystemId); - partial void ProcessDeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteResponse( + global::System.Guid designId); + partial void ProcessDeleteDesignV2ApiV2PptDesignDesignIdUiDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// 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 /// - public async global::System.Threading.Tasks.Task DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync( - global::System.Guid designSystemId, + public async global::System.Threading.Tasks.Task DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync( + global::System.Guid designId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( - designSystemId: designSystemId, + await DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsResponseAsync( + designId: designId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); } /// - /// 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 /// - public async global::System.Threading.Tasks.Task DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( - global::System.Guid designSystemId, + public async global::System.Threading.Tasks.Task DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsResponseAsync( + global::System.Guid designId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteArguments( + PrepareDeleteDesignV2ApiV2PptDesignDesignIdUiDeleteArguments( httpClient: HttpClient, - designSystemId: ref designSystemId); + designId: ref designId); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteSecurityRequirements, - operationName: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync"); + securityRequirements: s_DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteSecurityRequirements, + operationName: "DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -96,7 +96,7 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( { var __pathBuilder = new global::Presenton.PathBuilder( - path: $"/api/v2/ppt/design/{designSystemId}/ui", + path: $"/api/v2/ppt/design/{designId}/ui", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -135,10 +135,10 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteRequest( + PrepareDeleteDesignV2ApiV2PptDesignDesignIdUiDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - designSystemId: designSystemId!); + designId: designId!); return __httpRequest; } @@ -155,9 +155,9 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete", - methodName: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/ui\"", + operationId: "DeleteDesignV2ApiV2PptDesignDesignIdUiDelete", + methodName: "DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -189,9 +189,9 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete", - methodName: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/ui\"", + operationId: "DeleteDesignV2ApiV2PptDesignDesignIdUiDelete", + methodName: "DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -230,9 +230,9 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete", - methodName: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/ui\"", + operationId: "DeleteDesignV2ApiV2PptDesignDesignIdUiDelete", + methodName: "DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -270,7 +270,7 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteResponse( + ProcessDeleteDesignV2ApiV2PptDesignDesignIdUiDeleteResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -278,9 +278,9 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete", - methodName: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/ui\"", + operationId: "DeleteDesignV2ApiV2PptDesignDesignIdUiDelete", + methodName: "DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -300,9 +300,9 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete", - methodName: "DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/ui\"", + operationId: "DeleteDesignV2ApiV2PptDesignDesignIdUiDelete", + methodName: "DeleteDesignV2ApiV2PptDesignDesignIdUiDeleteAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, diff --git a/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.EditDesignReferenceApiV2PptDesignReferenceEditPost.g.cs similarity index 84% rename from src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.EditDesignReferenceApiV2PptDesignReferenceEditPost.g.cs index 80be773..f7a2e82 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.EditDesignReferenceApiV2PptDesignReferenceEditPost.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class HtmlToReactClient + public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_ConvertHtmlToReactApiV1PptHtmlToReactPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_EditDesignReferenceApiV2PptDesignReferenceEditPostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,45 +21,40 @@ public partial class HtmlToReactClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_ConvertHtmlToReactApiV1PptHtmlToReactPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_EditDesignReferenceApiV2PptDesignReferenceEditPostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_ConvertHtmlToReactApiV1PptHtmlToReactPostSecurityRequirement0, + { s_EditDesignReferenceApiV2PptDesignReferenceEditPostSecurityRequirement0, }; - partial void PrepareConvertHtmlToReactApiV1PptHtmlToReactPostArguments( + partial void PrepareEditDesignReferenceApiV2PptDesignReferenceEditPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.HtmlToReactRequest request); - partial void PrepareConvertHtmlToReactApiV1PptHtmlToReactPostRequest( + global::Presenton.EditDesignReferenceRequest request); + partial void PrepareEditDesignReferenceApiV2PptDesignReferenceEditPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.HtmlToReactRequest request); - partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponse( + global::Presenton.EditDesignReferenceRequest request); + partial void ProcessEditDesignReferenceApiV2PptDesignReferenceEditPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( + partial void ProcessEditDesignReferenceApiV2PptDesignReferenceEditPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 + /// Edit Design Reference ///
/// /// 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 ConvertHtmlToReactApiV1PptHtmlToReactPostAsync( + public async global::System.Threading.Tasks.Task EditDesignReferenceApiV2PptDesignReferenceEditPostAsync( - global::Presenton.HtmlToReactRequest request, + global::Presenton.EditDesignReferenceRequest request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ConvertHtmlToReactApiV1PptHtmlToReactPostAsResponseAsync( + var __response = await EditDesignReferenceApiV2PptDesignReferenceEditPostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -69,20 +64,15 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( return __response.Body; } /// - /// 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 + /// Edit Design Reference ///
/// /// 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> ConvertHtmlToReactApiV1PptHtmlToReactPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> EditDesignReferenceApiV2PptDesignReferenceEditPostAsResponseAsync( - global::Presenton.HtmlToReactRequest request, + global::Presenton.EditDesignReferenceRequest request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -90,15 +80,15 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( PrepareArguments( client: HttpClient); - PrepareConvertHtmlToReactApiV1PptHtmlToReactPostArguments( + PrepareEditDesignReferenceApiV2PptDesignReferenceEditPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ConvertHtmlToReactApiV1PptHtmlToReactPostSecurityRequirements, - operationName: "ConvertHtmlToReactApiV1PptHtmlToReactPostAsync"); + securityRequirements: s_EditDesignReferenceApiV2PptDesignReferenceEditPostSecurityRequirements, + operationName: "EditDesignReferenceApiV2PptDesignReferenceEditPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -118,7 +108,7 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( { var __pathBuilder = new global::Presenton.PathBuilder( - path: "/api/v1/ppt/html-to-react/", + path: "/api/v2/ppt/design/reference/edit", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -163,7 +153,7 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareConvertHtmlToReactApiV1PptHtmlToReactPostRequest( + PrepareEditDesignReferenceApiV2PptDesignReferenceEditPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -183,9 +173,9 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ConvertHtmlToReactApiV1PptHtmlToReactPost", - methodName: "ConvertHtmlToReactApiV1PptHtmlToReactPostAsync", - pathTemplate: "\"/api/v1/ppt/html-to-react/\"", + operationId: "EditDesignReferenceApiV2PptDesignReferenceEditPost", + methodName: "EditDesignReferenceApiV2PptDesignReferenceEditPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -217,9 +207,9 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ConvertHtmlToReactApiV1PptHtmlToReactPost", - methodName: "ConvertHtmlToReactApiV1PptHtmlToReactPostAsync", - pathTemplate: "\"/api/v1/ppt/html-to-react/\"", + operationId: "EditDesignReferenceApiV2PptDesignReferenceEditPost", + methodName: "EditDesignReferenceApiV2PptDesignReferenceEditPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -258,9 +248,9 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ConvertHtmlToReactApiV1PptHtmlToReactPost", - methodName: "ConvertHtmlToReactApiV1PptHtmlToReactPostAsync", - pathTemplate: "\"/api/v1/ppt/html-to-react/\"", + operationId: "EditDesignReferenceApiV2PptDesignReferenceEditPost", + methodName: "EditDesignReferenceApiV2PptDesignReferenceEditPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -298,7 +288,7 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponse( + ProcessEditDesignReferenceApiV2PptDesignReferenceEditPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -306,9 +296,9 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ConvertHtmlToReactApiV1PptHtmlToReactPost", - methodName: "ConvertHtmlToReactApiV1PptHtmlToReactPostAsync", - pathTemplate: "\"/api/v1/ppt/html-to-react/\"", + operationId: "EditDesignReferenceApiV2PptDesignReferenceEditPost", + methodName: "EditDesignReferenceApiV2PptDesignReferenceEditPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -328,9 +318,9 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ConvertHtmlToReactApiV1PptHtmlToReactPost", - methodName: "ConvertHtmlToReactApiV1PptHtmlToReactPostAsync", - pathTemplate: "\"/api/v1/ppt/html-to-react/\"", + operationId: "EditDesignReferenceApiV2PptDesignReferenceEditPost", + methodName: "EditDesignReferenceApiV2PptDesignReferenceEditPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -395,7 +385,7 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( + ProcessEditDesignReferenceApiV2PptDesignReferenceEditPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -404,9 +394,9 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.HtmlToReactResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Presenton.EditDesignReferenceResponse.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 ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Presenton.HtmlToReactResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Presenton.EditDesignReferenceResponse.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,31 +469,26 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( } } /// - /// 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 + /// Edit Design Reference ///
/// - /// + /// /// 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 ConvertHtmlToReactApiV1PptHtmlToReactPostAsync( + public async global::System.Threading.Tasks.Task EditDesignReferenceApiV2PptDesignReferenceEditPostAsync( string html, - string? image = default, + string prompt, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Presenton.HtmlToReactRequest + var __request = new global::Presenton.EditDesignReferenceRequest { Html = html, - Image = image, + Prompt = prompt, }; - return await ConvertHtmlToReactApiV1PptHtmlToReactPostAsync( + return await EditDesignReferenceApiV2PptDesignReferenceEditPostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost.g.cs new file mode 100644 index 0000000..fbe87d2 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost.g.cs @@ -0,0 +1,500 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V2DesignClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostSecurityRequirement0 = + 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_EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostSecurityRequirement0, + }; + partial void PrepareEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostArguments( + global::System.Net.Http.HttpClient httpClient, + global::Presenton.EditDesignReferenceSectionRequest request); + partial void PrepareEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Presenton.EditDesignReferenceSectionRequest request); + partial void ProcessEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Edit Design Reference Section + /// + /// + /// 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 EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync( + + global::Presenton.EditDesignReferenceSectionRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Edit Design Reference Section + /// + /// + /// 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> EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsResponseAsync( + + global::Presenton.EditDesignReferenceSectionRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostSecurityRequirements, + operationName: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync"); + + 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/v2/ppt/design/reference/edit-section", + 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); + PrepareEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostRequest( + 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: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost", + methodName: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit-section\"", + 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: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost", + methodName: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit-section\"", + 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: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost", + methodName: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit-section\"", + 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); + ProcessEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost", + methodName: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit-section\"", + 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: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPost", + methodName: "EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync", + pathTemplate: "\"/api/v2/ppt/design/reference/edit-section\"", + 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); + ProcessEditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Presenton.EditDesignReferenceSectionResponse.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.EditDesignReferenceSectionResponse.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 Design Reference Section + /// + /// + /// + /// + /// 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 EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync( + string html, + string section, + string prompt, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Presenton.EditDesignReferenceSectionRequest + { + Html = html, + Section = section, + Prompt = prompt, + }; + + return await EditDesignReferenceSectionApiV2PptDesignReferenceEditSectionPostAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignsForUiApiV2PptDesignAllUiGet.g.cs similarity index 90% rename from src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignsForUiApiV2PptDesignAllUiGet.g.cs index 587710d..9e0e4cb 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignsForUiApiV2PptDesignAllUiGet.g.cs @@ -7,7 +7,7 @@ public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GetAllDesignSystemsForUiApiV2PptDesignAllUiGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GetAllDesignsForUiApiV2PptDesignAllUiGetSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,30 +21,30 @@ public partial class V2DesignClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetAllDesignSystemsForUiApiV2PptDesignAllUiGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetAllDesignsForUiApiV2PptDesignAllUiGetSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GetAllDesignSystemsForUiApiV2PptDesignAllUiGetSecurityRequirement0, + { s_GetAllDesignsForUiApiV2PptDesignAllUiGetSecurityRequirement0, }; - partial void PrepareGetAllDesignSystemsForUiApiV2PptDesignAllUiGetArguments( + partial void PrepareGetAllDesignsForUiApiV2PptDesignAllUiGetArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, ref int? pageSize); - partial void PrepareGetAllDesignSystemsForUiApiV2PptDesignAllUiGetRequest( + partial void PrepareGetAllDesignsForUiApiV2PptDesignAllUiGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? page, int? pageSize); - partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponse( + partial void ProcessGetAllDesignsForUiApiV2PptDesignAllUiGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseContent( + partial void ProcessGetAllDesignsForUiApiV2PptDesignAllUiGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get All Design Systems For Ui + /// Get All Designs For Ui /// /// /// Default Value: 1 @@ -55,13 +55,13 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten /// 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 GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync( + public async global::System.Threading.Tasks.Task GetAllDesignsForUiApiV2PptDesignAllUiGetAsync( int? page = default, int? pageSize = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsResponseAsync( + var __response = await GetAllDesignsForUiApiV2PptDesignAllUiGetAsResponseAsync( page: page, pageSize: pageSize, requestOptions: requestOptions, @@ -71,7 +71,7 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten return __response.Body; } /// - /// Get All Design Systems For Ui + /// Get All Designs For Ui /// /// /// Default Value: 1 @@ -82,7 +82,7 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten /// 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> GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetAllDesignsForUiApiV2PptDesignAllUiGetAsResponseAsync( int? page = default, int? pageSize = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -90,7 +90,7 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten { PrepareArguments( client: HttpClient); - PrepareGetAllDesignSystemsForUiApiV2PptDesignAllUiGetArguments( + PrepareGetAllDesignsForUiApiV2PptDesignAllUiGetArguments( httpClient: HttpClient, page: ref page, pageSize: ref pageSize); @@ -98,8 +98,8 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetAllDesignSystemsForUiApiV2PptDesignAllUiGetSecurityRequirements, - operationName: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync"); + securityRequirements: s_GetAllDesignsForUiApiV2PptDesignAllUiGetSecurityRequirements, + operationName: "GetAllDesignsForUiApiV2PptDesignAllUiGetAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -162,7 +162,7 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetAllDesignSystemsForUiApiV2PptDesignAllUiGetRequest( + PrepareGetAllDesignsForUiApiV2PptDesignAllUiGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, page: page, @@ -183,8 +183,8 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGet", - methodName: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync", + operationId: "GetAllDesignsForUiApiV2PptDesignAllUiGet", + methodName: "GetAllDesignsForUiApiV2PptDesignAllUiGetAsync", pathTemplate: "\"/api/v2/ppt/design/all/ui\"", httpMethod: "GET", baseUri: BaseUri, @@ -217,8 +217,8 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGet", - methodName: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync", + operationId: "GetAllDesignsForUiApiV2PptDesignAllUiGet", + methodName: "GetAllDesignsForUiApiV2PptDesignAllUiGetAsync", pathTemplate: "\"/api/v2/ppt/design/all/ui\"", httpMethod: "GET", baseUri: BaseUri, @@ -258,8 +258,8 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGet", - methodName: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync", + operationId: "GetAllDesignsForUiApiV2PptDesignAllUiGet", + methodName: "GetAllDesignsForUiApiV2PptDesignAllUiGetAsync", pathTemplate: "\"/api/v2/ppt/design/all/ui\"", httpMethod: "GET", baseUri: BaseUri, @@ -298,7 +298,7 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten ProcessResponse( client: HttpClient, response: __response); - ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponse( + ProcessGetAllDesignsForUiApiV2PptDesignAllUiGetResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -306,8 +306,8 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGet", - methodName: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync", + operationId: "GetAllDesignsForUiApiV2PptDesignAllUiGet", + methodName: "GetAllDesignsForUiApiV2PptDesignAllUiGetAsync", pathTemplate: "\"/api/v2/ppt/design/all/ui\"", httpMethod: "GET", baseUri: BaseUri, @@ -328,8 +328,8 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGet", - methodName: "GetAllDesignSystemsForUiApiV2PptDesignAllUiGetAsync", + operationId: "GetAllDesignsForUiApiV2PptDesignAllUiGet", + methodName: "GetAllDesignsForUiApiV2PptDesignAllUiGetAsync", pathTemplate: "\"/api/v2/ppt/design/all/ui\"", httpMethod: "GET", baseUri: BaseUri, @@ -395,7 +395,7 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten client: HttpClient, response: __response, content: ref __content); - ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseContent( + ProcessGetAllDesignsForUiApiV2PptDesignAllUiGetResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignsForUiApiV2PptDesignDefaultGet.g.cs similarity index 90% rename from src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignsForUiApiV2PptDesignDefaultGet.g.cs index ee92c70..0d5f083 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignsForUiApiV2PptDesignDefaultGet.g.cs @@ -7,7 +7,7 @@ public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GetDefaultDesignsForUiApiV2PptDesignDefaultGetSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,30 +21,30 @@ public partial class V2DesignClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetDefaultDesignsForUiApiV2PptDesignDefaultGetSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetSecurityRequirement0, + { s_GetDefaultDesignsForUiApiV2PptDesignDefaultGetSecurityRequirement0, }; - partial void PrepareGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetArguments( + partial void PrepareGetDefaultDesignsForUiApiV2PptDesignDefaultGetArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, ref int? pageSize); - partial void PrepareGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetRequest( + partial void PrepareGetDefaultDesignsForUiApiV2PptDesignDefaultGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? page, int? pageSize); - partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse( + partial void ProcessGetDefaultDesignsForUiApiV2PptDesignDefaultGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponseContent( + partial void ProcessGetDefaultDesignsForUiApiV2PptDesignDefaultGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get Default Design Systems For Ui + /// Get Default Designs For Ui /// /// /// Default Value: 1 @@ -55,13 +55,13 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse /// 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 GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync( + public async global::System.Threading.Tasks.Task GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync( int? page = default, int? pageSize = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsResponseAsync( + var __response = await GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsResponseAsync( page: page, pageSize: pageSize, requestOptions: requestOptions, @@ -71,7 +71,7 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse return __response.Body; } /// - /// Get Default Design Systems For Ui + /// Get Default Designs For Ui /// /// /// Default Value: 1 @@ -82,7 +82,7 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse /// 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> GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsResponseAsync( int? page = default, int? pageSize = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -90,7 +90,7 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse { PrepareArguments( client: HttpClient); - PrepareGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetArguments( + PrepareGetDefaultDesignsForUiApiV2PptDesignDefaultGetArguments( httpClient: HttpClient, page: ref page, pageSize: ref pageSize); @@ -98,8 +98,8 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetSecurityRequirements, - operationName: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync"); + securityRequirements: s_GetDefaultDesignsForUiApiV2PptDesignDefaultGetSecurityRequirements, + operationName: "GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -162,7 +162,7 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetRequest( + PrepareGetDefaultDesignsForUiApiV2PptDesignDefaultGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, page: page, @@ -183,8 +183,8 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet", - methodName: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync", + operationId: "GetDefaultDesignsForUiApiV2PptDesignDefaultGet", + methodName: "GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync", pathTemplate: "\"/api/v2/ppt/design/default\"", httpMethod: "GET", baseUri: BaseUri, @@ -217,8 +217,8 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet", - methodName: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync", + operationId: "GetDefaultDesignsForUiApiV2PptDesignDefaultGet", + methodName: "GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync", pathTemplate: "\"/api/v2/ppt/design/default\"", httpMethod: "GET", baseUri: BaseUri, @@ -258,8 +258,8 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet", - methodName: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync", + operationId: "GetDefaultDesignsForUiApiV2PptDesignDefaultGet", + methodName: "GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync", pathTemplate: "\"/api/v2/ppt/design/default\"", httpMethod: "GET", baseUri: BaseUri, @@ -298,7 +298,7 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse ProcessResponse( client: HttpClient, response: __response); - ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse( + ProcessGetDefaultDesignsForUiApiV2PptDesignDefaultGetResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -306,8 +306,8 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet", - methodName: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync", + operationId: "GetDefaultDesignsForUiApiV2PptDesignDefaultGet", + methodName: "GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync", pathTemplate: "\"/api/v2/ppt/design/default\"", httpMethod: "GET", baseUri: BaseUri, @@ -328,8 +328,8 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet", - methodName: "GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetAsync", + operationId: "GetDefaultDesignsForUiApiV2PptDesignDefaultGet", + methodName: "GetDefaultDesignsForUiApiV2PptDesignDefaultGetAsync", pathTemplate: "\"/api/v2/ppt/design/default\"", httpMethod: "GET", baseUri: BaseUri, @@ -395,7 +395,7 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse client: HttpClient, response: __response, content: ref __content); - ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponseContent( + ProcessGetDefaultDesignsForUiApiV2PptDesignDefaultGetResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet.g.cs similarity index 85% rename from src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet.g.cs index 999b127..82d69a0 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet.g.cs @@ -7,7 +7,7 @@ public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,40 +21,40 @@ public partial class V2DesignClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetSecurityRequirement0, + { s_GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetSecurityRequirement0, }; - partial void PrepareGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetArguments( + partial void PrepareGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid designSystemId); - partial void PrepareGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetRequest( + ref global::System.Guid designId); + partial void PrepareGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid designSystemId); - partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetResponse( + global::System.Guid designId); + partial void ProcessGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetResponseContent( + partial void ProcessGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync( - global::System.Guid designSystemId, + public async global::System.Threading.Tasks.Task GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync( + global::System.Guid designId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsResponseAsync( - designSystemId: designSystemId, + var __response = await GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsResponseAsync( + designId: designId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -62,28 +62,28 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task> GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsResponseAsync( - global::System.Guid designSystemId, + public async global::System.Threading.Tasks.Task> GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsResponseAsync( + global::System.Guid designId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetArguments( + PrepareGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetArguments( httpClient: HttpClient, - designSystemId: ref designSystemId); + designId: ref designId); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetSecurityRequirements, - operationName: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync"); + securityRequirements: s_GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetSecurityRequirements, + operationName: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -103,7 +103,7 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI { var __pathBuilder = new global::Presenton.PathBuilder( - path: $"/api/v2/ppt/design/{designSystemId}/export-info", + path: $"/api/v2/ppt/design/{designId}/export-info", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -142,10 +142,10 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetRequest( + PrepareGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - designSystemId: designSystemId!); + designId: designId!); return __httpRequest; } @@ -162,9 +162,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet", - methodName: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/export-info\"", + operationId: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet", + methodName: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/export-info\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -196,9 +196,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet", - methodName: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/export-info\"", + operationId: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet", + methodName: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/export-info\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -237,9 +237,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet", - methodName: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/export-info\"", + operationId: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet", + methodName: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/export-info\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -277,7 +277,7 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI ProcessResponse( client: HttpClient, response: __response); - ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetResponse( + ProcessGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,9 +285,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet", - methodName: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/export-info\"", + operationId: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet", + methodName: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/export-info\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -307,9 +307,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet", - methodName: "GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetAsync", - pathTemplate: "$\"/api/v2/ppt/design/{designSystemId}/export-info\"", + operationId: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGet", + methodName: "GetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/export-info\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -374,7 +374,7 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI client: HttpClient, response: __response, content: ref __content); - ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGetResponseContent( + ProcessGetDesignExportInfoApiV2PptDesignDesignIdExportInfoGetResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -383,9 +383,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.DesignSystemExportInfo.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Presenton.DesignExportInfo.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, @@ -415,9 +415,9 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI #endif ).ConfigureAwait(false); - var __value = await global::Presenton.DesignSystemExportInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Presenton.DesignExportInfo.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, diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignV2ForUiApiV2PptDesignDesignIdUiGet.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignV2ForUiApiV2PptDesignDesignIdUiGet.g.cs index 2eab69b..8761b48 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignV2ForUiApiV2PptDesignDesignIdUiGet.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class HtmlEditClient + public partial class V2DesignClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GetDesignV2ForUiApiV2PptDesignDesignIdUiGetSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,40 +21,40 @@ public partial class HtmlEditClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetDesignV2ForUiApiV2PptDesignDesignIdUiGetSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetSecurityRequirement0, + { s_GetDesignV2ForUiApiV2PptDesignDesignIdUiGetSecurityRequirement0, }; - partial void PrepareStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetArguments( + partial void PrepareGetDesignV2ForUiApiV2PptDesignDesignIdUiGetArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid sessionId); - partial void PrepareStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetRequest( + ref global::System.Guid designId); + partial void PrepareGetDesignV2ForUiApiV2PptDesignDesignIdUiGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid sessionId); - partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse( + global::System.Guid designId); + partial void ProcessGetDesignV2ForUiApiV2PptDesignDesignIdUiGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseContent( + partial void ProcessGetDesignV2ForUiApiV2PptDesignDesignIdUiGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync( - global::System.Guid sessionId, + public async global::System.Threading.Tasks.Task GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync( + global::System.Guid designId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsResponseAsync( - sessionId: sessionId, + var __response = await GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsResponseAsync( + designId: designId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -62,28 +62,28 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task> StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsResponseAsync( - global::System.Guid sessionId, + public async global::System.Threading.Tasks.Task> GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsResponseAsync( + global::System.Guid designId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetArguments( + PrepareGetDesignV2ForUiApiV2PptDesignDesignIdUiGetArguments( httpClient: HttpClient, - sessionId: ref sessionId); + designId: ref designId); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetSecurityRequirements, - operationName: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync"); + securityRequirements: s_GetDesignV2ForUiApiV2PptDesignDesignIdUiGetSecurityRequirements, + operationName: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -103,7 +103,7 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont { var __pathBuilder = new global::Presenton.PathBuilder( - path: $"/api/v1/ppt/html-edit/stream/{sessionId}", + path: $"/api/v2/ppt/design/{designId}/ui", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -142,10 +142,10 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetRequest( + PrepareGetDesignV2ForUiApiV2PptDesignDesignIdUiGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + designId: designId!); return __httpRequest; } @@ -162,9 +162,9 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet", - methodName: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync", - pathTemplate: "$\"/api/v1/ppt/html-edit/stream/{sessionId}\"", + operationId: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGet", + methodName: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -196,9 +196,9 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet", - methodName: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync", - pathTemplate: "$\"/api/v1/ppt/html-edit/stream/{sessionId}\"", + operationId: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGet", + methodName: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -237,9 +237,9 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet", - methodName: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync", - pathTemplate: "$\"/api/v1/ppt/html-edit/stream/{sessionId}\"", + operationId: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGet", + methodName: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -277,7 +277,7 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont ProcessResponse( client: HttpClient, response: __response); - ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponse( + ProcessGetDesignV2ForUiApiV2PptDesignDesignIdUiGetResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,9 +285,9 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet", - methodName: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync", - pathTemplate: "$\"/api/v1/ppt/html-edit/stream/{sessionId}\"", + operationId: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGet", + methodName: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -307,9 +307,9 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet", - methodName: "StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetAsync", - pathTemplate: "$\"/api/v1/ppt/html-edit/stream/{sessionId}\"", + operationId: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGet", + methodName: "GetDesignV2ForUiApiV2PptDesignDesignIdUiGetAsync", + pathTemplate: "$\"/api/v2/ppt/design/{designId}/ui\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -374,7 +374,7 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont client: HttpClient, response: __response, content: ref __content); - ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseContent( + ProcessGetDesignV2ForUiApiV2PptDesignDesignIdUiGetResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -383,11 +383,13 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont { __response.EnsureSuccessStatusCode(); - return new global::Presenton.AutoSDKHttpResponse( + var __value = global::Presenton.HTMLDesignV2Detail.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 +409,19 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont 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.HTMLDesignV2Detail.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.V2DesignClient.InitCreateDesignApiV2PptDesignCreateInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.InitCreateDesignApiV2PptDesignCreateInitPost.g.cs new file mode 100644 index 0000000..571eb6b --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.InitCreateDesignApiV2PptDesignCreateInitPost.g.cs @@ -0,0 +1,500 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V2DesignClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_InitCreateDesignApiV2PptDesignCreateInitPostSecurityRequirement0 = + 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_InitCreateDesignApiV2PptDesignCreateInitPostSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_InitCreateDesignApiV2PptDesignCreateInitPostSecurityRequirement0, + }; + partial void PrepareInitCreateDesignApiV2PptDesignCreateInitPostArguments( + global::System.Net.Http.HttpClient httpClient, + global::Presenton.CreateDesignInitRequest request); + partial void PrepareInitCreateDesignApiV2PptDesignCreateInitPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Presenton.CreateDesignInitRequest request); + partial void ProcessInitCreateDesignApiV2PptDesignCreateInitPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessInitCreateDesignApiV2PptDesignCreateInitPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Init Create Design + /// + /// + /// 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 InitCreateDesignApiV2PptDesignCreateInitPostAsync( + + global::Presenton.CreateDesignInitRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await InitCreateDesignApiV2PptDesignCreateInitPostAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Init Create Design + /// + /// + /// 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> InitCreateDesignApiV2PptDesignCreateInitPostAsResponseAsync( + + global::Presenton.CreateDesignInitRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareInitCreateDesignApiV2PptDesignCreateInitPostArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_InitCreateDesignApiV2PptDesignCreateInitPostSecurityRequirements, + operationName: "InitCreateDesignApiV2PptDesignCreateInitPostAsync"); + + 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/v2/ppt/design/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 __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); + PrepareInitCreateDesignApiV2PptDesignCreateInitPostRequest( + 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: "InitCreateDesignApiV2PptDesignCreateInitPost", + methodName: "InitCreateDesignApiV2PptDesignCreateInitPostAsync", + pathTemplate: "\"/api/v2/ppt/design/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: "InitCreateDesignApiV2PptDesignCreateInitPost", + methodName: "InitCreateDesignApiV2PptDesignCreateInitPostAsync", + pathTemplate: "\"/api/v2/ppt/design/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: "InitCreateDesignApiV2PptDesignCreateInitPost", + methodName: "InitCreateDesignApiV2PptDesignCreateInitPostAsync", + pathTemplate: "\"/api/v2/ppt/design/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); + ProcessInitCreateDesignApiV2PptDesignCreateInitPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "InitCreateDesignApiV2PptDesignCreateInitPost", + methodName: "InitCreateDesignApiV2PptDesignCreateInitPostAsync", + pathTemplate: "\"/api/v2/ppt/design/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: "InitCreateDesignApiV2PptDesignCreateInitPost", + methodName: "InitCreateDesignApiV2PptDesignCreateInitPostAsync", + pathTemplate: "\"/api/v2/ppt/design/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); + ProcessInitCreateDesignApiV2PptDesignCreateInitPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = (global::System.Guid?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Guid?), 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.Guid?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Guid?), 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 Create Design + /// + /// + /// + /// + /// 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 InitCreateDesignApiV2PptDesignCreateInitPostAsync( + string pptxUrl, + global::System.Collections.Generic.IList slideImageUrls, + object? fonts = default, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Presenton.CreateDesignInitRequest + { + PptxUrl = pptxUrl, + SlideImageUrls = slideImageUrls, + Fonts = fonts, + }; + + return await InitCreateDesignApiV2PptDesignCreateInitPostAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.SaveDesignApiV2PptDesignSavePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.SaveDesignApiV2PptDesignSavePost.g.cs new file mode 100644 index 0000000..0c1d0b8 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.SaveDesignApiV2PptDesignSavePost.g.cs @@ -0,0 +1,503 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V2DesignClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_SaveDesignApiV2PptDesignSavePostSecurityRequirement0 = + 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_SaveDesignApiV2PptDesignSavePostSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_SaveDesignApiV2PptDesignSavePostSecurityRequirement0, + }; + partial void PrepareSaveDesignApiV2PptDesignSavePostArguments( + global::System.Net.Http.HttpClient httpClient, + global::Presenton.SaveDesignRequest request); + partial void PrepareSaveDesignApiV2PptDesignSavePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Presenton.SaveDesignRequest request); + partial void ProcessSaveDesignApiV2PptDesignSavePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSaveDesignApiV2PptDesignSavePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Save Design + /// + /// + /// 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 SaveDesignApiV2PptDesignSavePostAsync( + + global::Presenton.SaveDesignRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await SaveDesignApiV2PptDesignSavePostAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Save Design + /// + /// + /// 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> SaveDesignApiV2PptDesignSavePostAsResponseAsync( + + global::Presenton.SaveDesignRequest request, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareSaveDesignApiV2PptDesignSavePostArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SaveDesignApiV2PptDesignSavePostSecurityRequirements, + operationName: "SaveDesignApiV2PptDesignSavePostAsync"); + + 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/v2/ppt/design/save", + 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); + PrepareSaveDesignApiV2PptDesignSavePostRequest( + 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: "SaveDesignApiV2PptDesignSavePost", + methodName: "SaveDesignApiV2PptDesignSavePostAsync", + pathTemplate: "\"/api/v2/ppt/design/save\"", + 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: "SaveDesignApiV2PptDesignSavePost", + methodName: "SaveDesignApiV2PptDesignSavePostAsync", + pathTemplate: "\"/api/v2/ppt/design/save\"", + 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: "SaveDesignApiV2PptDesignSavePost", + methodName: "SaveDesignApiV2PptDesignSavePostAsync", + pathTemplate: "\"/api/v2/ppt/design/save\"", + 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); + ProcessSaveDesignApiV2PptDesignSavePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SaveDesignApiV2PptDesignSavePost", + methodName: "SaveDesignApiV2PptDesignSavePostAsync", + pathTemplate: "\"/api/v2/ppt/design/save\"", + 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: "SaveDesignApiV2PptDesignSavePost", + methodName: "SaveDesignApiV2PptDesignSavePostAsync", + pathTemplate: "\"/api/v2/ppt/design/save\"", + 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); + ProcessSaveDesignApiV2PptDesignSavePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Presenton.SaveDesignResponse.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.SaveDesignResponse.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(); + } + } + /// + /// Save Design + /// + /// + /// + /// + /// + /// 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 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) + { + var __request = new global::Presenton.SaveDesignRequest + { + DesignId = designId, + DesignInfoId = designInfoId, + Name = name, + References = references, + }; + + return await SaveDesignApiV2PptDesignSavePostAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs similarity index 90% rename from src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs index b2ad163..71622e0 100644 --- a/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxHandlerApiV2PptFontsCheckPost.g.cs @@ -7,7 +7,7 @@ public partial class V2FontsClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_CheckFontsInPptxApiV2PptFontsCheckPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_CheckFontsInPptxHandlerApiV2PptFontsCheckPostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,40 +21,43 @@ public partial class V2FontsClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_CheckFontsInPptxApiV2PptFontsCheckPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_CheckFontsInPptxHandlerApiV2PptFontsCheckPostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_CheckFontsInPptxApiV2PptFontsCheckPostSecurityRequirement0, + { s_CheckFontsInPptxHandlerApiV2PptFontsCheckPostSecurityRequirement0, }; - partial void PrepareCheckFontsInPptxApiV2PptFontsCheckPostArguments( + partial void PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost request); - partial void PrepareCheckFontsInPptxApiV2PptFontsCheckPostRequest( + global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost request); + partial void PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost request); - partial void ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponse( + global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost request); + partial void ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponseContent( + partial void ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponseContent( 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 CheckFontsInPptxApiV2PptFontsCheckPostAsync( + public async 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) { - var __response = await CheckFontsInPptxApiV2PptFontsCheckPostAsResponseAsync( + var __response = await CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -64,15 +67,18 @@ partial void ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponseContent( 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> CheckFontsInPptxApiV2PptFontsCheckPostAsResponseAsync( + public async 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) { @@ -80,15 +86,15 @@ partial void ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponseContent( PrepareArguments( client: HttpClient); - PrepareCheckFontsInPptxApiV2PptFontsCheckPostArguments( + PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CheckFontsInPptxApiV2PptFontsCheckPostSecurityRequirements, - operationName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync"); + securityRequirements: s_CheckFontsInPptxHandlerApiV2PptFontsCheckPostSecurityRequirements, + operationName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -189,7 +195,7 @@ request.PptxFilename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCheckFontsInPptxApiV2PptFontsCheckPostRequest( + PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostRequest( 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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/ppt/fonts/check\"", httpMethod: "POST", baseUri: BaseUri, @@ -324,7 +330,7 @@ request.PptxFilename is null ProcessResponse( client: HttpClient, response: __response); - ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponse( + ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponse( 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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/ppt/fonts/check\"", httpMethod: "POST", baseUri: BaseUri, @@ -421,7 +427,7 @@ request.PptxFilename is null client: HttpClient, response: __response, content: ref __content); - ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponseContent( + ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponseContent( 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 CheckFontsInPptxApiV2PptFontsCheckPostAsync( + public async global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync( byte[] pptxFile, string pptxFilename, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Presenton.BodyCheckFontsInPptxApiV2PptFontsCheckPost + var __request = new global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost { PptxFile = pptxFile, PptxFilename = pptxFilename, }; - return await CheckFontsInPptxApiV2PptFontsCheckPostAsync( + return await CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync( 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 CheckFontsInPptxApiV2PptFontsCheckPostAsync( + public async global::System.Threading.Tasks.Task CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync( 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.BodyCheckFontsInPptxApiV2PptFontsCheckPost + var request = new global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost { PptxFile = global::System.Array.Empty(), PptxFilename = pptxFilename, }; PrepareArguments( client: HttpClient); - PrepareCheckFontsInPptxApiV2PptFontsCheckPostArguments( + PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CheckFontsInPptxApiV2PptFontsCheckPostSecurityRequirements, - operationName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync"); + securityRequirements: s_CheckFontsInPptxHandlerApiV2PptFontsCheckPostSecurityRequirements, + operationName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -670,7 +676,7 @@ request.PptxFilename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCheckFontsInPptxApiV2PptFontsCheckPostRequest( + PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostRequest( 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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/ppt/fonts/check\"", httpMethod: "POST", baseUri: BaseUri, @@ -805,7 +811,7 @@ request.PptxFilename is null ProcessResponse( client: HttpClient, response: __response); - ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponse( + ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponse( 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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/ppt/fonts/check\"", httpMethod: "POST", baseUri: BaseUri, @@ -902,7 +908,7 @@ request.PptxFilename is null client: HttpClient, response: __response, content: ref __content); - ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponseContent( + ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponseContent( 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> CheckFontsInPptxApiV2PptFontsCheckPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsResponseAsync( 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.BodyCheckFontsInPptxApiV2PptFontsCheckPost + var request = new global::Presenton.BodyCheckFontsInPptxHandlerApiV2PptFontsCheckPost { PptxFile = global::System.Array.Empty(), PptxFilename = pptxFilename, }; PrepareArguments( client: HttpClient); - PrepareCheckFontsInPptxApiV2PptFontsCheckPostArguments( + PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CheckFontsInPptxApiV2PptFontsCheckPostSecurityRequirements, - operationName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync"); + securityRequirements: s_CheckFontsInPptxHandlerApiV2PptFontsCheckPostSecurityRequirements, + operationName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -1113,7 +1120,7 @@ request.PptxFilename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCheckFontsInPptxApiV2PptFontsCheckPostRequest( + PrepareCheckFontsInPptxHandlerApiV2PptFontsCheckPostRequest( 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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/ppt/fonts/check\"", httpMethod: "POST", baseUri: BaseUri, @@ -1248,7 +1255,7 @@ request.PptxFilename is null ProcessResponse( client: HttpClient, response: __response); - ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponse( + ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponse( 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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/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: "CheckFontsInPptxApiV2PptFontsCheckPost", - methodName: "CheckFontsInPptxApiV2PptFontsCheckPostAsync", + operationId: "CheckFontsInPptxHandlerApiV2PptFontsCheckPost", + methodName: "CheckFontsInPptxHandlerApiV2PptFontsCheckPostAsync", pathTemplate: "\"/api/v2/ppt/fonts/check\"", httpMethod: "POST", baseUri: BaseUri, @@ -1345,7 +1352,7 @@ request.PptxFilename is null client: HttpClient, response: __response, content: ref __content); - ProcessCheckFontsInPptxApiV2PptFontsCheckPostResponseContent( + ProcessCheckFontsInPptxHandlerApiV2PptFontsCheckPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs index 1b926d7..e2e1d33 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs @@ -495,7 +495,7 @@ partial void ProcessGeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsync /// 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.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs index b7377fa..091c17c 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs @@ -495,7 +495,7 @@ partial void ProcessGeneratePresentationSyncV2ApiV2PptPresentationGeneratePostRe /// 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.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs similarity index 83% rename from src/libs/Presenton/Generated/Presenton.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V2PresentationClient.ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs index 3fd0b31..8a49f6d 100644 --- a/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class PptxSlidesClient + public partial class V2PresentationClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_ProcessPptxSlidesApiV1PptPptxSlidesProcessPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,47 +21,40 @@ public partial class PptxSlidesClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_ProcessPptxSlidesApiV1PptPptxSlidesProcessPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_ProcessPptxSlidesApiV1PptPptxSlidesProcessPostSecurityRequirement0, + { s_ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostSecurityRequirement0, }; - partial void PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostArguments( + partial void PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost request); - partial void PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostRequest( + global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost request); + partial void PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost request); - partial void ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponse( + global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost request); + partial void ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseContent( + partial void ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 + /// 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 /// - public async global::System.Threading.Tasks.Task ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync( + public async global::System.Threading.Tasks.Task ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync( - global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost request, + global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsResponseAsync( + var __response = await ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -71,22 +64,15 @@ partial void ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseConten return __response.Body; } /// - /// 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 + /// 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 /// - public async global::System.Threading.Tasks.Task> ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsResponseAsync( - global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost request, + global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -94,15 +80,15 @@ partial void ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseConten PrepareArguments( client: HttpClient); - PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostArguments( + PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPptxSlidesApiV1PptPptxSlidesProcessPostSecurityRequirements, - operationName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync"); + securityRequirements: s_ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostSecurityRequirements, + operationName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -122,7 +108,7 @@ partial void ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseConten { var __pathBuilder = new global::Presenton.PathBuilder( - path: "/api/v1/ppt/pptx-slides/process", + path: "/api/v2/ppt/presentation/import-from-pptx-file", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -193,12 +179,20 @@ request.PptxFilename is null __contentPptxFile.Headers.ContentDisposition.FileNameStar = null; } - if (request.Fonts != default) + if (request.FontFiles != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Fonts.ToString() ?? string.Empty), - name: "\"fonts\""); + content: new global::System.Net.Http.StringContent(request.FontFiles.ToString() ?? string.Empty), + name: "\"font_files\""); + + } + if (request.OriginalFontNames != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.OriginalFontNames.ToString() ?? string.Empty), + name: "\"original_font_names\""); } @@ -212,7 +206,7 @@ request.PptxFilename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostRequest( + PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -232,9 +226,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -266,9 +260,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -307,9 +301,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -347,7 +341,7 @@ request.PptxFilename is null ProcessResponse( client: HttpClient, response: __response); - ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponse( + ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -355,9 +349,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -377,9 +371,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -444,7 +438,7 @@ request.PptxFilename is null client: HttpClient, response: __response, content: ref __content); - ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseContent( + ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -453,9 +447,9 @@ request.PptxFilename is null { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.PptxSlidesResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = (global::System.Guid?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Guid?), 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, @@ -485,9 +479,9 @@ request.PptxFilename is null #endif ).ConfigureAwait(false); - var __value = await global::Presenton.PptxSlidesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = (global::System.Guid?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Guid?), 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, @@ -528,95 +522,91 @@ request.PptxFilename is null } } /// - /// 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 + /// Import Presentation From Pptx File ///
/// - /// PPTX file to process + /// PPTX file to import /// /// - /// PPTX file to process + /// PPTX file to import /// - /// - /// Optional font files + /// + /// 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 /// - public async global::System.Threading.Tasks.Task ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync( + public async global::System.Threading.Tasks.Task ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync( byte[] pptxFile, string pptxFilename, - global::System.Collections.Generic.IList? fonts = default, + 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) { - var __request = new global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost + var __request = new global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost { PptxFile = pptxFile, PptxFilename = pptxFilename, - Fonts = fonts, + FontFiles = fontFiles, + OriginalFontNames = originalFontNames, }; - return await ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync( + return await ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 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 + /// Import Presentation From Pptx File ///
/// - /// PPTX file to process + /// PPTX file to import /// /// - /// PPTX file to process + /// PPTX file to import + /// + /// + /// Font files to upload /// - /// - /// Optional font files + /// + /// 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 /// - public async global::System.Threading.Tasks.Task ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync( + public async global::System.Threading.Tasks.Task ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync( global::System.IO.Stream pptxFile, string pptxFilename, - global::System.Collections.Generic.IList? fonts = default, + 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) { pptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile)); - var request = new global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost + var request = new global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost { PptxFile = global::System.Array.Empty(), PptxFilename = pptxFilename, - Fonts = fonts, + FontFiles = fontFiles, + OriginalFontNames = originalFontNames, }; PrepareArguments( client: HttpClient); - PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostArguments( + PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPptxSlidesApiV1PptPptxSlidesProcessPostSecurityRequirements, - operationName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync"); + securityRequirements: s_ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostSecurityRequirements, + operationName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -636,7 +626,7 @@ request.PptxFilename is null { var __pathBuilder = new global::Presenton.PathBuilder( - path: "/api/v1/ppt/pptx-slides/process", + path: "/api/v2/ppt/presentation/import-from-pptx-file", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -707,12 +697,20 @@ request.PptxFilename is null __contentPptxFile.Headers.ContentDisposition.FileNameStar = null; } - if (request.Fonts != default) + if (request.FontFiles != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.FontFiles.ToString() ?? string.Empty), + name: "\"font_files\""); + + } + if (request.OriginalFontNames != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Fonts.ToString() ?? string.Empty), - name: "\"fonts\""); + content: new global::System.Net.Http.StringContent(request.OriginalFontNames.ToString() ?? string.Empty), + name: "\"original_font_names\""); } @@ -726,7 +724,7 @@ request.PptxFilename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostRequest( + PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -746,9 +744,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -780,9 +778,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -821,9 +819,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -861,7 +859,7 @@ request.PptxFilename is null ProcessResponse( client: HttpClient, response: __response); - ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponse( + ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -869,9 +867,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -891,9 +889,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -958,7 +956,7 @@ request.PptxFilename is null client: HttpClient, response: __response, content: ref __content); - ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseContent( + ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -968,7 +966,7 @@ request.PptxFilename is null __response.EnsureSuccessStatusCode(); return - global::Presenton.PptxSlidesResponse.FromJson(__content, JsonSerializerContext) ?? + (global::System.Guid?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Guid?), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -996,7 +994,7 @@ request.PptxFilename is null ).ConfigureAwait(false); return - await global::Presenton.PptxSlidesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + (global::System.Guid?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Guid?), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1034,53 +1032,51 @@ request.PptxFilename is null } } /// - /// 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 + /// Import Presentation From Pptx File ///
/// - /// PPTX file to process + /// PPTX file to import /// /// - /// PPTX file to process + /// PPTX file to import /// - /// - /// Optional font files + /// + /// 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 /// - public async global::System.Threading.Tasks.Task> ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsResponseAsync( global::System.IO.Stream pptxFile, string pptxFilename, - global::System.Collections.Generic.IList? fonts = default, + 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) { pptxFile = pptxFile ?? throw new global::System.ArgumentNullException(nameof(pptxFile)); - var request = new global::Presenton.BodyProcessPptxSlidesApiV1PptPptxSlidesProcessPost + var request = new global::Presenton.BodyImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost { PptxFile = global::System.Array.Empty(), PptxFilename = pptxFilename, - Fonts = fonts, + FontFiles = fontFiles, + OriginalFontNames = originalFontNames, }; PrepareArguments( client: HttpClient); - PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostArguments( + PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ProcessPptxSlidesApiV1PptPptxSlidesProcessPostSecurityRequirements, - operationName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync"); + securityRequirements: s_ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostSecurityRequirements, + operationName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -1100,7 +1096,7 @@ request.PptxFilename is null { var __pathBuilder = new global::Presenton.PathBuilder( - path: "/api/v1/ppt/pptx-slides/process", + path: "/api/v2/ppt/presentation/import-from-pptx-file", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -1171,12 +1167,20 @@ request.PptxFilename is null __contentPptxFile.Headers.ContentDisposition.FileNameStar = null; } - if (request.Fonts != default) + if (request.FontFiles != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.FontFiles.ToString() ?? string.Empty), + name: "\"font_files\""); + + } + if (request.OriginalFontNames != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Fonts.ToString() ?? string.Empty), - name: "\"fonts\""); + content: new global::System.Net.Http.StringContent(request.OriginalFontNames.ToString() ?? string.Empty), + name: "\"original_font_names\""); } @@ -1190,7 +1194,7 @@ request.PptxFilename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareProcessPptxSlidesApiV1PptPptxSlidesProcessPostRequest( + PrepareImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -1210,9 +1214,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -1244,9 +1248,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -1285,9 +1289,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -1325,7 +1329,7 @@ request.PptxFilename is null ProcessResponse( client: HttpClient, response: __response); - ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponse( + ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -1333,9 +1337,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -1355,9 +1359,9 @@ request.PptxFilename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPost", - methodName: "ProcessPptxSlidesApiV1PptPptxSlidesProcessPostAsync", - pathTemplate: "\"/api/v1/ppt/pptx-slides/process\"", + operationId: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePost", + methodName: "ImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostAsync", + pathTemplate: "\"/api/v2/ppt/presentation/import-from-pptx-file\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -1422,7 +1426,7 @@ request.PptxFilename is null client: HttpClient, response: __response, content: ref __content); - ProcessProcessPptxSlidesApiV1PptPptxSlidesProcessPostResponseContent( + ProcessImportPresentationFromPptxFileApiV2PptPresentationImportFromPptxFilePostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -1431,9 +1435,9 @@ request.PptxFilename is null { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.PptxSlidesResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = (global::System.Guid?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Guid?), 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, @@ -1463,9 +1467,9 @@ request.PptxFilename is null #endif ).ConfigureAwait(false); - var __value = await global::Presenton.PptxSlidesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = (global::System.Guid?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Guid?), 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, diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs deleted file mode 100644 index 6f019fd..0000000 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs +++ /dev/null @@ -1,457 +0,0 @@ - -#nullable enable - -namespace Presenton -{ - public partial class V2PresentationClient - { - - - private static readonly global::Presenton.EndPointSecurityRequirement s_StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetSecurityRequirement0 = - 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_StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetSecurityRequirements = - new global::Presenton.EndPointSecurityRequirement[] - { s_StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetSecurityRequirement0, - }; - partial void PrepareStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid id); - partial void PrepareStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid id); - partial void ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Stream Presentation Html Large - /// - /// - /// 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 StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync( - global::System.Guid id, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Stream Presentation Html Large - /// - /// - /// 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> StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsResponseAsync( - global::System.Guid id, - global::Presenton.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetSecurityRequirements, - operationName: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync"); - - 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/v2/ppt/presentation/stream-large/{id}", - 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.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); - PrepareStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id!); - - 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: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet", - methodName: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync", - pathTemplate: "$\"/api/v2/ppt/presentation/stream-large/{id}\"", - 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: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet", - methodName: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync", - pathTemplate: "$\"/api/v2/ppt/presentation/stream-large/{id}\"", - 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: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet", - methodName: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync", - pathTemplate: "$\"/api/v2/ppt/presentation/stream-large/{id}\"", - 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); - ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet", - methodName: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync", - pathTemplate: "$\"/api/v2/ppt/presentation/stream-large/{id}\"", - 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: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet", - methodName: "StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetAsync", - pathTemplate: "$\"/api/v2/ppt/presentation/stream-large/{id}\"", - 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); - ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGetResponseContent( - 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(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs index 8007800..319215c 100644 --- a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs @@ -476,14 +476,12 @@ partial void ProcessGenerateNewSlideApiV2PptSlideGeneratePostResponseContent( ///
/// /// - /// /// 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 GenerateNewSlideApiV2PptSlideGeneratePostAsync( global::System.Guid presentationId, string prompt, - global::Presenton.QualitativeChart? qualitativechart = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -491,7 +489,6 @@ partial void ProcessGenerateNewSlideApiV2PptSlideGeneratePostResponseContent( { PresentationId = presentationId, Prompt = prompt, - Qualitativechart = qualitativechart, }; return await GenerateNewSlideApiV2PptSlideGeneratePostAsync( diff --git a/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV1ApiV3FilesUploadPost.g.cs similarity index 92% rename from src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV1ApiV3FilesUploadPost.g.cs index 27a0c0c..a1f06f3 100644 --- a/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV1ApiV3FilesUploadPost.g.cs @@ -7,7 +7,7 @@ public partial class V3FilesClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_UploadFilesV3ApiV3FilesUploadPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_UploadFilesV1ApiV3FilesUploadPostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,28 +21,28 @@ public partial class V3FilesClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_UploadFilesV3ApiV3FilesUploadPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_UploadFilesV1ApiV3FilesUploadPostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_UploadFilesV3ApiV3FilesUploadPostSecurityRequirement0, + { s_UploadFilesV1ApiV3FilesUploadPostSecurityRequirement0, }; - partial void PrepareUploadFilesV3ApiV3FilesUploadPostArguments( + partial void PrepareUploadFilesV1ApiV3FilesUploadPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost request); - partial void PrepareUploadFilesV3ApiV3FilesUploadPostRequest( + global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost request); + partial void PrepareUploadFilesV1ApiV3FilesUploadPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost request); - partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponse( + global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost request); + partial void ProcessUploadFilesV1ApiV3FilesUploadPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( + partial void ProcessUploadFilesV1ApiV3FilesUploadPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 @@ -51,13 +51,13 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( /// 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> UploadFilesV3ApiV3FilesUploadPostAsync( + public async 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) { - var __response = await UploadFilesV3ApiV3FilesUploadPostAsResponseAsync( + var __response = await UploadFilesV1ApiV3FilesUploadPostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -67,7 +67,7 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( return __response.Body; } /// - /// 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 @@ -76,9 +76,9 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( /// 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>> UploadFilesV3ApiV3FilesUploadPostAsResponseAsync( + public async 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) { @@ -86,15 +86,15 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( PrepareArguments( client: HttpClient); - PrepareUploadFilesV3ApiV3FilesUploadPostArguments( + PrepareUploadFilesV1ApiV3FilesUploadPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UploadFilesV3ApiV3FilesUploadPostSecurityRequirements, - operationName: "UploadFilesV3ApiV3FilesUploadPostAsync"); + securityRequirements: s_UploadFilesV1ApiV3FilesUploadPostSecurityRequirements, + operationName: "UploadFilesV1ApiV3FilesUploadPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -166,7 +166,7 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUploadFilesV3ApiV3FilesUploadPostRequest( + PrepareUploadFilesV1ApiV3FilesUploadPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -186,8 +186,8 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadFilesV3ApiV3FilesUploadPost", - methodName: "UploadFilesV3ApiV3FilesUploadPostAsync", + operationId: "UploadFilesV1ApiV3FilesUploadPost", + methodName: "UploadFilesV1ApiV3FilesUploadPostAsync", pathTemplate: "\"/api/v3/files/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -220,8 +220,8 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadFilesV3ApiV3FilesUploadPost", - methodName: "UploadFilesV3ApiV3FilesUploadPostAsync", + operationId: "UploadFilesV1ApiV3FilesUploadPost", + methodName: "UploadFilesV1ApiV3FilesUploadPostAsync", pathTemplate: "\"/api/v3/files/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -261,8 +261,8 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadFilesV3ApiV3FilesUploadPost", - methodName: "UploadFilesV3ApiV3FilesUploadPostAsync", + operationId: "UploadFilesV1ApiV3FilesUploadPost", + methodName: "UploadFilesV1ApiV3FilesUploadPostAsync", pathTemplate: "\"/api/v3/files/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -301,7 +301,7 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUploadFilesV3ApiV3FilesUploadPostResponse( + ProcessUploadFilesV1ApiV3FilesUploadPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -309,8 +309,8 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadFilesV3ApiV3FilesUploadPost", - methodName: "UploadFilesV3ApiV3FilesUploadPostAsync", + operationId: "UploadFilesV1ApiV3FilesUploadPost", + methodName: "UploadFilesV1ApiV3FilesUploadPostAsync", pathTemplate: "\"/api/v3/files/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -331,8 +331,8 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadFilesV3ApiV3FilesUploadPost", - methodName: "UploadFilesV3ApiV3FilesUploadPostAsync", + operationId: "UploadFilesV1ApiV3FilesUploadPost", + methodName: "UploadFilesV1ApiV3FilesUploadPostAsync", pathTemplate: "\"/api/v3/files/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -398,7 +398,7 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( + ProcessUploadFilesV1ApiV3FilesUploadPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -482,7 +482,7 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( } } /// - /// 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 @@ -491,17 +491,17 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( /// 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> UploadFilesV3ApiV3FilesUploadPostAsync( + public async global::System.Threading.Tasks.Task> UploadFilesV1ApiV3FilesUploadPostAsync( global::System.Collections.Generic.IList? files = default, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Presenton.BodyUploadFilesV3ApiV3FilesUploadPost + var __request = new global::Presenton.BodyUploadFilesV1ApiV3FilesUploadPost { Files = files, }; - return await UploadFilesV3ApiV3FilesUploadPostAsync( + return await UploadFilesV1ApiV3FilesUploadPostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV1ApiV3ImagesIdDelete.g.cs similarity index 94% rename from src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV1ApiV3ImagesIdDelete.g.cs index 84a26b0..f325039 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV1ApiV3ImagesIdDelete.g.cs @@ -7,7 +7,7 @@ public partial class V3ImagesClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,23 +21,23 @@ public partial class V3ImagesClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteSecurityRequirement0, + { s_DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteSecurityRequirement0, }; - partial void PrepareDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteArguments( + partial void PrepareDeleteUploadedImageByIdV1ApiV3ImagesIdDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteRequest( + partial void PrepareDeleteUploadedImageByIdV1ApiV3ImagesIdDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteResponse( + partial void ProcessDeleteUploadedImageByIdV1ApiV3ImagesIdDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// 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 @@ -46,19 +46,19 @@ partial void ProcessDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteResponse( /// 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 DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync( + public async global::System.Threading.Tasks.Task DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync( string id, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( + await DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); } /// - /// 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 @@ -67,22 +67,22 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( /// 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 DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsResponseAsync( string id, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteArguments( + PrepareDeleteUploadedImageByIdV1ApiV3ImagesIdDeleteArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteSecurityRequirements, - operationName: "DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync"); + securityRequirements: s_DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteSecurityRequirements, + operationName: "DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -141,7 +141,7 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteRequest( + PrepareDeleteUploadedImageByIdV1ApiV3ImagesIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id!); @@ -161,8 +161,8 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteUploadedImageByIdV3ApiV3ImagesIdDelete", - methodName: "DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync", + operationId: "DeleteUploadedImageByIdV1ApiV3ImagesIdDelete", + methodName: "DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync", pathTemplate: "$\"/api/v3/images/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -195,8 +195,8 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteUploadedImageByIdV3ApiV3ImagesIdDelete", - methodName: "DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync", + operationId: "DeleteUploadedImageByIdV1ApiV3ImagesIdDelete", + methodName: "DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync", pathTemplate: "$\"/api/v3/images/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -236,8 +236,8 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteUploadedImageByIdV3ApiV3ImagesIdDelete", - methodName: "DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync", + operationId: "DeleteUploadedImageByIdV1ApiV3ImagesIdDelete", + methodName: "DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync", pathTemplate: "$\"/api/v3/images/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -276,7 +276,7 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteUploadedImageByIdV3ApiV3ImagesIdDeleteResponse( + ProcessDeleteUploadedImageByIdV1ApiV3ImagesIdDeleteResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -284,8 +284,8 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteUploadedImageByIdV3ApiV3ImagesIdDelete", - methodName: "DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync", + operationId: "DeleteUploadedImageByIdV1ApiV3ImagesIdDelete", + methodName: "DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync", pathTemplate: "$\"/api/v3/images/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -306,8 +306,8 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteUploadedImageByIdV3ApiV3ImagesIdDelete", - methodName: "DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsync", + operationId: "DeleteUploadedImageByIdV1ApiV3ImagesIdDelete", + methodName: "DeleteUploadedImageByIdV1ApiV3ImagesIdDeleteAsync", pathTemplate: "$\"/api/v3/images/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, diff --git a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV1ApiV3ImagesUploadedGet.g.cs similarity index 93% rename from src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV1ApiV3ImagesUploadedGet.g.cs index 7ddb224..3341df0 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV1ApiV3ImagesUploadedGet.g.cs @@ -7,7 +7,7 @@ public partial class V3ImagesClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GetUploadedImagesV3ApiV3ImagesUploadedGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GetUploadedImagesV1ApiV3ImagesUploadedGetSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,38 +21,38 @@ public partial class V3ImagesClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetUploadedImagesV3ApiV3ImagesUploadedGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetUploadedImagesV1ApiV3ImagesUploadedGetSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GetUploadedImagesV3ApiV3ImagesUploadedGetSecurityRequirement0, + { s_GetUploadedImagesV1ApiV3ImagesUploadedGetSecurityRequirement0, }; - partial void PrepareGetUploadedImagesV3ApiV3ImagesUploadedGetArguments( + partial void PrepareGetUploadedImagesV1ApiV3ImagesUploadedGetArguments( global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetUploadedImagesV3ApiV3ImagesUploadedGetRequest( + partial void PrepareGetUploadedImagesV1ApiV3ImagesUploadedGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponse( + partial void ProcessGetUploadedImagesV1ApiV3ImagesUploadedGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( + partial void ProcessGetUploadedImagesV1ApiV3ImagesUploadedGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task GetUploadedImagesV3ApiV3ImagesUploadedGetAsync( + public async global::System.Threading.Tasks.Task GetUploadedImagesV1ApiV3ImagesUploadedGetAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetUploadedImagesV3ApiV3ImagesUploadedGetAsResponseAsync( + var __response = await GetUploadedImagesV1ApiV3ImagesUploadedGetAsResponseAsync( requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -60,28 +60,28 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task> GetUploadedImagesV3ApiV3ImagesUploadedGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetUploadedImagesV1ApiV3ImagesUploadedGetAsResponseAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetUploadedImagesV3ApiV3ImagesUploadedGetArguments( + PrepareGetUploadedImagesV1ApiV3ImagesUploadedGetArguments( httpClient: HttpClient); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetUploadedImagesV3ApiV3ImagesUploadedGetSecurityRequirements, - operationName: "GetUploadedImagesV3ApiV3ImagesUploadedGetAsync"); + securityRequirements: s_GetUploadedImagesV1ApiV3ImagesUploadedGetSecurityRequirements, + operationName: "GetUploadedImagesV1ApiV3ImagesUploadedGetAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -140,7 +140,7 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetUploadedImagesV3ApiV3ImagesUploadedGetRequest( + PrepareGetUploadedImagesV1ApiV3ImagesUploadedGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest); @@ -159,8 +159,8 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetUploadedImagesV3ApiV3ImagesUploadedGet", - methodName: "GetUploadedImagesV3ApiV3ImagesUploadedGetAsync", + operationId: "GetUploadedImagesV1ApiV3ImagesUploadedGet", + methodName: "GetUploadedImagesV1ApiV3ImagesUploadedGetAsync", pathTemplate: "\"/api/v3/images/uploaded\"", httpMethod: "GET", baseUri: BaseUri, @@ -193,8 +193,8 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetUploadedImagesV3ApiV3ImagesUploadedGet", - methodName: "GetUploadedImagesV3ApiV3ImagesUploadedGetAsync", + operationId: "GetUploadedImagesV1ApiV3ImagesUploadedGet", + methodName: "GetUploadedImagesV1ApiV3ImagesUploadedGetAsync", pathTemplate: "\"/api/v3/images/uploaded\"", httpMethod: "GET", baseUri: BaseUri, @@ -234,8 +234,8 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetUploadedImagesV3ApiV3ImagesUploadedGet", - methodName: "GetUploadedImagesV3ApiV3ImagesUploadedGetAsync", + operationId: "GetUploadedImagesV1ApiV3ImagesUploadedGet", + methodName: "GetUploadedImagesV1ApiV3ImagesUploadedGetAsync", pathTemplate: "\"/api/v3/images/uploaded\"", httpMethod: "GET", baseUri: BaseUri, @@ -274,7 +274,7 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponse( + ProcessGetUploadedImagesV1ApiV3ImagesUploadedGetResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -282,8 +282,8 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetUploadedImagesV3ApiV3ImagesUploadedGet", - methodName: "GetUploadedImagesV3ApiV3ImagesUploadedGetAsync", + operationId: "GetUploadedImagesV1ApiV3ImagesUploadedGet", + methodName: "GetUploadedImagesV1ApiV3ImagesUploadedGetAsync", pathTemplate: "\"/api/v3/images/uploaded\"", httpMethod: "GET", baseUri: BaseUri, @@ -304,8 +304,8 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetUploadedImagesV3ApiV3ImagesUploadedGet", - methodName: "GetUploadedImagesV3ApiV3ImagesUploadedGetAsync", + operationId: "GetUploadedImagesV1ApiV3ImagesUploadedGet", + methodName: "GetUploadedImagesV1ApiV3ImagesUploadedGetAsync", pathTemplate: "\"/api/v3/images/uploaded\"", httpMethod: "GET", baseUri: BaseUri, @@ -371,7 +371,7 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( + ProcessGetUploadedImagesV1ApiV3ImagesUploadedGetResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV1ApiV3ImagesUploadPost.g.cs similarity index 94% rename from src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV1ApiV3ImagesUploadPost.g.cs index dc82b5b..e5f73c5 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV1ApiV3ImagesUploadPost.g.cs @@ -7,7 +7,7 @@ public partial class V3ImagesClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_UploadImageV3ApiV3ImagesUploadPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_UploadImageV1ApiV3ImagesUploadPostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,28 +21,28 @@ public partial class V3ImagesClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_UploadImageV3ApiV3ImagesUploadPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_UploadImageV1ApiV3ImagesUploadPostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_UploadImageV3ApiV3ImagesUploadPostSecurityRequirement0, + { s_UploadImageV1ApiV3ImagesUploadPostSecurityRequirement0, }; - partial void PrepareUploadImageV3ApiV3ImagesUploadPostArguments( + partial void PrepareUploadImageV1ApiV3ImagesUploadPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost request); - partial void PrepareUploadImageV3ApiV3ImagesUploadPostRequest( + global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost request); + partial void PrepareUploadImageV1ApiV3ImagesUploadPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost request); - partial void ProcessUploadImageV3ApiV3ImagesUploadPostResponse( + global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost request); + partial void ProcessUploadImageV1ApiV3ImagesUploadPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( + partial void ProcessUploadImageV1ApiV3ImagesUploadPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 @@ -51,13 +51,13 @@ partial void ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( /// 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 UploadImageV3ApiV3ImagesUploadPostAsync( + public async 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) { - var __response = await UploadImageV3ApiV3ImagesUploadPostAsResponseAsync( + var __response = await UploadImageV1ApiV3ImagesUploadPostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -67,7 +67,7 @@ partial void ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( return __response.Body; } /// - /// 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 @@ -76,9 +76,9 @@ partial void ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( /// 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> UploadImageV3ApiV3ImagesUploadPostAsResponseAsync( + public async 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) { @@ -86,15 +86,15 @@ partial void ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( PrepareArguments( client: HttpClient); - PrepareUploadImageV3ApiV3ImagesUploadPostArguments( + PrepareUploadImageV1ApiV3ImagesUploadPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UploadImageV3ApiV3ImagesUploadPostSecurityRequirements, - operationName: "UploadImageV3ApiV3ImagesUploadPostAsync"); + securityRequirements: s_UploadImageV1ApiV3ImagesUploadPostSecurityRequirements, + operationName: "UploadImageV1ApiV3ImagesUploadPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -195,7 +195,7 @@ request.Filename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUploadImageV3ApiV3ImagesUploadPostRequest( + PrepareUploadImageV1ApiV3ImagesUploadPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -215,8 +215,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -249,8 +249,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -290,8 +290,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -330,7 +330,7 @@ request.Filename is null ProcessResponse( client: HttpClient, response: __response); - ProcessUploadImageV3ApiV3ImagesUploadPostResponse( + ProcessUploadImageV1ApiV3ImagesUploadPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -338,8 +338,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -360,8 +360,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -427,7 +427,7 @@ request.Filename is null client: HttpClient, response: __response, content: ref __content); - ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( + ProcessUploadImageV1ApiV3ImagesUploadPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -511,7 +511,7 @@ request.Filename is null } } /// - /// 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 @@ -521,26 +521,26 @@ request.Filename is null /// 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 UploadImageV3ApiV3ImagesUploadPostAsync( + public async global::System.Threading.Tasks.Task UploadImageV1ApiV3ImagesUploadPostAsync( byte[] file, string filename, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost + var __request = new global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost { File = file, Filename = filename, }; - return await UploadImageV3ApiV3ImagesUploadPostAsync( + return await UploadImageV1ApiV3ImagesUploadPostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -552,7 +552,7 @@ request.Filename is null /// 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 UploadImageV3ApiV3ImagesUploadPostAsync( + public async global::System.Threading.Tasks.Task UploadImageV1ApiV3ImagesUploadPostAsync( global::System.IO.Stream file, string filename, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -560,22 +560,22 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost + var request = new global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost { File = global::System.Array.Empty(), Filename = filename, }; PrepareArguments( client: HttpClient); - PrepareUploadImageV3ApiV3ImagesUploadPostArguments( + PrepareUploadImageV1ApiV3ImagesUploadPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UploadImageV3ApiV3ImagesUploadPostSecurityRequirements, - operationName: "UploadImageV3ApiV3ImagesUploadPostAsync"); + securityRequirements: s_UploadImageV1ApiV3ImagesUploadPostSecurityRequirements, + operationName: "UploadImageV1ApiV3ImagesUploadPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -676,7 +676,7 @@ request.Filename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUploadImageV3ApiV3ImagesUploadPostRequest( + PrepareUploadImageV1ApiV3ImagesUploadPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -696,8 +696,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -730,8 +730,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -771,8 +771,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -811,7 +811,7 @@ request.Filename is null ProcessResponse( client: HttpClient, response: __response); - ProcessUploadImageV3ApiV3ImagesUploadPostResponse( + ProcessUploadImageV1ApiV3ImagesUploadPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -819,8 +819,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -841,8 +841,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -908,7 +908,7 @@ request.Filename is null client: HttpClient, response: __response, content: ref __content); - ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( + ProcessUploadImageV1ApiV3ImagesUploadPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -984,7 +984,7 @@ request.Filename is null } } /// - /// 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 @@ -996,7 +996,7 @@ request.Filename is null /// 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> UploadImageV3ApiV3ImagesUploadPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> UploadImageV1ApiV3ImagesUploadPostAsResponseAsync( global::System.IO.Stream file, string filename, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -1004,22 +1004,22 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Presenton.BodyUploadImageV3ApiV3ImagesUploadPost + var request = new global::Presenton.BodyUploadImageV1ApiV3ImagesUploadPost { File = global::System.Array.Empty(), Filename = filename, }; PrepareArguments( client: HttpClient); - PrepareUploadImageV3ApiV3ImagesUploadPostArguments( + PrepareUploadImageV1ApiV3ImagesUploadPostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UploadImageV3ApiV3ImagesUploadPostSecurityRequirements, - operationName: "UploadImageV3ApiV3ImagesUploadPostAsync"); + securityRequirements: s_UploadImageV1ApiV3ImagesUploadPostSecurityRequirements, + operationName: "UploadImageV1ApiV3ImagesUploadPostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -1120,7 +1120,7 @@ request.Filename is null PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUploadImageV3ApiV3ImagesUploadPostRequest( + PrepareUploadImageV1ApiV3ImagesUploadPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -1140,8 +1140,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -1174,8 +1174,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -1215,8 +1215,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -1255,7 +1255,7 @@ request.Filename is null ProcessResponse( client: HttpClient, response: __response); - ProcessUploadImageV3ApiV3ImagesUploadPostResponse( + ProcessUploadImageV1ApiV3ImagesUploadPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -1263,8 +1263,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -1285,8 +1285,8 @@ request.Filename is null await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UploadImageV3ApiV3ImagesUploadPost", - methodName: "UploadImageV3ApiV3ImagesUploadPostAsync", + operationId: "UploadImageV1ApiV3ImagesUploadPost", + methodName: "UploadImageV1ApiV3ImagesUploadPostAsync", pathTemplate: "\"/api/v3/images/upload\"", httpMethod: "POST", baseUri: BaseUri, @@ -1352,7 +1352,7 @@ request.Filename is null client: HttpClient, response: __response, content: ref __content); - ProcessUploadImageV3ApiV3ImagesUploadPostResponseContent( + ProcessUploadImageV1ApiV3ImagesUploadPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs index 4f94596..36d064e 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs @@ -516,7 +516,7 @@ partial void ProcessGeneratePresentationForPlaygroundApiV3PlaygroundPresentation /// 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.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost.g.cs similarity index 92% rename from src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs rename to src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost.g.cs index 6915528..1635ff0 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost.g.cs @@ -7,7 +7,7 @@ public partial class V3PresentationClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,43 +21,40 @@ public partial class V3PresentationClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostSecurityRequirement0, + { s_GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostSecurityRequirement0, }; - partial void PrepareGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostArguments( + partial void PrepareGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostArguments( global::System.Net.Http.HttpClient httpClient, global::Presenton.GenerateOutlinesRequest request); - partial void PrepareGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostRequest( + partial void PrepareGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::Presenton.GenerateOutlinesRequest request); - partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostResponse( + partial void ProcessGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostResponseContent( + partial void ProcessGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 /// - public async global::System.Threading.Tasks.Task> GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync( + public async global::System.Threading.Tasks.Task> GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync( global::Presenton.GenerateOutlinesRequest request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsResponseAsync( + var __response = await GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -67,16 +64,13 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR return __response.Body; } /// - /// 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 /// - public async global::System.Threading.Tasks.Task>> GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsResponseAsync( + public async global::System.Threading.Tasks.Task>> GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsResponseAsync( global::Presenton.GenerateOutlinesRequest request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -86,15 +80,15 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR PrepareArguments( client: HttpClient); - PrepareGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostArguments( + PrepareGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostSecurityRequirements, - operationName: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync"); + securityRequirements: s_GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostSecurityRequirements, + operationName: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -159,7 +153,7 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostRequest( + PrepareGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -179,8 +173,8 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost", - methodName: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync", + operationId: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost", + methodName: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync", pathTemplate: "\"/api/v3/presentation/outlines/generate\"", httpMethod: "POST", baseUri: BaseUri, @@ -213,8 +207,8 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost", - methodName: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync", + operationId: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost", + methodName: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync", pathTemplate: "\"/api/v3/presentation/outlines/generate\"", httpMethod: "POST", baseUri: BaseUri, @@ -254,8 +248,8 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost", - methodName: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync", + operationId: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost", + methodName: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync", pathTemplate: "\"/api/v3/presentation/outlines/generate\"", httpMethod: "POST", baseUri: BaseUri, @@ -294,7 +288,7 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR ProcessResponse( client: HttpClient, response: __response); - ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostResponse( + ProcessGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -302,8 +296,8 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost", - methodName: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync", + operationId: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost", + methodName: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync", pathTemplate: "\"/api/v3/presentation/outlines/generate\"", httpMethod: "POST", baseUri: BaseUri, @@ -324,8 +318,8 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost", - methodName: "GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync", + operationId: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePost", + methodName: "GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync", pathTemplate: "\"/api/v3/presentation/outlines/generate\"", httpMethod: "POST", baseUri: BaseUri, @@ -391,7 +385,7 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR client: HttpClient, response: __response, content: ref __content); - ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostResponseContent( + ProcessGenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -475,10 +469,7 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR } } /// - /// 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 @@ -489,6 +480,9 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR /// /// The number of slides to generate /// + /// + /// Optional design ID to use for outline generation + /// /// /// The language for the presentation /// @@ -517,10 +511,11 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR /// 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> GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync( + public async 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, @@ -536,6 +531,7 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR Content = content, Files = files, NSlides = nSlides, + Design = design, Language = language, Tone = tone, Verbosity = verbosity, @@ -545,7 +541,7 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR Instructions = instructions, }; - return await GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostAsync( + return await GenerateOutlinesSyncV1ApiV3PresentationOutlinesGeneratePostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs index dbae274..66f3d34 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs @@ -528,7 +528,7 @@ partial void ProcessGeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPos /// 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.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs index 98f5e5c..ef883b8 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs @@ -525,7 +525,7 @@ partial void ProcessGeneratePresentationSyncV3ApiV3PresentationGeneratePostRespo /// 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.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs index 46e3774..baaef87 100644 --- a/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs @@ -27,11 +27,11 @@ public partial class V3SchemaClient }; partial void PrepareGenerateContentForSchemaApiV3SchemaContentGeneratePostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.GenerateContentForSchemaRequest request); + global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost request); partial void PrepareGenerateContentForSchemaApiV3SchemaContentGeneratePostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.GenerateContentForSchemaRequest request); + global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost request); partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -50,7 +50,7 @@ partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostRespon /// public async 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) { @@ -72,7 +72,7 @@ partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostRespon /// public async 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) { @@ -477,12 +477,12 @@ partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostRespon /// The token to cancel the operation with /// public async 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) { - var __request = new global::Presenton.GenerateContentForSchemaRequest + var __request = new global::Presenton.BodyGenerateContentForSchemaApiV3SchemaContentGeneratePost { Schema = schema, Mode = mode, diff --git a/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetSmartDesignByIdApiV3SmartDesignDesignIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetSmartDesignByIdApiV3SmartDesignDesignIdGet.g.cs new file mode 100644 index 0000000..9251722 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetSmartDesignByIdApiV3SmartDesignDesignIdGet.g.cs @@ -0,0 +1,467 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V3SmartDesignClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_GetSmartDesignByIdApiV3SmartDesignDesignIdGetSecurityRequirement0 = + 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_GetSmartDesignByIdApiV3SmartDesignDesignIdGetSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_GetSmartDesignByIdApiV3SmartDesignDesignIdGetSecurityRequirement0, + }; + partial void PrepareGetSmartDesignByIdApiV3SmartDesignDesignIdGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid designId); + partial void PrepareGetSmartDesignByIdApiV3SmartDesignDesignIdGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid designId); + partial void ProcessGetSmartDesignByIdApiV3SmartDesignDesignIdGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetSmartDesignByIdApiV3SmartDesignDesignIdGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync( + global::System.Guid designId, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsResponseAsync( + designId: designId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsResponseAsync( + global::System.Guid designId, + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetSmartDesignByIdApiV3SmartDesignDesignIdGetArguments( + httpClient: HttpClient, + designId: ref designId); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSmartDesignByIdApiV3SmartDesignDesignIdGetSecurityRequirements, + operationName: "GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync"); + + 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/smart-design/{designId}", + 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.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); + PrepareGetSmartDesignByIdApiV3SmartDesignDesignIdGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + designId: designId!); + + 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: "GetSmartDesignByIdApiV3SmartDesignDesignIdGet", + methodName: "GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync", + pathTemplate: "$\"/api/v3/smart-design/{designId}\"", + 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: "GetSmartDesignByIdApiV3SmartDesignDesignIdGet", + methodName: "GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync", + pathTemplate: "$\"/api/v3/smart-design/{designId}\"", + 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: "GetSmartDesignByIdApiV3SmartDesignDesignIdGet", + methodName: "GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync", + pathTemplate: "$\"/api/v3/smart-design/{designId}\"", + 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); + ProcessGetSmartDesignByIdApiV3SmartDesignDesignIdGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSmartDesignByIdApiV3SmartDesignDesignIdGet", + methodName: "GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync", + pathTemplate: "$\"/api/v3/smart-design/{designId}\"", + 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: "GetSmartDesignByIdApiV3SmartDesignDesignIdGet", + methodName: "GetSmartDesignByIdApiV3SmartDesignDesignIdGetAsync", + pathTemplate: "$\"/api/v3/smart-design/{designId}\"", + 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); + ProcessGetSmartDesignByIdApiV3SmartDesignDesignIdGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Presenton.HTMLDesignV2Detail.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.HTMLDesignV2Detail.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.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.CreateThemeApiV3ThemeCreatePost.g.cs similarity index 80% rename from src/libs/Presenton/Generated/Presenton.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ThemeClient.CreateThemeApiV3ThemeCreatePost.g.cs index 7dcd4f5..37e421e 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.CreateThemeApiV3ThemeCreatePost.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class TemplateManagementClient + public partial class V3ThemeClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_CreateTemplateApiV1PptTemplateManagementTemplatesPostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_CreateThemeApiV3ThemeCreatePostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,40 +21,41 @@ public partial class TemplateManagementClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_CreateTemplateApiV1PptTemplateManagementTemplatesPostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_CreateThemeApiV3ThemeCreatePostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_CreateTemplateApiV1PptTemplateManagementTemplatesPostSecurityRequirement0, + { s_CreateThemeApiV3ThemeCreatePostSecurityRequirement0, }; - partial void PrepareCreateTemplateApiV1PptTemplateManagementTemplatesPostArguments( + partial void PrepareCreateThemeApiV3ThemeCreatePostArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.TemplateCreateRequest request); - partial void PrepareCreateTemplateApiV1PptTemplateManagementTemplatesPostRequest( + global::Presenton.BodyCreateThemeApiV3ThemeCreatePost request); + partial void PrepareCreateThemeApiV3ThemeCreatePostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.TemplateCreateRequest request); - partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostResponse( + global::Presenton.BodyCreateThemeApiV3ThemeCreatePost request); + partial void ProcessCreateThemeApiV3ThemeCreatePostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostResponseContent( + partial void ProcessCreateThemeApiV3ThemeCreatePostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Create Template + /// 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 /// - public async global::System.Threading.Tasks.Task CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync( + public async global::System.Threading.Tasks.Task CreateThemeApiV3ThemeCreatePostAsync( - global::Presenton.TemplateCreateRequest request, + global::Presenton.BodyCreateThemeApiV3ThemeCreatePost request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateTemplateApiV1PptTemplateManagementTemplatesPostAsResponseAsync( + var __response = await CreateThemeApiV3ThemeCreatePostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -64,15 +65,16 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons return __response.Body; } /// - /// Create Template + /// 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 /// - public async global::System.Threading.Tasks.Task> CreateTemplateApiV1PptTemplateManagementTemplatesPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateThemeApiV3ThemeCreatePostAsResponseAsync( - global::Presenton.TemplateCreateRequest request, + global::Presenton.BodyCreateThemeApiV3ThemeCreatePost request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -80,15 +82,15 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons PrepareArguments( client: HttpClient); - PrepareCreateTemplateApiV1PptTemplateManagementTemplatesPostArguments( + PrepareCreateThemeApiV3ThemeCreatePostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateTemplateApiV1PptTemplateManagementTemplatesPostSecurityRequirements, - operationName: "CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync"); + securityRequirements: s_CreateThemeApiV3ThemeCreatePostSecurityRequirements, + operationName: "CreateThemeApiV3ThemeCreatePostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -108,7 +110,7 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons { var __pathBuilder = new global::Presenton.PathBuilder( - path: "/api/v1/ppt/template-management/templates", + path: "/api/v3/theme/create", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -153,7 +155,7 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateTemplateApiV1PptTemplateManagementTemplatesPostRequest( + PrepareCreateThemeApiV3ThemeCreatePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -173,9 +175,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTemplateApiV1PptTemplateManagementTemplatesPost", - methodName: "CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/templates\"", + operationId: "CreateThemeApiV3ThemeCreatePost", + methodName: "CreateThemeApiV3ThemeCreatePostAsync", + pathTemplate: "\"/api/v3/theme/create\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -207,9 +209,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTemplateApiV1PptTemplateManagementTemplatesPost", - methodName: "CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/templates\"", + operationId: "CreateThemeApiV3ThemeCreatePost", + methodName: "CreateThemeApiV3ThemeCreatePostAsync", + pathTemplate: "\"/api/v3/theme/create\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -248,9 +250,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTemplateApiV1PptTemplateManagementTemplatesPost", - methodName: "CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/templates\"", + operationId: "CreateThemeApiV3ThemeCreatePost", + methodName: "CreateThemeApiV3ThemeCreatePostAsync", + pathTemplate: "\"/api/v3/theme/create\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -288,7 +290,7 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons ProcessResponse( client: HttpClient, response: __response); - ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostResponse( + ProcessCreateThemeApiV3ThemeCreatePostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -296,9 +298,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTemplateApiV1PptTemplateManagementTemplatesPost", - methodName: "CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/templates\"", + operationId: "CreateThemeApiV3ThemeCreatePost", + methodName: "CreateThemeApiV3ThemeCreatePostAsync", + pathTemplate: "\"/api/v3/theme/create\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -318,9 +320,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTemplateApiV1PptTemplateManagementTemplatesPost", - methodName: "CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync", - pathTemplate: "\"/api/v1/ppt/template-management/templates\"", + operationId: "CreateThemeApiV3ThemeCreatePost", + methodName: "CreateThemeApiV3ThemeCreatePostAsync", + pathTemplate: "\"/api/v3/theme/create\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -335,112 +337,102 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Validation error - if ((int)__response.StatusCode == 400) + // + if ((int)__response.StatusCode == 401) { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::Presenton.ErrorResponse? __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.ErrorResponse.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.ErrorResponse.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)); } - // Validation Error - if ((int)__response.StatusCode == 422) + // + if ((int)__response.StatusCode == 404) { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::Presenton.HTTPValidationError? __value_422 = null; + string? __content_404 = null; + global::System.Exception? __exception_404 = null; try { if (__effectiveReadResponseAsString) { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); } else { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); } } catch (global::System.Exception __ex) { - __exception_422 = __ex; + __exception_404 = __ex; } - throw global::Presenton.ApiException.Create( + throw global::Presenton.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, h => h.Value)); } - // Internal server error - if ((int)__response.StatusCode == 500) + // Validation Error + if ((int)__response.StatusCode == 422) { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - global::Presenton.ErrorResponse? __value_500 = null; + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Presenton.HTTPValidationError? __value_422 = null; try { if (__effectiveReadResponseAsString) { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_422 = global::Presenton.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) { - __exception_500 = __ex; + __exception_422 = __ex; } - throw global::Presenton.ApiException.Create( + throw global::Presenton.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - responseBody: __content_500, - responseObject: __value_500, + 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, @@ -459,7 +451,7 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons client: HttpClient, response: __response, content: ref __content); - ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostResponseContent( + ProcessCreateThemeApiV3ThemeCreatePostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -468,9 +460,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.TemplateCreateResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Presenton.PresentationThemeResponse.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, @@ -500,9 +492,9 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons #endif ).ConfigureAwait(false); - var __value = await global::Presenton.TemplateCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Presenton.PresentationThemeResponse.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, @@ -543,35 +535,36 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons } } /// - /// Create Template + /// 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 /// - public async global::System.Threading.Tasks.Task CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync( - global::System.Guid id, + public async global::System.Threading.Tasks.Task CreateThemeApiV3ThemeCreatePostAsync( string name, - string? description = default, - object? designSystem = default, - object? designSysetm = default, + 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) { - var __request = new global::Presenton.TemplateCreateRequest + var __request = new global::Presenton.BodyCreateThemeApiV3ThemeCreatePost { - Id = id, Name = name, Description = description, - DesignSystem = designSystem, - DesignSysetm = designSysetm, + Data = data, + CompanyName = companyName, + Logo = logo, }; - return await CreateTemplateApiV1PptTemplateManagementTemplatesPostAsync( + return await CreateThemeApiV3ThemeCreatePostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.DeleteThemeApiV3ThemeDeleteThemeIdDelete.g.cs similarity index 70% rename from src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ThemeClient.DeleteThemeApiV3ThemeDeleteThemeIdDelete.g.cs index 46348e4..053a21a 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.DeleteThemeApiV3ThemeDeleteThemeIdDelete.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class TemplateManagementClient + public partial class V3ThemeClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_DeleteThemeApiV3ThemeDeleteThemeIdDeleteSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,62 +21,64 @@ public partial class TemplateManagementClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_DeleteThemeApiV3ThemeDeleteThemeIdDeleteSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteSecurityRequirement0, + { s_DeleteThemeApiV3ThemeDeleteThemeIdDeleteSecurityRequirement0, }; - partial void PrepareDeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteArguments( + partial void PrepareDeleteThemeApiV3ThemeDeleteThemeIdDeleteArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid templateId); - partial void PrepareDeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteRequest( + ref global::System.Guid themeId); + partial void PrepareDeleteThemeApiV3ThemeDeleteThemeIdDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid templateId); - partial void ProcessDeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteResponse( + global::System.Guid themeId); + partial void ProcessDeleteThemeApiV3ThemeDeleteThemeIdDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Delete Template + /// 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 /// - public async global::System.Threading.Tasks.Task DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync( - global::System.Guid templateId, + public async global::System.Threading.Tasks.Task DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync( + global::System.Guid themeId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsResponseAsync( - templateId: templateId, + await DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsResponseAsync( + themeId: themeId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); } /// - /// Delete Template + /// 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 /// - public async global::System.Threading.Tasks.Task DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsResponseAsync( - global::System.Guid templateId, + public async global::System.Threading.Tasks.Task DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsResponseAsync( + global::System.Guid themeId, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteArguments( + PrepareDeleteThemeApiV3ThemeDeleteThemeIdDeleteArguments( httpClient: HttpClient, - templateId: ref templateId); + themeId: ref themeId); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteSecurityRequirements, - operationName: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync"); + securityRequirements: s_DeleteThemeApiV3ThemeDeleteThemeIdDeleteSecurityRequirements, + operationName: "DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -96,7 +98,7 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR { var __pathBuilder = new global::Presenton.PathBuilder( - path: $"/api/v1/ppt/template-management/delete-templates/{templateId}", + path: $"/api/v3/theme/delete/{themeId}", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -135,10 +137,10 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteRequest( + PrepareDeleteThemeApiV3ThemeDeleteThemeIdDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - templateId: templateId!); + themeId: themeId!); return __httpRequest; } @@ -155,9 +157,9 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete", - methodName: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/delete-templates/{templateId}\"", + operationId: "DeleteThemeApiV3ThemeDeleteThemeIdDelete", + methodName: "DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync", + pathTemplate: "$\"/api/v3/theme/delete/{themeId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -189,9 +191,9 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete", - methodName: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/delete-templates/{templateId}\"", + operationId: "DeleteThemeApiV3ThemeDeleteThemeIdDelete", + methodName: "DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync", + pathTemplate: "$\"/api/v3/theme/delete/{themeId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -230,9 +232,9 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete", - methodName: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/delete-templates/{templateId}\"", + operationId: "DeleteThemeApiV3ThemeDeleteThemeIdDelete", + methodName: "DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync", + pathTemplate: "$\"/api/v3/theme/delete/{themeId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -270,7 +272,7 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteResponse( + ProcessDeleteThemeApiV3ThemeDeleteThemeIdDeleteResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -278,9 +280,9 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete", - methodName: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/delete-templates/{templateId}\"", + operationId: "DeleteThemeApiV3ThemeDeleteThemeIdDelete", + methodName: "DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync", + pathTemplate: "$\"/api/v3/theme/delete/{themeId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -300,9 +302,9 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete", - methodName: "DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/delete-templates/{templateId}\"", + operationId: "DeleteThemeApiV3ThemeDeleteThemeIdDelete", + methodName: "DeleteThemeApiV3ThemeDeleteThemeIdDeleteAsync", + pathTemplate: "$\"/api/v3/theme/delete/{themeId}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest!, @@ -317,6 +319,102 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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 == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + 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.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs index de36b29..39b3dc6 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs @@ -42,7 +42,8 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( ref string content); /// - /// 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. @@ -64,7 +65,8 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( return __response.Body; } /// - /// 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. @@ -335,6 +337,38 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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)); + } // Validation Error if ((int)__response.StatusCode == 422) { @@ -469,7 +503,8 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( } } /// - /// 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.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GetDefaultThemesApiV3ThemeDefaultGet.g.cs similarity index 75% rename from src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ThemeClient.GetDefaultThemesApiV3ThemeDefaultGet.g.cs index dcaac4e..b0cecf9 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GetDefaultThemesApiV3ThemeDefaultGet.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class TemplateManagementClient + public partial class V3ThemeClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_GetDefaultThemesApiV3ThemeDefaultGetSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,36 +21,36 @@ public partial class TemplateManagementClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetDefaultThemesApiV3ThemeDefaultGetSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetSecurityRequirement0, + { s_GetDefaultThemesApiV3ThemeDefaultGetSecurityRequirement0, }; - partial void PrepareGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetArguments( + partial void PrepareGetDefaultThemesApiV3ThemeDefaultGetArguments( global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetRequest( + partial void PrepareGetDefaultThemesApiV3ThemeDefaultGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetResponse( + partial void ProcessGetDefaultThemesApiV3ThemeDefaultGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetResponseContent( + partial void ProcessGetDefaultThemesApiV3ThemeDefaultGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get all presentations with layout counts
- /// Retrieve a summary of all presentations and the number of layouts in each + /// 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 /// - public async global::System.Threading.Tasks.Task GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync( + public async global::System.Threading.Tasks.Task> GetDefaultThemesApiV3ThemeDefaultGetAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsResponseAsync( + var __response = await GetDefaultThemesApiV3ThemeDefaultGetAsResponseAsync( requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -58,26 +58,26 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR return __response.Body; } /// - /// Get all presentations with layout counts
- /// Retrieve a summary of all presentations and the number of layouts in each + /// 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 /// - public async global::System.Threading.Tasks.Task> GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsResponseAsync( + public async global::System.Threading.Tasks.Task>> GetDefaultThemesApiV3ThemeDefaultGetAsResponseAsync( global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetArguments( + PrepareGetDefaultThemesApiV3ThemeDefaultGetArguments( httpClient: HttpClient); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetSecurityRequirements, - operationName: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync"); + securityRequirements: s_GetDefaultThemesApiV3ThemeDefaultGetSecurityRequirements, + operationName: "GetDefaultThemesApiV3ThemeDefaultGetAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -97,7 +97,7 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR { var __pathBuilder = new global::Presenton.PathBuilder( - path: "/api/v1/ppt/template-management/summary", + path: "/api/v3/theme/default", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -136,7 +136,7 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetRequest( + PrepareGetDefaultThemesApiV3ThemeDefaultGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest); @@ -155,9 +155,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet", - methodName: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync", - pathTemplate: "\"/api/v1/ppt/template-management/summary\"", + operationId: "GetDefaultThemesApiV3ThemeDefaultGet", + methodName: "GetDefaultThemesApiV3ThemeDefaultGetAsync", + pathTemplate: "\"/api/v3/theme/default\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -189,9 +189,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet", - methodName: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync", - pathTemplate: "\"/api/v1/ppt/template-management/summary\"", + operationId: "GetDefaultThemesApiV3ThemeDefaultGet", + methodName: "GetDefaultThemesApiV3ThemeDefaultGetAsync", + pathTemplate: "\"/api/v3/theme/default\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -230,9 +230,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet", - methodName: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync", - pathTemplate: "\"/api/v1/ppt/template-management/summary\"", + operationId: "GetDefaultThemesApiV3ThemeDefaultGet", + methodName: "GetDefaultThemesApiV3ThemeDefaultGetAsync", + pathTemplate: "\"/api/v3/theme/default\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -270,7 +270,7 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR ProcessResponse( client: HttpClient, response: __response); - ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetResponse( + ProcessGetDefaultThemesApiV3ThemeDefaultGetResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -278,9 +278,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet", - methodName: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync", - pathTemplate: "\"/api/v1/ppt/template-management/summary\"", + operationId: "GetDefaultThemesApiV3ThemeDefaultGet", + methodName: "GetDefaultThemesApiV3ThemeDefaultGetAsync", + pathTemplate: "\"/api/v3/theme/default\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -300,9 +300,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet", - methodName: "GetPresentationsSummaryApiV1PptTemplateManagementSummaryGetAsync", - pathTemplate: "\"/api/v1/ppt/template-management/summary\"", + operationId: "GetDefaultThemesApiV3ThemeDefaultGet", + methodName: "GetDefaultThemesApiV3ThemeDefaultGetAsync", + pathTemplate: "\"/api/v3/theme/default\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -317,43 +317,6 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Internal server error - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - global::Presenton.ErrorResponse? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - - throw global::Presenton.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - responseBody: __content_500, - responseObject: __value_500, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } if (__effectiveReadResponseAsString) { @@ -367,7 +330,7 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR client: HttpClient, response: __response, content: ref __content); - ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetResponseContent( + ProcessGetDefaultThemesApiV3ThemeDefaultGetResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -376,9 +339,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.GetPresentationSummaryResponse.FromJson(__content, JsonSerializerContext) ?? + 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( + return new global::Presenton.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -408,9 +371,9 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR #endif ).ConfigureAwait(false); - var __value = await global::Presenton.GetPresentationSummaryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).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( + return new global::Presenton.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::Presenton.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GetThemesApiV3ThemeAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GetThemesApiV3ThemeAllGet.g.cs new file mode 100644 index 0000000..9b7dbe2 --- /dev/null +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GetThemesApiV3ThemeAllGet.g.cs @@ -0,0 +1,486 @@ + +#nullable enable + +namespace Presenton +{ + public partial class V3ThemeClient + { + + + private static readonly global::Presenton.EndPointSecurityRequirement s_GetThemesApiV3ThemeAllGetSecurityRequirement0 = + 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_GetThemesApiV3ThemeAllGetSecurityRequirements = + new global::Presenton.EndPointSecurityRequirement[] + { s_GetThemesApiV3ThemeAllGetSecurityRequirement0, + }; + partial void PrepareGetThemesApiV3ThemeAllGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetThemesApiV3ThemeAllGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetThemesApiV3ThemeAllGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetThemesApiV3ThemeAllGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> GetThemesApiV3ThemeAllGetAsync( + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetThemesApiV3ThemeAllGetAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task>> GetThemesApiV3ThemeAllGetAsResponseAsync( + global::Presenton.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetThemesApiV3ThemeAllGetArguments( + httpClient: HttpClient); + + + var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetThemesApiV3ThemeAllGetSecurityRequirements, + operationName: "GetThemesApiV3ThemeAllGetAsync"); + + 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/theme/all", + 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.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); + PrepareGetThemesApiV3ThemeAllGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + 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: "GetThemesApiV3ThemeAllGet", + methodName: "GetThemesApiV3ThemeAllGetAsync", + pathTemplate: "\"/api/v3/theme/all\"", + 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: "GetThemesApiV3ThemeAllGet", + methodName: "GetThemesApiV3ThemeAllGetAsync", + pathTemplate: "\"/api/v3/theme/all\"", + 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: "GetThemesApiV3ThemeAllGet", + methodName: "GetThemesApiV3ThemeAllGetAsync", + pathTemplate: "\"/api/v3/theme/all\"", + 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); + ProcessGetThemesApiV3ThemeAllGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetThemesApiV3ThemeAllGet", + methodName: "GetThemesApiV3ThemeAllGetAsync", + pathTemplate: "\"/api/v3/theme/all\"", + 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: "GetThemesApiV3ThemeAllGet", + methodName: "GetThemesApiV3ThemeAllGetAsync", + pathTemplate: "\"/api/v3/theme/all\"", + 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); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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)); + } + // 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); + ProcessGetThemesApiV3ThemeAllGetResponseContent( + 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.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.UpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs similarity index 75% rename from src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs rename to src/libs/Presenton/Generated/Presenton.V3ThemeClient.UpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs index 58bc7ae..c335860 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.UpdateThemeApiV3ThemeUpdateThemeIdPatch.g.cs @@ -3,11 +3,11 @@ namespace Presenton { - public partial class TemplateManagementClient + public partial class V3ThemeClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_UpdateThemeApiV3ThemeUpdateThemeIdPatchSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,48 +21,48 @@ public partial class TemplateManagementClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_UpdateThemeApiV3ThemeUpdateThemeIdPatchSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetSecurityRequirement0, + { s_UpdateThemeApiV3ThemeUpdateThemeIdPatchSecurityRequirement0, }; - partial void PrepareGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetArguments( + partial void PrepareUpdateThemeApiV3ThemeUpdateThemeIdPatchArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid presentation); - partial void PrepareGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetRequest( + ref global::System.Guid themeId, + global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch request); + partial void PrepareUpdateThemeApiV3ThemeUpdateThemeIdPatchRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid presentation); - partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetResponse( + global::System.Guid themeId, + global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch request); + partial void ProcessUpdateThemeApiV3ThemeUpdateThemeIdPatchResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetResponseContent( + partial void ProcessUpdateThemeApiV3ThemeUpdateThemeIdPatchResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 + /// 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 /// - public async global::System.Threading.Tasks.Task GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync( - global::System.Guid presentation, + public async 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) { - var __response = await GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsResponseAsync( - presentation: presentation, + var __response = await UpdateThemeApiV3ThemeUpdateThemeIdPatchAsResponseAsync( + themeId: themeId, + + request: request, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -70,36 +70,35 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation return __response.Body; } /// - /// 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 + /// 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 /// - public async global::System.Threading.Tasks.Task> GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsResponseAsync( - global::System.Guid presentation, + public async 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) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: HttpClient); - PrepareGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetArguments( + PrepareUpdateThemeApiV3ThemeUpdateThemeIdPatchArguments( httpClient: HttpClient, - presentation: ref presentation); + themeId: ref themeId, + request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetSecurityRequirements, - operationName: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync"); + securityRequirements: s_UpdateThemeApiV3ThemeUpdateThemeIdPatchSecurityRequirements, + operationName: "UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -119,7 +118,7 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation { var __pathBuilder = new global::Presenton.PathBuilder( - path: $"/api/v1/ppt/template-management/get-templates/{presentation}", + path: $"/api/v3/theme/update/{themeId}", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Presenton.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -127,7 +126,7 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation clientParameters: Options.QueryParameters, requestParameters: requestOptions?.QueryParameters); var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, + method: new global::System.Net.Http.HttpMethod("PATCH"), requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); #if NET6_0_OR_GREATER __httpRequest.Version = global::System.Net.HttpVersion.Version11; @@ -150,6 +149,12 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation __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, @@ -158,10 +163,11 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetRequest( + PrepareUpdateThemeApiV3ThemeUpdateThemeIdPatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - presentation: presentation!); + themeId: themeId!, + request: request); return __httpRequest; } @@ -178,10 +184,10 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet", - methodName: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/get-templates/{presentation}\"", - httpMethod: "GET", + operationId: "UpdateThemeApiV3ThemeUpdateThemeIdPatch", + methodName: "UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync", + pathTemplate: "$\"/api/v3/theme/update/{themeId}\"", + httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -212,10 +218,10 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet", - methodName: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/get-templates/{presentation}\"", - httpMethod: "GET", + operationId: "UpdateThemeApiV3ThemeUpdateThemeIdPatch", + methodName: "UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync", + pathTemplate: "$\"/api/v3/theme/update/{themeId}\"", + httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -253,10 +259,10 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet", - methodName: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/get-templates/{presentation}\"", - httpMethod: "GET", + operationId: "UpdateThemeApiV3ThemeUpdateThemeIdPatch", + methodName: "UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync", + pathTemplate: "$\"/api/v3/theme/update/{themeId}\"", + httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -293,7 +299,7 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation ProcessResponse( client: HttpClient, response: __response); - ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetResponse( + ProcessUpdateThemeApiV3ThemeUpdateThemeIdPatchResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -301,10 +307,10 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet", - methodName: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/get-templates/{presentation}\"", - httpMethod: "GET", + operationId: "UpdateThemeApiV3ThemeUpdateThemeIdPatch", + methodName: "UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync", + pathTemplate: "$\"/api/v3/theme/update/{themeId}\"", + httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -323,10 +329,10 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet", - methodName: "GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetAsync", - pathTemplate: "$\"/api/v1/ppt/template-management/get-templates/{presentation}\"", - httpMethod: "GET", + operationId: "UpdateThemeApiV3ThemeUpdateThemeIdPatch", + methodName: "UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync", + pathTemplate: "$\"/api/v3/theme/update/{themeId}\"", + httpMethod: "PATCH", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -340,61 +346,84 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Invalid presentation ID - if ((int)__response.StatusCode == 400) + // + if ((int)__response.StatusCode == 401) { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::Presenton.ErrorResponse? __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.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); } else { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + - __value_400 = global::Presenton.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, + 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 == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); } } catch (global::System.Exception __ex) { - __exception_400 = __ex; + __exception_403 = __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_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, h => h.Value)); } - // No layouts found for presentation + // if ((int)__response.StatusCode == 404) { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::Presenton.ErrorResponse? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Presenton.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::Presenton.ErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,12 +432,11 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation } - throw global::Presenton.ApiException.Create( + throw global::Presenton.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, - responseObject: __value_404, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -451,43 +479,6 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation h => h.Key, h => h.Value)); } - // Internal server error - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - global::Presenton.ErrorResponse? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = global::Presenton.ErrorResponse.FromJson(__content_500, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - - throw global::Presenton.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - responseBody: __content_500, - responseObject: __value_500, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } if (__effectiveReadResponseAsString) { @@ -501,7 +492,7 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation client: HttpClient, response: __response, content: ref __content); - ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGetResponseContent( + ProcessUpdateThemeApiV3ThemeUpdateThemeIdPatchResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -510,9 +501,9 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation { __response.EnsureSuccessStatusCode(); - var __value = global::Presenton.GetLayoutsResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Presenton.PresentationThemeResponse.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, @@ -542,9 +533,9 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation #endif ).ConfigureAwait(false); - var __value = await global::Presenton.GetLayoutsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Presenton.PresentationThemeResponse.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, @@ -584,5 +575,43 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation __httpRequest?.Dispose(); } } + /// + /// 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 + /// + public async 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) + { + var __request = new global::Presenton.BodyUpdateThemeApiV3ThemeUpdateThemeIdPatch + { + Name = name, + Description = description, + CompanyName = companyName, + Logo = logo, + Data = data, + }; + + return await UpdateThemeApiV3ThemeUpdateThemeIdPatchAsync( + themeId: themeId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } } } \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV1ApiV3WebhookSubscribePost.g.cs similarity index 94% rename from src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs rename to src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV1ApiV3WebhookSubscribePost.g.cs index e393f86..17fd459 100644 --- a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV1ApiV3WebhookSubscribePost.g.cs @@ -7,7 +7,7 @@ public partial class V3WebhookClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_SubscribeToWebhookV3ApiV3WebhookSubscribePostSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_SubscribeToWebhookV1ApiV3WebhookSubscribePostSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,28 +21,28 @@ public partial class V3WebhookClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_SubscribeToWebhookV3ApiV3WebhookSubscribePostSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_SubscribeToWebhookV1ApiV3WebhookSubscribePostSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_SubscribeToWebhookV3ApiV3WebhookSubscribePostSecurityRequirement0, + { s_SubscribeToWebhookV1ApiV3WebhookSubscribePostSecurityRequirement0, }; - partial void PrepareSubscribeToWebhookV3ApiV3WebhookSubscribePostArguments( + partial void PrepareSubscribeToWebhookV1ApiV3WebhookSubscribePostArguments( global::System.Net.Http.HttpClient httpClient, global::Presenton.SubscribeToWebhookRequestV1 request); - partial void PrepareSubscribeToWebhookV3ApiV3WebhookSubscribePostRequest( + partial void PrepareSubscribeToWebhookV1ApiV3WebhookSubscribePostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::Presenton.SubscribeToWebhookRequestV1 request); - partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponse( + partial void ProcessSubscribeToWebhookV1ApiV3WebhookSubscribePostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent( + partial void ProcessSubscribeToWebhookV1ApiV3WebhookSubscribePostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// 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 @@ -51,13 +51,13 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent /// 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 SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync( + public async global::System.Threading.Tasks.Task SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync( global::Presenton.SubscribeToWebhookRequestV1 request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await SubscribeToWebhookV3ApiV3WebhookSubscribePostAsResponseAsync( + var __response = await SubscribeToWebhookV1ApiV3WebhookSubscribePostAsResponseAsync( request: request, requestOptions: requestOptions, @@ -67,7 +67,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent return __response.Body; } /// - /// 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 @@ -76,7 +76,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent /// 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> SubscribeToWebhookV3ApiV3WebhookSubscribePostAsResponseAsync( + public async global::System.Threading.Tasks.Task> SubscribeToWebhookV1ApiV3WebhookSubscribePostAsResponseAsync( global::Presenton.SubscribeToWebhookRequestV1 request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, @@ -86,15 +86,15 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent PrepareArguments( client: HttpClient); - PrepareSubscribeToWebhookV3ApiV3WebhookSubscribePostArguments( + PrepareSubscribeToWebhookV1ApiV3WebhookSubscribePostArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_SubscribeToWebhookV3ApiV3WebhookSubscribePostSecurityRequirements, - operationName: "SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync"); + securityRequirements: s_SubscribeToWebhookV1ApiV3WebhookSubscribePostSecurityRequirements, + operationName: "SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -159,7 +159,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareSubscribeToWebhookV3ApiV3WebhookSubscribePostRequest( + PrepareSubscribeToWebhookV1ApiV3WebhookSubscribePostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -179,8 +179,8 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "SubscribeToWebhookV3ApiV3WebhookSubscribePost", - methodName: "SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync", + operationId: "SubscribeToWebhookV1ApiV3WebhookSubscribePost", + methodName: "SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync", pathTemplate: "\"/api/v3/webhook/subscribe\"", httpMethod: "POST", baseUri: BaseUri, @@ -213,8 +213,8 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "SubscribeToWebhookV3ApiV3WebhookSubscribePost", - methodName: "SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync", + operationId: "SubscribeToWebhookV1ApiV3WebhookSubscribePost", + methodName: "SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync", pathTemplate: "\"/api/v3/webhook/subscribe\"", httpMethod: "POST", baseUri: BaseUri, @@ -254,8 +254,8 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "SubscribeToWebhookV3ApiV3WebhookSubscribePost", - methodName: "SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync", + operationId: "SubscribeToWebhookV1ApiV3WebhookSubscribePost", + methodName: "SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync", pathTemplate: "\"/api/v3/webhook/subscribe\"", httpMethod: "POST", baseUri: BaseUri, @@ -294,7 +294,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent ProcessResponse( client: HttpClient, response: __response); - ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponse( + ProcessSubscribeToWebhookV1ApiV3WebhookSubscribePostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -302,8 +302,8 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "SubscribeToWebhookV3ApiV3WebhookSubscribePost", - methodName: "SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync", + operationId: "SubscribeToWebhookV1ApiV3WebhookSubscribePost", + methodName: "SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync", pathTemplate: "\"/api/v3/webhook/subscribe\"", httpMethod: "POST", baseUri: BaseUri, @@ -324,8 +324,8 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "SubscribeToWebhookV3ApiV3WebhookSubscribePost", - methodName: "SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync", + operationId: "SubscribeToWebhookV1ApiV3WebhookSubscribePost", + methodName: "SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync", pathTemplate: "\"/api/v3/webhook/subscribe\"", httpMethod: "POST", baseUri: BaseUri, @@ -391,7 +391,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent client: HttpClient, response: __response, content: ref __content); - ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent( + ProcessSubscribeToWebhookV1ApiV3WebhookSubscribePostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -475,7 +475,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent } } /// - /// 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 @@ -492,7 +492,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent /// 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 SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync( + public async global::System.Threading.Tasks.Task SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync( string url, global::Presenton.WebhookEvent @event, string? secret = default, @@ -506,7 +506,7 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent Event = @event, }; - return await SubscribeToWebhookV3ApiV3WebhookSubscribePostAsync( + return await SubscribeToWebhookV1ApiV3WebhookSubscribePostAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs similarity index 93% rename from src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs rename to src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs index 3f8638e..2740f09 100644 --- a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete.g.cs @@ -7,7 +7,7 @@ public partial class V3WebhookClient { - private static readonly global::Presenton.EndPointSecurityRequirement s_UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteSecurityRequirement0 = + private static readonly global::Presenton.EndPointSecurityRequirement s_UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteSecurityRequirement0 = new global::Presenton.EndPointSecurityRequirement { Authorizations = new global::Presenton.EndPointAuthorizationRequirement[] @@ -21,23 +21,23 @@ public partial class V3WebhookClient }, }, }; - private static readonly global::Presenton.EndPointSecurityRequirement[] s_UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteSecurityRequirements = + private static readonly global::Presenton.EndPointSecurityRequirement[] s_UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteSecurityRequirements = new global::Presenton.EndPointSecurityRequirement[] - { s_UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteSecurityRequirement0, + { s_UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteSecurityRequirement0, }; - partial void PrepareUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteArguments( + partial void PrepareUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteArguments( global::System.Net.Http.HttpClient httpClient, - global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete request); - partial void PrepareUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteRequest( + global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete request); + partial void PrepareUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete request); - partial void ProcessUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteResponse( + global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete request); + partial void ProcessUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Unsubscribe To Webhook V3
+ /// Unsubscribe To Webhook V1
/// Unsubscribe from a webhook.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx @@ -46,13 +46,13 @@ partial void ProcessUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteResponse( /// 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 UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync( + public async global::System.Threading.Tasks.Task UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync( - global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete request, + global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( + await UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsResponseAsync( request: request, requestOptions: requestOptions, @@ -60,7 +60,7 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( ).ConfigureAwait(false); } /// - /// Unsubscribe To Webhook V3
+ /// Unsubscribe To Webhook V1
/// Unsubscribe from a webhook.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx @@ -69,9 +69,9 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( /// 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 UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsResponseAsync( - global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete request, + global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete request, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -79,15 +79,15 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( PrepareArguments( client: HttpClient); - PrepareUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteArguments( + PrepareUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteArguments( httpClient: HttpClient, request: request); var __authorizations = global::Presenton.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteSecurityRequirements, - operationName: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync"); + securityRequirements: s_UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteSecurityRequirements, + operationName: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync"); using var __timeoutCancellationTokenSource = global::Presenton.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -152,7 +152,7 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteRequest( + PrepareUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -172,8 +172,8 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete", - methodName: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync", + operationId: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete", + methodName: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync", pathTemplate: "\"/api/v3/webhook/unsubscribe\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -206,8 +206,8 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete", - methodName: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync", + operationId: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete", + methodName: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync", pathTemplate: "\"/api/v3/webhook/unsubscribe\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -247,8 +247,8 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete", - methodName: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync", + operationId: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete", + methodName: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync", pathTemplate: "\"/api/v3/webhook/unsubscribe\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -287,7 +287,7 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( ProcessResponse( client: HttpClient, response: __response); - ProcessUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteResponse( + ProcessUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -295,8 +295,8 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete", - methodName: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync", + operationId: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete", + methodName: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync", pathTemplate: "\"/api/v3/webhook/unsubscribe\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -317,8 +317,8 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( await global::Presenton.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Presenton.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete", - methodName: "UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync", + operationId: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete", + methodName: "UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync", pathTemplate: "\"/api/v3/webhook/unsubscribe\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -452,7 +452,7 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( } } /// - /// Unsubscribe To Webhook V3
+ /// Unsubscribe To Webhook V1
/// Unsubscribe from a webhook.
/// Create an API Key from your account to access this endpoint.
/// Authorization: Bearer sk-presenton-xxxxxxxx @@ -463,17 +463,17 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( /// 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 UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync( + public async global::System.Threading.Tasks.Task UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync( string id, global::Presenton.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Presenton.BodyUnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete + var __request = new global::Presenton.BodyUnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDelete { Id = id, }; - await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsync( + await UnsubscribeToWebhookV1ApiV3WebhookUnsubscribeDeleteAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Presenton/openapi.yaml b/src/libs/Presenton/openapi.yaml index ae880d9..5c8df7b 100644 --- a/src/libs/Presenton/openapi.yaml +++ b/src/libs/Presenton/openapi.yaml @@ -1,9 +1,6 @@ { "openapi": "3.1.0", - "info": { - "title": "FastAPI", - "version": "0.1.0" - }, + "info": { "title": "FastAPI", "version": "0.1.0" }, "servers": [ { "url": "https://api.presenton.ai" @@ -12,9 +9,7 @@ "paths": { "/api/v1/health": { "get": { - "tags": [ - "Health" - ], + "tags": ["Health"], "summary": "Health", "operationId": "health_api_v1_health_get", "responses": { @@ -22,9 +17,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HealthResponse" - } + "schema": { "$ref": "#/components/schemas/HealthResponse" } } } } @@ -33,9 +26,7 @@ }, "/api/v1/auth/jwt/login": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Auth:Jwt.Login", "operationId": "auth_jwt_login_api_v1_auth_jwt_login_post", "requestBody": { @@ -53,9 +44,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/BearerResponse" - }, + "schema": { "$ref": "#/components/schemas/BearerResponse" }, "example": { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI", "token_type": "bearer" @@ -67,21 +56,15 @@ "description": "Bad Request", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorModel" - }, + "schema": { "$ref": "#/components/schemas/ErrorModel" }, "examples": { "LOGIN_BAD_CREDENTIALS": { "summary": "Bad credentials or the user is inactive.", - "value": { - "detail": "LOGIN_BAD_CREDENTIALS" - } + "value": { "detail": "LOGIN_BAD_CREDENTIALS" } }, "LOGIN_USER_NOT_VERIFIED": { "summary": "The user is not verified.", - "value": { - "detail": "LOGIN_USER_NOT_VERIFIED" - } + "value": { "detail": "LOGIN_USER_NOT_VERIFIED" } } } } @@ -91,9 +74,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -102,44 +83,28 @@ }, "/api/v1/auth/jwt/logout": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Auth:Jwt.Logout", "operationId": "auth_jwt_logout_api_v1_auth_jwt_logout_post", "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, - "401": { - "description": "Missing token or inactive user." - } + "401": { "description": "Missing token or inactive user." } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/register": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Register:Register", "operationId": "register_register_api_v1_auth_register_post", "requestBody": { "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserCreate" - } + "schema": { "$ref": "#/components/schemas/UserCreate" } } }, "required": true @@ -149,9 +114,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, @@ -159,15 +122,11 @@ "description": "Bad Request", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorModel" - }, + "schema": { "$ref": "#/components/schemas/ErrorModel" }, "examples": { "REGISTER_USER_ALREADY_EXISTS": { "summary": "A user with this email already exists.", - "value": { - "detail": "REGISTER_USER_ALREADY_EXISTS" - } + "value": { "detail": "REGISTER_USER_ALREADY_EXISTS" } }, "REGISTER_INVALID_PASSWORD": { "summary": "Password validation failed.", @@ -186,9 +145,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -197,9 +154,7 @@ }, "/api/v1/auth/forgot-password": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Reset:Forgot Password", "operationId": "reset_forgot_password_api_v1_auth_forgot_password_post", "requestBody": { @@ -215,19 +170,13 @@ "responses": { "202": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -236,9 +185,7 @@ }, "/api/v1/auth/reset-password": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Reset:Reset Password", "operationId": "reset_reset_password_api_v1_auth_reset_password_post", "requestBody": { @@ -254,25 +201,17 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "400": { "description": "Bad Request", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorModel" - }, + "schema": { "$ref": "#/components/schemas/ErrorModel" }, "examples": { "RESET_PASSWORD_BAD_TOKEN": { "summary": "Bad or expired token.", - "value": { - "detail": "RESET_PASSWORD_BAD_TOKEN" - } + "value": { "detail": "RESET_PASSWORD_BAD_TOKEN" } }, "RESET_PASSWORD_INVALID_PASSWORD": { "summary": "Password validation failed.", @@ -291,9 +230,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -302,9 +239,7 @@ }, "/api/v1/auth/request-verify-token": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Verify:Request-Token", "operationId": "verify_request_token_api_v1_auth_request_verify_token_post", "requestBody": { @@ -320,19 +255,13 @@ "responses": { "202": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -341,9 +270,7 @@ }, "/api/v1/auth/verify": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Verify:Verify", "operationId": "verify_verify_api_v1_auth_verify_post", "requestBody": { @@ -361,9 +288,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, @@ -371,21 +296,15 @@ "description": "Bad Request", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorModel" - }, + "schema": { "$ref": "#/components/schemas/ErrorModel" }, "examples": { "VERIFY_USER_BAD_TOKEN": { - "summary": "Bad token, not existing user ornot the e-mail currently set for the user.", - "value": { - "detail": "VERIFY_USER_BAD_TOKEN" - } + "summary": "Bad token, not existing user or not the e-mail currently set for the user.", + "value": { "detail": "VERIFY_USER_BAD_TOKEN" } }, "VERIFY_USER_ALREADY_VERIFIED": { "summary": "The user is already verified.", - "value": { - "detail": "VERIFY_USER_ALREADY_VERIFIED" - } + "value": { "detail": "VERIFY_USER_ALREADY_VERIFIED" } } } } @@ -395,9 +314,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -406,9 +323,7 @@ }, "/api/v1/auth/google/authorize": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Authorize", "operationId": "authorize_api_v1_auth_google_authorize_get", "parameters": [ @@ -418,9 +333,7 @@ "required": false, "schema": { "type": "array", - "items": { - "type": "string" - }, + "items": { "type": "string" }, "title": "Scopes" } } @@ -440,9 +353,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -451,9 +362,7 @@ }, "/api/v1/auth/google/callback": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Callback", "description": "The response varies based on the authentication backend used.", "operationId": "callback_api_v1_auth_google_callback_get", @@ -463,14 +372,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Code" } }, @@ -479,14 +381,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "State" } }, @@ -495,14 +390,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Error" } } @@ -510,29 +398,19 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "400": { "content": { "application/json": { "examples": { - "INVALID_STATE_TOKEN": { - "summary": "Invalid state token." - }, + "INVALID_STATE_TOKEN": { "summary": "Invalid state token." }, "LOGIN_BAD_CREDENTIALS": { "summary": "User is inactive.", - "value": { - "detail": "LOGIN_BAD_CREDENTIALS" - } + "value": { "detail": "LOGIN_BAD_CREDENTIALS" } } }, - "schema": { - "$ref": "#/components/schemas/ErrorModel" - } + "schema": { "$ref": "#/components/schemas/ErrorModel" } } }, "description": "Bad Request" @@ -541,9 +419,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -552,9 +428,7 @@ }, "/api/v1/auth/users/me": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Users:Current User", "operationId": "users_current_user_api_v1_auth_users_me_get", "responses": { @@ -562,34 +436,22 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, - "401": { - "description": "Missing token or inactive user." - } + "401": { "description": "Missing token or inactive user." } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] }, "patch": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Users:Patch Current User", "operationId": "users_patch_current_user_api_v1_auth_users_me_patch", "requestBody": { "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserUpdate" - } + "schema": { "$ref": "#/components/schemas/UserUpdate" } } }, "required": true @@ -599,25 +461,20 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, + "401": { "description": "Missing token or inactive user." }, "400": { "description": "Bad Request", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorModel" - }, + "schema": { "$ref": "#/components/schemas/ErrorModel" }, "examples": { "UPDATE_USER_EMAIL_ALREADY_EXISTS": { "summary": "A user with this email already exists.", - "value": { - "detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS" - } + "value": { "detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS" } }, "UPDATE_USER_INVALID_PASSWORD": { "summary": "Password validation failed.", @@ -632,48 +489,30 @@ } } }, - "401": { - "description": "Missing token or inactive user." - }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/users/{id}": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Users:User", "operationId": "users_user_api_v1_auth_users__id__get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "title": "Id" - } + "schema": { "type": "string", "title": "Id" } } ], "responses": { @@ -681,62 +520,41 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, - "401": { - "description": "Missing token or inactive user." - }, - "403": { - "description": "Not a superuser." - }, - "404": { - "description": "The user does not exist." - }, + "401": { "description": "Missing token or inactive user." }, + "403": { "description": "Not a superuser." }, + "404": { "description": "The user does not exist." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "patch": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Users:Patch User", "operationId": "users_patch_user_api_v1_auth_users__id__patch", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "title": "Id" - } + "schema": { "type": "string", "title": "Id" } } ], "requestBody": { "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserUpdate" - } + "schema": { "$ref": "#/components/schemas/UserUpdate" } } } }, @@ -745,21 +563,20 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, + "401": { "description": "Missing token or inactive user." }, + "403": { "description": "Not a superuser." }, + "404": { "description": "The user does not exist." }, "400": { "content": { "application/json": { "examples": { "UPDATE_USER_EMAIL_ALREADY_EXISTS": { "summary": "A user with this email already exists.", - "value": { - "detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS" - } + "value": { "detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS" } }, "UPDATE_USER_INVALID_PASSWORD": { "summary": "Password validation failed.", @@ -771,76 +588,44 @@ } } }, - "schema": { - "$ref": "#/components/schemas/ErrorModel" - } + "schema": { "$ref": "#/components/schemas/ErrorModel" } } }, "description": "Bad Request" }, - "401": { - "description": "Missing token or inactive user." - }, - "403": { - "description": "Not a superuser." - }, - "404": { - "description": "The user does not exist." - }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Users:Delete User", "operationId": "users_delete_user_api_v1_auth_users__id__delete", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "title": "Id" - } + "schema": { "type": "string", "title": "Id" } } ], "responses": { - "204": { - "description": "Successful Response" - }, - "401": { - "description": "Missing token or inactive user." - }, - "403": { - "description": "Not a superuser." - }, - "404": { - "description": "The user does not exist." - }, + "204": { "description": "Successful Response" }, + "401": { "description": "Missing token or inactive user." }, + "403": { "description": "Not a superuser." }, + "404": { "description": "The user does not exist." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -849,9 +634,7 @@ }, "/api/v1/auth/profile": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Get Me", "operationId": "get_me_api_v1_auth_profile_get", "parameters": [ @@ -872,9 +655,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/GetMeResponse" - } + "schema": { "$ref": "#/components/schemas/GetMeResponse" } } } }, @@ -882,9 +663,46 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/v1/auth/profile/change-password": { + "post": { + "tags": ["Auth"], + "summary": "Change Password", + "operationId": "change_password_api_v1_auth_profile_change_password_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ChangePasswordRequest" } + } + } + }, + "responses": { + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -893,9 +711,7 @@ }, "/api/v1/auth/profile/update": { "patch": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Patch Me", "operationId": "patch_me_api_v1_auth_profile_update_patch", "requestBody": { @@ -910,54 +726,32 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/profile/delete": { "delete": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Delete User Profile", "operationId": "delete_user_profile_api_v1_auth_profile_delete_delete", - "responses": { - "204": { - "description": "Successful Response" - } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "responses": { "204": { "description": "Successful Response" } }, + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/token/list": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "List Tokens", "operationId": "list_tokens_api_v1_auth_token_list_get", "responses": { @@ -966,9 +760,7 @@ "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/AccessToken" - }, + "items": { "$ref": "#/components/schemas/AccessToken" }, "type": "array", "title": "Response List Tokens Api V1 Auth Token List Get" } @@ -976,18 +768,12 @@ } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/token/create": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Create Token", "operationId": "create_token_api_v1_auth_token_create_post", "responses": { @@ -995,25 +781,17 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/AccessToken" - } + "schema": { "$ref": "#/components/schemas/AccessToken" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/token/revoke": { "post": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Revoke Token", "operationId": "revoke_token_api_v1_auth_token_revoke_post", "requestBody": { @@ -1043,25 +821,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/auth/enterprise-login": { "get": { - "tags": [ - "Auth" - ], + "tags": ["Auth"], "summary": "Enterprise Login", "operationId": "enterprise_login_api_v1_auth_enterprise_login_get", "parameters": [ @@ -1081,14 +851,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "First Name" } }, @@ -1097,14 +860,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Last Name" } } @@ -1124,9 +880,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1135,9 +889,7 @@ }, "/api/v1/credit/account": { "get": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Get Credit Account", "operationId": "get_credit_account_api_v1_credit_account_get", "responses": { @@ -1145,25 +897,17 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditAccount" - } + "schema": { "$ref": "#/components/schemas/CreditAccount" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/credit/balance": { "get": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Get Balance", "operationId": "get_balance_api_v1_credit_balance_get", "responses": { @@ -1178,45 +922,27 @@ } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/credit/transactions": { "get": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Get Transactions", "operationId": "get_transactions_api_v1_credit_transactions_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "page", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } + "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "schema": { "type": "integer", "default": 10, "title": "Page Size" } } ], "responses": { @@ -1224,9 +950,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -1234,9 +958,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1245,36 +967,22 @@ }, "/api/v1/credit/added": { "get": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Get Added Credits", "operationId": "get_added_credits_api_v1_credit_added_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "page", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } + "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "schema": { "type": "integer", "default": 10, "title": "Page Size" } } ], "responses": { @@ -1282,9 +990,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -1292,9 +998,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1303,9 +1007,7 @@ }, "/api/v1/credit/added/{id}/used": { "get": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Get Used Credits", "operationId": "get_used_credits_api_v1_credit_added__id__used_get", "parameters": [ @@ -1313,31 +1015,19 @@ "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } }, { "name": "page", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } + "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "schema": { "type": "integer", "default": 10, "title": "Page Size" } } ], "responses": { @@ -1345,9 +1035,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -1355,9 +1043,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1366,9 +1052,7 @@ }, "/api/v1/credit/info": { "get": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Get Credits Rates And Auto Topup Info", "operationId": "get_credits_rates_and_auto_topup_info_api_v1_credit_info_get", "parameters": [ @@ -1399,9 +1083,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1410,9 +1092,7 @@ }, "/api/v1/credit/auto-topup": { "post": { - "tags": [ - "Credit" - ], + "tags": ["Credit"], "summary": "Set Auto Topup", "operationId": "set_auto_topup_api_v1_credit_auto_topup_post", "parameters": [ @@ -1432,9 +1112,7 @@ "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/TopupInfo" - } + "schema": { "$ref": "#/components/schemas/TopupInfo" } } } }, @@ -1443,9 +1121,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/TopupInfo" - } + "schema": { "$ref": "#/components/schemas/TopupInfo" } } } }, @@ -1453,9 +1129,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1464,9 +1138,7 @@ }, "/api/v1/ppt/files/upload": { "post": { - "tags": [ - "Files" - ], + "tags": ["Files"], "summary": "Upload Files V1", "description": "Upload files to be used later.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "upload_files_v1_api_v1_ppt_files_upload_post", @@ -1500,9 +1172,7 @@ "application/json": { "schema": { "type": "array", - "items": { - "type": "string" - }, + "items": { "type": "string" }, "title": "Response Upload Files V1 Api V1 Ppt Files Upload Post" } } @@ -1512,9 +1182,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1523,9 +1191,7 @@ }, "/api/v1/ppt/files/upload/ui": { "post": { - "tags": [ - "Files" - ], + "tags": ["Files"], "summary": "Upload Files For Ui", "operationId": "upload_files_for_ui_api_v1_ppt_files_upload_ui_post", "requestBody": { @@ -1544,9 +1210,7 @@ "content": { "application/json": { "schema": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Response Upload Files For Ui Api V1 Ppt Files Upload Ui Post" } @@ -1557,25 +1221,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/files/upload-and-get-temporary-urls": { "post": { - "tags": [ - "Files" - ], + "tags": ["Files"], "summary": "Upload Files And Get Temporary Urls", "operationId": "upload_files_and_get_temporary_urls_api_v1_ppt_files_upload_and_get_temporary_urls_post", "requestBody": { @@ -1594,9 +1250,7 @@ "content": { "application/json": { "schema": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Response Upload Files And Get Temporary Urls Api V1 Ppt Files Upload And Get Temporary Urls Post" } @@ -1607,25 +1261,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/files/decompose": { "post": { - "tags": [ - "Files" - ], + "tags": ["Files"], "summary": "Decompose Files", "operationId": "decompose_files_api_v1_ppt_files_decompose_post", "requestBody": { @@ -1657,25 +1303,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/fonts/upload": { "post": { - "tags": [ - "fonts" - ], + "tags": ["fonts"], "summary": "Upload Font", "operationId": "upload_font_api_v1_ppt_fonts_upload_post", "parameters": [ @@ -1706,9 +1344,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/FontDetail" - } + "schema": { "$ref": "#/components/schemas/FontDetail" } } } }, @@ -1716,9 +1352,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1727,9 +1361,7 @@ }, "/api/v1/ppt/fonts/uploaded": { "get": { - "tags": [ - "fonts" - ], + "tags": ["fonts"], "summary": "List Fonts", "operationId": "list_fonts_api_v1_ppt_fonts_uploaded_get", "parameters": [ @@ -1750,9 +1382,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/FontListResponse" - } + "schema": { "$ref": "#/components/schemas/FontListResponse" } } } }, @@ -1760,9 +1390,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1771,9 +1399,7 @@ }, "/api/v1/ppt/fonts/{font_id}": { "delete": { - "tags": [ - "fonts" - ], + "tags": ["fonts"], "summary": "Delete Font", "operationId": "delete_font_api_v1_ppt_fonts__font_id__delete", "parameters": [ @@ -1781,11 +1407,7 @@ "name": "font_id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Font Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Font Id" } }, { "name": "Authorization", @@ -1800,16 +1422,12 @@ } ], "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1818,16 +1436,15 @@ }, "/api/v1/ppt/fonts/check": { "post": { - "tags": [ - "fonts" - ], - "summary": "Check Fonts In Pptx", - "operationId": "check_fonts_in_pptx_api_v1_ppt_fonts_check_post", + "tags": ["fonts"], + "summary": "Check Fonts In Pptx Handler", + "description": "Extract fonts from a PPTX file and check their availability in Google Fonts.\n\nReturns:\n FontCheckResponse with available and unavailable fonts", + "operationId": "check_fonts_in_pptx_handler_api_v1_ppt_fonts_check_post", "requestBody": { "content": { "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/Body_check_fonts_in_pptx_api_v1_ppt_fonts_check_post" + "$ref": "#/components/schemas/Body_check_fonts_in_pptx_handler_api_v1_ppt_fonts_check_post" } } }, @@ -1838,9 +1455,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/FontCheckResponse" - } + "schema": { "$ref": "#/components/schemas/FontCheckResponse" } } } }, @@ -1848,9 +1463,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1859,9 +1472,7 @@ }, "/api/v1/ppt/outlines/stream/{id}": { "get": { - "tags": [ - "Outlines" - ], + "tags": ["Outlines"], "summary": "Stream Outlines", "operationId": "stream_outlines_api_v1_ppt_outlines_stream__id__get", "parameters": [ @@ -1869,29 +1480,19 @@ "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1900,9 +1501,7 @@ }, "/api/v1/ppt/outlines/generate": { "post": { - "tags": [ - "Outlines" - ], + "tags": ["Outlines"], "summary": "Generate Outlines Sync V1", "operationId": "generate_outlines_sync_v1_api_v1_ppt_outlines_generate_post", "parameters": [ @@ -1935,9 +1534,7 @@ "application/json": { "schema": { "type": "array", - "items": { - "type": "string" - }, + "items": { "type": "string" }, "title": "Response Generate Outlines Sync V1 Api V1 Ppt Outlines Generate Post" } } @@ -1947,9 +1544,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -1958,36 +1553,22 @@ }, "/api/v1/ppt/presentation/all/ui": { "get": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Get All User Presentations For Ui", "operationId": "get_all_user_presentations_for_ui_api_v1_ppt_presentation_all_ui_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "page", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } + "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "schema": { "type": "integer", "default": 10, "title": "Page Size" } } ], "responses": { @@ -1995,9 +1576,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -2005,9 +1584,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2016,9 +1593,7 @@ }, "/api/v1/ppt/presentation/all": { "get": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Get All User Presentations", "description": "Get all presentations of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "get_all_user_presentations_api_v1_ppt_presentation_all_get", @@ -2027,21 +1602,13 @@ "name": "page", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } + "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "schema": { "type": "integer", "default": 10, "title": "Page Size" } }, { "name": "Authorization", @@ -2060,9 +1627,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -2070,9 +1635,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2081,9 +1644,7 @@ }, "/api/v1/ppt/presentation/{id}/ui": { "get": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Get Presentation For Ui", "operationId": "get_presentation_for_ui_api_v1_ppt_presentation__id__ui_get", "parameters": [ @@ -2091,11 +1652,7 @@ "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } } ], "responses": { @@ -2113,48 +1670,32 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Delete Presentation By Id For Ui", "operationId": "delete_presentation_by_id_for_ui_api_v1_ppt_presentation__id__ui_delete", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } } ], "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2163,9 +1704,7 @@ }, "/api/v1/ppt/presentation/{id}": { "get": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Get Presentation And Slides By Id", "description": "Get a presentation and its slides by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "get_presentation_and_slides_by_id_api_v1_ppt_presentation__id__get", @@ -2174,11 +1713,7 @@ "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } }, { "name": "Authorization", @@ -2207,18 +1742,14 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Delete Presentation By Id", "description": "Delete a presentation by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "delete_presentation_by_id_api_v1_ppt_presentation__id__delete", @@ -2227,11 +1758,7 @@ "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } }, { "name": "Authorization", @@ -2246,16 +1773,12 @@ } ], "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2264,9 +1787,7 @@ }, "/api/v1/ppt/presentation/create": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Create Presentation", "operationId": "create_presentation_api_v1_ppt_presentation_create_post", "requestBody": { @@ -2283,9 +1804,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationModel" - } + "schema": { "$ref": "#/components/schemas/PresentationModel" } } } }, @@ -2293,25 +1812,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/presentation/prepare": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Prepare Presentation", "operationId": "prepare_presentation_api_v1_ppt_presentation_prepare_post", "requestBody": { @@ -2329,9 +1840,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationModel" - } + "schema": { "$ref": "#/components/schemas/PresentationModel" } } } }, @@ -2339,25 +1848,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/presentation/stream/{id}": { "get": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Stream Presentation", "operationId": "stream_presentation_api_v1_ppt_presentation_stream__id__get", "parameters": [ @@ -2365,11 +1866,7 @@ "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } } ], "responses": { @@ -2387,9 +1884,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2398,9 +1893,7 @@ }, "/api/v1/ppt/presentation/update": { "patch": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Update Presentation", "operationId": "update_presentation_api_v1_ppt_presentation_update_patch", "requestBody": { @@ -2428,25 +1921,17 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/presentation/export": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Export Presentation As Pptx Or Pdf V1", "description": "Export presentation as PPTX, PDF or PNG using API.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "export_presentation_as_pptx_or_pdf_v1_api_v1_ppt_presentation_export_post", @@ -2488,9 +1973,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2499,9 +1982,7 @@ }, "/api/v1/ppt/presentation/generate": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Generate Presentation Sync V1", "description": "Generate a presentation synchronously.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "generate_presentation_sync_v1_api_v1_ppt_presentation_generate_post", @@ -2543,9 +2024,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2554,9 +2033,7 @@ }, "/api/v1/ppt/presentation/generate/async": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Generate Presentation Async V1", "description": "Generate a presentation asynchronously.\n\nUse /api/v1/ppt/presentation/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "generate_presentation_async_v1_api_v1_ppt_presentation_generate_async_post", @@ -2588,9 +2065,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncTaskModel" - } + "schema": { "$ref": "#/components/schemas/AsyncTaskModel" } } } }, @@ -2598,9 +2073,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2609,9 +2082,7 @@ }, "/api/v1/ppt/presentation/status/{id}": { "get": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Check Async Presentation Generation Status", "description": "Check the status of a presentation being generated asynchronously.\nUse /api/v1/ppt/presentation/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "check_async_presentation_generation_status_api_v1_ppt_presentation_status__id__get", @@ -2644,9 +2115,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncTaskModel" - } + "schema": { "$ref": "#/components/schemas/AsyncTaskModel" } } } }, @@ -2654,9 +2123,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2665,9 +2132,7 @@ }, "/api/v1/ppt/presentation/edit": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Edit Presentation With New Content", "description": "Edit presentation with new content.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "edit_presentation_with_new_content_api_v1_ppt_presentation_edit_post", @@ -2709,9 +2174,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2720,9 +2183,7 @@ }, "/api/v1/ppt/presentation/derive": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Derive Presentation From Existing One", "description": "Derive a new presentation from your existing presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "derive_presentation_from_existing_one_api_v1_ppt_presentation_derive_post", @@ -2764,9 +2225,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2775,9 +2234,7 @@ }, "/api/v1/ppt/presentation/create/from-json": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Create Presentation From Json Sync V1", "description": "Create a presentation from JSON synchronously.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "create_presentation_from_json_sync_v1_api_v1_ppt_presentation_create_from_json_post", @@ -2819,9 +2276,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2830,9 +2285,7 @@ }, "/api/v1/ppt/presentation/create/from-json/async": { "post": { - "tags": [ - "Presentation" - ], + "tags": ["Presentation"], "summary": "Create Presentation From Json Async V1", "description": "Create a presentation from JSON asynchronously.\n\nUse /api/v1/ppt/presentation/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", "operationId": "create_presentation_from_json_async_v1_api_v1_ppt_presentation_create_from_json_async_post", @@ -2874,9 +2327,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2885,9 +2336,7 @@ }, "/api/v1/ppt/template/all": { "get": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Get All Templates", "operationId": "get_all_templates_api_v1_ppt_template_all_get", "parameters": [ @@ -2922,9 +2371,7 @@ "application/json": { "schema": { "type": "array", - "items": { - "$ref": "#/components/schemas/TemplateDetail" - }, + "items": { "$ref": "#/components/schemas/TemplateDetail" }, "title": "Response Get All Templates Api V1 Ppt Template All Get" } } @@ -2934,26 +2381,63 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/template/{template_id}/layouts": { - "get": { - "tags": [ - "Template" - ], - "summary": "Get Layouts", - "operationId": "get_layouts_api_v1_ppt_template__template_id__layouts_get", - "parameters": [ - { - "name": "template_id", - "in": "path", + "/api/v1/ppt/template/layouts": { + "post": { + "tags": ["Template"], + "summary": "Get Layouts Batch", + "operationId": "get_layouts_batch_api_v1_ppt_template_layouts_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMultipleTemplateLayoutsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GetTemplateLayoutsResponse" + }, + "type": "array", + "title": "Response Get Layouts Batch Api V1 Ppt Template Layouts Post" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/v1/ppt/template/{template_id}/layouts": { + "get": { + "tags": ["Template"], + "summary": "Get Layouts", + "operationId": "get_layouts_api_v1_ppt_template__template_id__layouts_get", + "parameters": [ + { + "name": "template_id", + "in": "path", "required": true, "schema": { "type": "string", @@ -2978,9 +2462,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -2989,9 +2471,7 @@ }, "/api/v1/ppt/template/{id}": { "get": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Get Template By Id", "operationId": "get_template_by_id_api_v1_ppt_template__id__get", "parameters": [ @@ -3033,9 +2513,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3044,9 +2522,7 @@ }, "/api/v1/ppt/template/{id}/example": { "get": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Get Template Example", "description": "Get a example slides content data for a template.\nThis data can be used to create presentation from json.", "operationId": "get_template_example_api_v1_ppt_template__id__example_get", @@ -3079,9 +2555,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/TemplateExample" - } + "schema": { "$ref": "#/components/schemas/TemplateExample" } } } }, @@ -3089,9 +2563,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3100,9 +2572,7 @@ }, "/api/v1/ppt/template/fonts-upload-and-slides-preview": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Upload Fonts And Slides Preview", "operationId": "upload_fonts_and_slides_preview_api_v1_ppt_template_fonts_upload_and_slides_preview_post", "parameters": [ @@ -3143,9 +2613,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3154,9 +2622,7 @@ }, "/api/v1/ppt/template/create/init": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Init Create Template", "operationId": "init_create_template_api_v1_ppt_template_create_init_post", "parameters": [ @@ -3199,9 +2665,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3210,9 +2674,7 @@ }, "/api/v1/ppt/template/slide-layout/create": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Create Slide Layout", "operationId": "create_slide_layout_api_v1_ppt_template_slide_layout_create_post", "parameters": [ @@ -3265,9 +2727,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3276,11 +2736,9 @@ }, "/api/v1/ppt/template/create/slide-layout": { "post": { - "tags": [ - "Template" - ], - "summary": "Create Slide Layout Old", - "operationId": "create_slide_layout_old_api_v1_ppt_template_create_slide_layout_post", + "tags": ["Template"], + "summary": "Create Slide Layout", + "operationId": "create_slide_layout_api_v1_ppt_template_create_slide_layout_post", "parameters": [ { "name": "is_reconstruct", @@ -3331,9 +2789,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3342,9 +2798,7 @@ }, "/api/v1/ppt/template/slide-layout/edit": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Edit Slide Layout", "operationId": "edit_slide_layout_api_v1_ppt_template_slide_layout_edit_post", "parameters": [ @@ -3385,9 +2839,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3396,9 +2848,7 @@ }, "/api/v1/ppt/template/slide-layout/edit-section": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Edit Slide Layout Section", "operationId": "edit_slide_layout_section_api_v1_ppt_template_slide_layout_edit_section_post", "parameters": [ @@ -3439,9 +2889,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3450,9 +2898,7 @@ }, "/api/v1/ppt/template/save": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Save Template", "operationId": "save_template_api_v1_ppt_template_save_post", "parameters": [ @@ -3472,9 +2918,7 @@ "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SaveTemplateRequest" - } + "schema": { "$ref": "#/components/schemas/SaveTemplateRequest" } } } }, @@ -3493,9 +2937,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3504,9 +2946,7 @@ }, "/api/v1/ppt/template/clone": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Clone Template", "operationId": "clone_template_api_v1_ppt_template_clone_post", "parameters": [ @@ -3526,9 +2966,7 @@ "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CloneTemplateRequest" - } + "schema": { "$ref": "#/components/schemas/CloneTemplateRequest" } } } }, @@ -3547,9 +2985,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3558,9 +2994,7 @@ }, "/api/v1/ppt/template/update": { "put": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Update Template", "operationId": "update_template_api_v1_ppt_template_update_put", "parameters": [ @@ -3580,9 +3014,7 @@ "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateTemplateRequest" - } + "schema": { "$ref": "#/components/schemas/UpdateTemplateRequest" } } } }, @@ -3601,9 +3033,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3612,9 +3042,7 @@ }, "/api/v1/ppt/template/slide-layout/save": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Save Slide Layout", "operationId": "save_slide_layout_api_v1_ppt_template_slide_layout_save_post", "parameters": [ @@ -3643,19 +3071,13 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3664,9 +3086,7 @@ }, "/api/v1/ppt/template/slide-layout/clone": { "post": { - "tags": [ - "Template" - ], + "tags": ["Template"], "summary": "Clone Slide Layout", "operationId": "clone_slide_layout_api_v1_ppt_template_slide_layout_clone_post", "parameters": [ @@ -3707,67 +3127,16 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/pptx-slides/process": { - "post": { - "tags": [ - "PPTX Slides" - ], - "summary": "Process Pptx Slides", - "description": "Process a PPTX file to extract slide screenshots and XML content.\n\nThis endpoint:\n1. Validates the uploaded PPTX file\n2. Installs any provided font files\n3. Unzips the PPTX to extract slide XMLs\n4. Uses LibreOffice to generate slide screenshots\n5. Returns both screenshot URLs and XML content for each slide", - "operationId": "process_pptx_slides_api_v1_ppt_pptx_slides_process_post", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_process_pptx_slides_api_v1_ppt_pptx_slides_process_post" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PptxSlidesResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] - } - }, "/api/v1/ppt/slide/edit": { "post": { - "tags": [ - "Slide" - ], + "tags": ["Slide"], "summary": "Edit Slide", "description": "Edit a slide with a prompt.\n\nUsage options:\n- Provide `id` + `prompt` to edit a specific slide by id.\n- Provide `presentation_id` + `prompt` to edit by presentation. You can also\n pass `slide_index` to target a specific slide; if omitted, the index is\n inferred from the prompt.\n- Provide `export_as` to export the edited presentation as `pptx` or `pdf`.", "operationId": "edit_slide_api_v1_ppt_slide_edit_post", @@ -3788,9 +3157,7 @@ "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/EditSlideRequest" - } + "schema": { "$ref": "#/components/schemas/EditSlideRequest" } } } }, @@ -3804,9 +3171,7 @@ { "$ref": "#/components/schemas/PresentationPathAndEditPath" }, - { - "$ref": "#/components/schemas/SlideModel" - } + { "$ref": "#/components/schemas/SlideModel" } ], "title": "Response Edit Slide Api V1 Ppt Slide Edit Post" } @@ -3817,9 +3182,7 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -3828,9 +3191,7 @@ }, "/api/v1/ppt/slide/edit-html": { "post": { - "tags": [ - "Slide" - ], + "tags": ["Slide"], "summary": "Edit Slide Html", "operationId": "edit_slide_html_api_v1_ppt_slide_edit_html_post", "requestBody": { @@ -3848,9 +3209,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SlideModel" - } + "schema": { "$ref": "#/components/schemas/SlideModel" } } } }, @@ -3858,35 +3217,28 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, "/api/v1/ppt/themes/default": { "get": { - "tags": [ - "Themes" - ], - "summary": "Get Default Themes", + "tags": ["Themes"], + "summary": "List default themes", + "description": "Returns all built-in presentation themes available to every user. Use the returned string id as the `theme` value when generating a standard presentation.", "operationId": "get_default_themes_api_v1_ppt_themes_default_get", "responses": { "200": { - "description": "Successful Response", + "description": "Built-in themes returned successfully.", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/DefaultPresentationThemeModel" + "$ref": "#/components/schemas/DefaultPresentationThemeResponse" }, "type": "array", "title": "Response Get Default Themes Api V1 Ppt Themes Default Get" @@ -3899,92 +3251,109 @@ }, "/api/v1/ppt/themes/all": { "get": { - "tags": [ - "Themes" - ], - "summary": "Get Themes", + "tags": ["Themes"], + "summary": "List user themes", + "description": "Returns the authenticated user's custom presentation themes ordered by newest first. Built-in default themes are not included in this list.", "operationId": "get_themes_api_v1_ppt_themes_all_get", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } + ], "responses": { "200": { - "description": "Successful Response", + "description": "Custom themes returned successfully.", "content": { "application/json": { "schema": { + "type": "array", "items": { - "$ref": "#/components/schemas/PresentationThemeModel" + "$ref": "#/components/schemas/PresentationThemeResponse" }, - "type": "array", "title": "Response Get Themes Api V1 Ppt Themes All Get" } } } + }, + "401": { "description": "Authentication is required." }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, "/api/v1/ppt/themes/create": { "post": { - "tags": [ - "Themes" - ], - "summary": "Create Theme", + "tags": ["Themes"], + "summary": "Create a user theme", + "description": "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.", "operationId": "create_theme_api_v1_ppt_themes_create_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } + ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Body_create_theme_api_v1_ppt_themes_create_post" } } - }, - "required": true + } }, "responses": { "200": { - "description": "Successful Response", + "description": "Theme created successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PresentationThemeModel" + "$ref": "#/components/schemas/PresentationThemeResponse" } } } }, + "401": { "description": "Authentication is required." }, + "404": { "description": "The provided logo asset was not found." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, "/api/v1/ppt/themes/update/{theme_id}": { "patch": { - "tags": [ - "Themes" - ], - "summary": "Update Theme", + "tags": ["Themes"], + "summary": "Update a user theme", + "description": "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.", "operationId": "update_theme_api_v1_ppt_themes_update__theme_id__patch", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], "parameters": [ { "name": "theme_id", @@ -3995,6 +3364,17 @@ "format": "uuid", "title": "Theme Id" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], "requestBody": { @@ -4008,22 +3388,23 @@ }, "responses": { "200": { - "description": "Successful Response", + "description": "Theme updated successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PresentationThemeModel" + "$ref": "#/components/schemas/PresentationThemeResponse" } } } }, + "401": { "description": "Authentication is required." }, + "403": { "description": "The theme belongs to another user." }, + "404": { "description": "Theme or logo asset not found." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } @@ -4032,16 +3413,10 @@ }, "/api/v1/ppt/themes/delete/{theme_id}": { "delete": { - "tags": [ - "Themes" - ], - "summary": "Delete Theme", + "tags": ["Themes"], + "summary": "Delete a user theme", + "description": "Deletes a custom theme owned by the authenticated user. Default built-in themes cannot be deleted through this endpoint.", "operationId": "delete_theme_api_v1_ppt_themes_delete__theme_id__delete", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], "parameters": [ { "name": "theme_id", @@ -4052,136 +3427,94 @@ "format": "uuid", "title": "Theme Id" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Theme deleted successfully." }, + "401": { "description": "Authentication is required." }, + "403": { "description": "The theme belongs to another user." }, + "404": { "description": "Theme not found." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/slide-to-html/": { - "post": { - "tags": [ - "slide-to-html" - ], - "summary": "Convert Slide To Html", - "description": "Convert a slide image and its OXML data to HTML using Anthropic Claude API.\n\nArgs:\n request: JSON request containing image path and XML content\n\nReturns:\n SlideToHtmlResponse with generated HTML", - "operationId": "convert_slide_to_html_api_v1_ppt_slide_to_html__post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SlideToHtmlRequest" - } - } + "/api/v1/ppt/images/generate": { + "get": { + "tags": ["Images"], + "summary": "Generate Image", + "operationId": "generate_image_api_v1_ppt_images_generate_get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "prompt", + "in": "query", + "required": true, + "schema": { "type": "string", "title": "Prompt" } }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SlideToHtmlResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ { - "OAuth2PasswordBearer": [] + "name": "image_type", + "in": "query", + "required": false, + "schema": { + "enum": ["stock", "ai-generated"], + "type": "string", + "default": "stock", + "title": "Image Type" + } } - ] - } - }, - "/api/v1/ppt/html-to-react/": { - "post": { - "tags": [ - "html-to-react" ], - "summary": "Convert Html To React", - "description": "Convert HTML content to TSX React component using Anthropic Claude API.\n\nArgs:\n request: JSON request containing HTML content\n\nReturns:\n HtmlToReactResponse with generated React component", - "operationId": "convert_html_to_react_api_v1_ppt_html_to_react__post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HtmlToReactRequest" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HtmlToReactResponse" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/ppt/html-edit/stream/{session_id}": { + "/api/v1/ppt/images/generated": { "get": { - "tags": [ - "html-edit" - ], - "summary": "Stream Html Edit", - "operationId": "stream_html_edit_api_v1_ppt_html_edit_stream__session_id__get", + "tags": ["Images"], + "summary": "Get Generated Images", + "operationId": "get_generated_images_api_v1_ppt_images_generated_get", + "security": [{ "OAuth2PasswordBearer": [] }], "parameters": [ { - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Session Id" - } + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } } ], "responses": { @@ -4189,7 +3522,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -4197,27 +3530,23 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/html-edit/init": { + "/api/v1/ppt/images/upload/ui": { "post": { - "tags": [ - "html-edit" - ], - "summary": "Init Html Edit", - "operationId": "init_html_edit_api_v1_ppt_html_edit_init_post", + "tags": ["Images"], + "summary": "Upload Image For Ui", + "operationId": "upload_image_for_ui_api_v1_ppt_images_upload_ui_post", "requestBody": { "content": { "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/Body_init_html_edit_api_v1_ppt_html_edit_init_post" + "$ref": "#/components/schemas/Body_upload_image_for_ui_api_v1_ppt_images_upload_ui_post" } } }, @@ -4226,58 +3555,55 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HtmlEditInitResponse" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/ppt/html-edit/": { + "/api/v1/ppt/images/upload": { "post": { - "tags": [ - "html-edit" + "tags": ["Images"], + "summary": "Upload Image V1", + "description": "Upload an image.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "upload_image_v1_api_v1_ppt_images_upload_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Edit Html With Images Endpoint", - "description": "Edit HTML content based on one or two uploaded images and a text prompt using Anthropic Claude API.\n\nArgs:\n current_ui_image: Uploaded current UI image file\n sketch_image: Uploaded sketch/indication image file (optional)\n html: Current HTML content to edit (form data)\n prompt: Text prompt describing the changes (form data)\n\nReturns:\n HtmlEditResponse with edited HTML", - "operationId": "edit_html_with_images_endpoint_api_v1_ppt_html_edit__post", "requestBody": { + "required": true, "content": { "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/Body_edit_html_with_images_endpoint_api_v1_ppt_html_edit__post" + "$ref": "#/components/schemas/Body_upload_image_v1_api_v1_ppt_images_upload_post" } } - }, - "required": true + } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HtmlEditResponse" - } + "schema": { "$ref": "#/components/schemas/ImageAsset" } } } }, @@ -4285,85 +3611,156 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] + } + } + }, + "/api/v1/ppt/images/uploaded/ui": { + "get": { + "tags": ["Images"], + "summary": "Get Uploaded Images For Ui", + "operationId": "get_uploaded_images_for_ui_api_v1_ppt_images_uploaded_ui_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } } - ] + }, + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/ppt/html-create/stream/{session_id}": { + "/api/v1/ppt/images/uploaded": { "get": { - "tags": [ - "html-create" - ], - "summary": "Stream Html Create", - "operationId": "stream_html_create_api_v1_ppt_html_create_stream__session_id__get", + "tags": ["Images"], + "summary": "Get Uploaded Images V1", + "description": "Get all uploaded images.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_uploaded_images_v1_api_v1_ppt_images_uploaded_get", "parameters": [ { - "name": "session_id", - "in": "path", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Session Id" - } + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], "responses": { "200": { "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } - }, + } + } + } + }, + "/api/v1/ppt/images/{id}/ui": { + "delete": { + "tags": ["Images"], + "summary": "Delete Uploaded Image By Id For Ui", + "operationId": "delete_uploaded_image_by_id_for_ui_api_v1_ppt_images__id__ui_delete", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Id" } + } + ], + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/html-create/init": { - "post": { - "tags": [ - "html-create" + "/api/v1/ppt/images/{id}": { + "delete": { + "tags": ["Images"], + "summary": "Delete Uploaded Image By Id V1", + "description": "Delete an uploaded image by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "delete_uploaded_image_by_id_v1_api_v1_ppt_images__id__delete", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Id" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Init Html Create", - "operationId": "init_html_create_api_v1_ppt_html_create_init_post", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_init_html_create_api_v1_ppt_html_create_init_post" + "responses": { + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } + } + } + } + }, + "/api/v1/ppt/icons/search": { + "get": { + "tags": ["Icons"], + "summary": "Search Icons", + "operationId": "search_icons_api_v1_ppt_icons_search_get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "query", + "in": "query", + "required": true, + "schema": { "type": "string", "title": "Query" } }, - "required": true - }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 20, "title": "Limit" } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HtmlEditInitResponse" + "type": "array", + "items": { "type": "string" }, + "title": "Response Search Icons Api V1 Ppt Icons Search Get" } } } @@ -4372,32 +3769,23 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/ppt/react-edit/": { + "/api/v1/on/presentation/export": { "post": { - "tags": [ - "react-edit" - ], - "summary": "Edit React With Image Endpoint", - "operationId": "edit_react_with_image_endpoint_api_v1_ppt_react_edit__post", + "tags": ["V1 On"], + "summary": "Presentation Export", + "operationId": "presentation_export_api_v1_on_presentation_export_post", "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_edit_react_with_image_endpoint_api_v1_ppt_react_edit__post" + "$ref": "#/components/schemas/Body_presentation_export_api_v1_on_presentation_export_post" } } }, @@ -4406,222 +3794,204 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HtmlEditResponse" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/ppt/template-management/save-templates": { - "post": { - "tags": [ - "template-management" - ], - "summary": "Save Layouts", - "description": "Save multiple layouts for presentations.\n\nArgs:\n request: JSON request containing array of layout data\n session: Database session\n\nReturns:\n SaveLayoutsResponse with success status and count of saved layouts\n\nRaises:\n HTTPException: 400 for validation errors, 500 for server errors", - "operationId": "save_layouts_api_v1_ppt_template_management_save_templates_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SaveLayoutsRequest" - } - } - }, - "required": true - }, + "/api/v1/billing/prices": { + "get": { + "tags": ["Billing"], + "summary": "List Prices", + "operationId": "list_prices_api_v1_billing_prices_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SaveLayoutsResponse" + "items": { "$ref": "#/components/schemas/PriceItem" }, + "type": "array", + "title": "Response List Prices Api V1 Billing Prices Get" } } } - }, - "400": { - "description": "Validation error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + } + } + } + }, + "/api/v1/billing/checkout/session": { + "post": { + "tags": ["Billing"], + "summary": "Create Checkout Session", + "operationId": "create_checkout_session_api_v1_billing_checkout_session_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateCheckoutSessionRequest" } } }, - "422": { - "description": "Validation Error", + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "$ref": "#/components/schemas/CreateCheckoutSessionResponse" } } } }, - "500": { - "description": "Internal server error", + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/ppt/template-management/get-templates/{presentation}": { - "get": { - "tags": [ - "template-management" - ], - "summary": "Get Layouts", - "description": "Retrieve all layouts for a specific presentation.\n\nArgs:\n presentation: UUID of the presentation\n session: Database session\n\nReturns:\n GetLayoutsResponse with layouts data\n\nRaises:\n HTTPException: 404 if no layouts found, 400 for invalid UUID, 500 for server errors", - "operationId": "get_layouts_api_v1_ppt_template_management_get_templates__presentation__get", - "parameters": [ - { - "name": "presentation", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Presentation" + "/api/v1/billing/portal/session": { + "post": { + "tags": ["Billing"], + "summary": "Create Portal Session", + "operationId": "create_portal_session_api_v1_billing_portal_session_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_create_portal_session_api_v1_billing_portal_session_post" + } } - } - ], + }, + "required": true + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetLayoutsResponse" + "$ref": "#/components/schemas/CreatePortalSessionResponse" } } } }, - "400": { - "description": "Invalid presentation ID", + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } - }, - "404": { - "description": "No layouts found for presentation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + } + }, + "security": [{ "OAuth2PasswordBearer": [] }] + } + }, + "/api/v1/billing/credits/purchase": { + "post": { + "tags": ["Billing"], + "summary": "Purchase Credits", + "operationId": "purchase_credits_api_v1_billing_credits_purchase_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PurchaseCreditsRequest" } } }, - "422": { - "description": "Validation Error", + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "$ref": "#/components/schemas/CreateCheckoutSessionResponse" } } } }, - "500": { - "description": "Internal server error", + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - } + }, + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/ppt/template-management/summary": { + "/api/v1/billing/subscription": { "get": { - "tags": [ - "template-management" + "tags": ["Billing"], + "summary": "Get Subscription Status", + "operationId": "get_subscription_status_api_v1_billing_subscription_get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "refresh", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Refresh" + } + } ], - "summary": "Get all presentations with layout counts", - "description": "Retrieve a summary of all presentations and the number of layouts in each", - "operationId": "get_presentations_summary_api_v1_ppt_template_management_summary_get", "responses": { "200": { - "description": "Presentations summary retrieved successfully", + "description": "Subscription details", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/GetPresentationSummaryResponse" - } + "schema": { "$ref": "#/components/schemas/Subscription" } } } }, - "500": { - "description": "Internal server error", + "204": { "description": "No active subscription found" }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/ppt/template-management/templates": { + "/api/v1/billing/subscription/modify": { "post": { - "tags": [ - "template-management" - ], - "summary": "Create Template", - "operationId": "create_template_api_v1_ppt_template_management_templates_post", + "tags": ["Billing"], + "summary": "Modify Subscription", + "operationId": "modify_subscription_api_v1_billing_subscription_modify_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TemplateCreateRequest" + "$ref": "#/components/schemas/Body_modify_subscription_api_v1_billing_subscription_modify_post" } } }, @@ -4633,17 +4003,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TemplateCreateResponse" - } - } - } - }, - "400": { - "description": "Validation error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ModifySubscriptionResponse" } } } @@ -4652,181 +4012,177 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } - }, - "500": { - "description": "Internal server error", + } + }, + "security": [{ "OAuth2PasswordBearer": [] }] + } + }, + "/api/v1/billing/subscription/reactivate": { + "post": { + "tags": ["Billing"], + "summary": "Reactivate Subscription", + "operationId": "reactivate_subscription_api_v1_billing_subscription_reactivate_post", + "responses": { + "200": { + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ReactivateSubscriptionResponse" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/ppt/template-management/delete-templates/{template_id}": { - "delete": { - "tags": [ - "template-management" - ], - "summary": "Delete Template", - "operationId": "delete_template_api_v1_ppt_template_management_delete_templates__template_id__delete", - "security": [ - { - "OAuth2PasswordBearer": [] + "/api/v1/billing/webhook": { + "post": { + "tags": ["Billing"], + "summary": "Stripe Webhook", + "operationId": "stripe_webhook_api_v1_billing_webhook_post", + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } } - ], + } + } + }, + "/api/v1/webhook/subscribe": { + "post": { + "tags": ["Webhook"], + "summary": "Subscribe To Webhook V1", + "description": "Subscribe to a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "subscribe_to_webhook_v1_api_v1_webhook_subscribe_post", "parameters": [ { - "name": "template_id", - "in": "path", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Template Id" - } + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscribeToWebhookRequestV1" + } + } + } + }, "responses": { - "204": { - "description": "Successful Response" + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscribeToWebhookResponseV1" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/images/generate": { - "get": { - "tags": [ - "Images" - ], - "summary": "Generate Image", - "operationId": "generate_image_api_v1_ppt_images_generate_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "/api/v1/webhook/unsubscribe": { + "delete": { + "tags": ["Webhook"], + "summary": "Unsubscribe To Webhook V1", + "description": "Unsubscribe from a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "unsubscribe_to_webhook_v1_api_v1_webhook_unsubscribe_delete", "parameters": [ { - "name": "prompt", - "in": "query", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "title": "Prompt" - } - }, - { - "name": "image_type", - "in": "query", - "required": false, - "schema": { - "enum": [ - "stock", - "ai-generated" - ], - "type": "string", - "default": "stock", - "title": "Image Type" - } + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_unsubscribe_to_webhook_v1_api_v1_webhook_unsubscribe_delete" } } - }, + } + }, + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/images/generated": { + "/api/v1/mock/presentation-generation-completed": { "get": { - "tags": [ - "Images" - ], - "summary": "Get Generated Images", - "operationId": "get_generated_images_api_v1_ppt_images_generated_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "parameters": [ - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } - } - ], + "tags": ["Mock"], + "summary": "Mock Presentation Generation Completed", + "operationId": "mock_presentation_generation_completed_api_v1_mock_presentation_generation_completed_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginatedResponse" + "items": { + "$ref": "#/components/schemas/PresentationPathAndEditPath" + }, + "type": "array", + "title": "Response Mock Presentation Generation Completed Api V1 Mock Presentation Generation Completed Get" } } } - }, - "422": { - "description": "Validation Error", + } + } + } + }, + "/api/v1/mock/presentation-generation-failed": { + "get": { + "tags": ["Mock"], + "summary": "Mock Presentation Generation Failed", + "operationId": "mock_presentation_generation_failed_api_v1_mock_presentation_generation_failed_get", + "responses": { + "200": { + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "items": { "$ref": "#/components/schemas/APIErrorModel" }, + "type": "array", + "title": "Response Mock Presentation Generation Failed Api V1 Mock Presentation Generation Failed Get" } } } @@ -4834,18 +4190,16 @@ } } }, - "/api/v1/ppt/images/upload/ui": { + "/api/v1/debug/get-jwt-token": { "post": { - "tags": [ - "Images" - ], - "summary": "Upload Image For Ui", - "operationId": "upload_image_for_ui_api_v1_ppt_images_upload_ui_post", + "tags": ["Debug"], + "summary": "Get Jwt Token", + "operationId": "get_jwt_token_api_v1_debug_get_jwt_token_post", "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_upload_image_for_ui_api_v1_ppt_images_upload_ui_post" + "$ref": "#/components/schemas/Body_get_jwt_token_api_v1_debug_get_jwt_token_post" } } }, @@ -4856,7 +4210,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/GetJwtTokenResponse" } } } }, @@ -4864,50 +4218,58 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } + } + } + }, + "/api/v1/debug/raise-exception": { + "post": { + "tags": ["Debug"], + "summary": "Raise Exception", + "operationId": "raise_exception_api_v1_debug_raise_exception_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_raise_exception_api_v1_debug_raise_exception_post" + } + } + }, + "required": true }, - "security": [ - { - "OAuth2PasswordBearer": [] + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } - ] + } } }, - "/api/v1/ppt/images/upload": { + "/api/v1/debug/export-presentation": { "post": { - "tags": [ - "Images" - ], - "summary": "Upload Image V1", - "description": "Upload an image.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "upload_image_v1_api_v1_ppt_images_upload_post", - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer JWT or API Key", - "title": "Authorization" - }, - "description": "Bearer JWT or API Key" - } - ], + "tags": ["Debug"], + "summary": "Export Presentation", + "operationId": "export_presentation_api_v1_debug_export_presentation_post", "requestBody": { - "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_upload_image_v1_api_v1_ppt_images_upload_post" + "$ref": "#/components/schemas/Body_export_presentation_api_v1_debug_export_presentation_post" } } - } + }, + "required": true }, "responses": { "200": { @@ -4915,7 +4277,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageAsset" + "$ref": "#/components/schemas/PresentationPathAndEditPath" } } } @@ -4924,243 +4286,191 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/images/uploaded/ui": { - "get": { - "tags": [ - "Images" - ], - "summary": "Get Uploaded Images For Ui", - "operationId": "get_uploaded_images_for_ui_api_v1_ppt_images_uploaded_ui_get", + "/api/v1/debug/send-welcome-email": { + "post": { + "tags": ["Debug"], + "summary": "Send Welcome Email", + "operationId": "send_welcome_email_api_v1_debug_send_welcome_email_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_send_welcome_email_api_v1_debug_send_welcome_email_post" + } + } + }, + "required": true + }, "responses": { - "200": { - "description": "Successful Response", + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/ppt/images/uploaded": { - "get": { - "tags": [ - "Images" - ], - "summary": "Get Uploaded Images V1", - "description": "Get all uploaded images.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_uploaded_images_v1_api_v1_ppt_images_uploaded_get", - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer JWT or API Key", - "title": "Authorization" - }, - "description": "Bearer JWT or API Key" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} + "/api/v1/debug/send-low-balance-email": { + "post": { + "tags": ["Debug"], + "summary": "Send Low Balance Email", + "operationId": "send_low_balance_email_api_v1_debug_send_low_balance_email_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_send_low_balance_email_api_v1_debug_send_low_balance_email_post" } } }, + "required": true + }, + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/images/{id}/ui": { - "delete": { - "tags": [ - "Images" - ], - "summary": "Delete Uploaded Image By Id For Ui", - "operationId": "delete_uploaded_image_by_id_for_ui_api_v1_ppt_images__id__ui_delete", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Id" + "/api/v1/debug/send-password-reset-email": { + "post": { + "tags": ["Debug"], + "summary": "Send Password Reset Email", + "operationId": "send_password_reset_email_api_v1_debug_send_password_reset_email_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_send_password_reset_email_api_v1_debug_send_password_reset_email_post" + } } - } - ], - "responses": { - "204": { - "description": "Successful Response" }, + "required": true + }, + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/images/{id}": { - "delete": { - "tags": [ - "Images" - ], - "summary": "Delete Uploaded Image By Id V1", - "description": "Delete an uploaded image by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "delete_uploaded_image_by_id_v1_api_v1_ppt_images__id__delete", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Id" + "/api/v1/debug/send-verification-email": { + "post": { + "tags": ["Debug"], + "summary": "Send Verification Email", + "operationId": "send_verification_email_api_v1_debug_send_verification_email_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_send_verification_email_api_v1_debug_send_verification_email_post" + } } }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer JWT or API Key", - "title": "Authorization" - }, - "description": "Bearer JWT or API Key" - } - ], + "required": true + }, "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/icons/search": { - "get": { - "tags": [ - "Icons" - ], - "summary": "Search Icons", - "operationId": "search_icons_api_v1_ppt_icons_search_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "parameters": [ - { - "name": "query", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Query" + "/api/v1/debug/send-payment-failed-email": { + "post": { + "tags": ["Debug"], + "summary": "Send Payment Failed Email", + "operationId": "send_payment_failed_email_api_v1_debug_send_payment_failed_email_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_send_payment_failed_email_api_v1_debug_send_payment_failed_email_post" + } } }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 20, - "title": "Limit" - } - } - ], + "required": true + }, "responses": { - "200": { - "description": "Successful Response", + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Response Search Icons Api V1 Ppt Icons Search Get" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/v1/debug/add-credits": { + "post": { + "tags": ["Debug"], + "summary": "Add Credits", + "operationId": "add_credits_api_v1_debug_add_credits_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_add_credits_api_v1_debug_add_credits_post" } } }, + "required": true + }, + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/pdf-slides/process": { + "/api/v1/debug/check-credit-balance": { "post": { - "tags": [ - "PDF Slides" - ], - "summary": "Process Pdf Slides", - "description": "Process a PDF file to extract slide screenshots.\n\nThis endpoint:\n1. Validates the uploaded PDF file\n2. Uses ImageMagick to convert PDF pages to PNG images\n3. Returns screenshot URLs for each slide/page\n\nNote: Font installation is not needed since PDFs already have fonts embedded.", - "operationId": "process_pdf_slides_api_v1_ppt_pdf_slides_process_post", + "tags": ["Debug"], + "summary": "Check Credit Balance", + "operationId": "check_credit_balance_api_v1_debug_check_credit_balance_post", "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_process_pdf_slides_api_v1_ppt_pdf_slides_process_post" + "$ref": "#/components/schemas/Body_check_credit_balance_api_v1_debug_check_credit_balance_post" } } }, @@ -5172,7 +4482,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PdfSlidesResponse" + "$ref": "#/components/schemas/CheckCreditBalanceResponse" } } } @@ -5181,33 +4491,23 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/ppt/pptx-fonts/process": { + "/api/v1/debug/add-subscription": { "post": { - "tags": [ - "PPTX Fonts" - ], - "summary": "Process Pptx Fonts", - "description": "Analyze a PPTX file and return only the fonts used in the document.\n\nUses the exact same font extraction and analysis utilities as the /pptx-slides endpoint.", - "operationId": "process_pptx_fonts_api_v1_ppt_pptx_fonts_process_post", + "tags": ["Debug"], + "summary": "Add Subscription", + "operationId": "add_subscription_api_v1_debug_add_subscription_post", "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_process_pptx_fonts_api_v1_ppt_pptx_fonts_process_post" + "$ref": "#/components/schemas/Body_add_subscription_api_v1_debug_add_subscription_post" } } }, @@ -5218,9 +4518,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PptxFontsResponse" - } + "schema": { "$ref": "#/components/schemas/Subscription" } } } }, @@ -5228,74 +4526,51 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/ppt/design-system/extract": { + "/api/v1/debug/end-subscription": { "post": { - "tags": [ - "design-system" - ], - "summary": "Extract Design System", - "description": "Accepts an array of slides (image + markdown_content), concatenates markdown,\nsends all images and the markdown to OpenAI Responses API with EXTRACT_DESIGN_SYSTEM_PROMPT,\nand returns the extracted design system JSON.", - "operationId": "extract_design_system_api_v1_ppt_design_system_extract_post", + "tags": ["Debug"], + "summary": "End Subscription", + "operationId": "end_subscription_api_v1_debug_end_subscription_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExtractDesignSystemRequest" + "$ref": "#/components/schemas/Body_end_subscription_api_v1_debug_end_subscription_post" } } }, "required": true }, "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ExtractDesignSystemResponse" - } - } - } - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/ppt/slide-to-react/": { + "/api/v1/debug/add-user": { "post": { - "tags": [ - "slide-to-react" - ], - "summary": "Convert Slide To React", - "operationId": "convert_slide_to_react_api_v1_ppt_slide_to_react__post", + "tags": ["Debug"], + "summary": "Add User", + "operationId": "add_user_api_v1_debug_add_user_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SlideToReactRequest" + "$ref": "#/components/schemas/Body_add_user_api_v1_debug_add_user_post" } } }, @@ -5306,9 +4581,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SlideToReactResponse" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, @@ -5316,113 +4589,130 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/on/presentation/export": { - "post": { - "tags": [ - "V1 On" - ], - "summary": "Presentation Export", - "operationId": "presentation_export_api_v1_on_presentation_export_post", + "/api/v1/debug/delete-user": { + "delete": { + "tags": ["Debug"], + "summary": "Delete User", + "operationId": "delete_user_api_v1_debug_delete_user_delete", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_presentation_export_api_v1_on_presentation_export_post" + "$ref": "#/components/schemas/Body_delete_user_api_v1_debug_delete_user_delete" } } }, "required": true }, "responses": { - "200": { - "description": "Successful Response", + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/v1/debug/test-job": { + "post": { + "tags": ["Debug"], + "summary": "Test Job", + "operationId": "test_job_api_v1_debug_test_job_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_test_job_api_v1_debug_test_job_post" } } }, + "required": true + }, + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/billing/prices": { + "/api/v2/ppt/presentation/all/ui": { "get": { - "tags": [ - "Billing" + "tags": ["V2 Presentation"], + "summary": "Get All User Presentations For Ui", + "operationId": "get_all_user_presentations_for_ui_api_v2_ppt_presentation_all_ui_get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } + } ], - "summary": "List Prices", - "operationId": "list_prices_api_v1_billing_prices_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/PriceItem" - }, - "type": "array", - "title": "Response List Prices Api V1 Billing Prices Get" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/billing/checkout/session": { - "post": { - "tags": [ - "Billing" + "/api/v2/ppt/presentation/{id}/ui": { + "get": { + "tags": ["V2 Presentation"], + "summary": "Get Presentation By Id For Ui", + "operationId": "get_presentation_by_id_for_ui_api_v2_ppt_presentation__id__ui_get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + } ], - "summary": "Create Checkout Session", - "operationId": "create_checkout_session_api_v1_billing_checkout_session_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateCheckoutSessionRequest" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateCheckoutSessionResponse" + "$ref": "#/components/schemas/PresentationWithSlidesV2" } } } @@ -5431,32 +4721,49 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ + } + }, + "delete": { + "tags": ["V2 Presentation"], + "summary": "Delete Presentation By Id For Ui", + "operationId": "delete_presentation_by_id_for_ui_api_v2_ppt_presentation__id__ui_delete", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ { - "OAuth2PasswordBearer": [] + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + } + ], + "responses": { + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } - ] + } } }, - "/api/v1/billing/portal/session": { + "/api/v2/ppt/presentation/generate-html/init": { "post": { - "tags": [ - "Billing" - ], - "summary": "Create Portal Session", - "operationId": "create_portal_session_api_v1_billing_portal_session_post", + "tags": ["V2 Presentation"], + "summary": "Generate Html Presentation V2", + "description": "Create and store presentation; return its id. No SSE or generation here.", + "operationId": "generate_html_presentation_v2_api_v2_ppt_presentation_generate_html_init_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_create_portal_session_api_v1_billing_portal_session_post" + "$ref": "#/components/schemas/GenerateHTMLPresentationRequestV2" } } }, @@ -5468,7 +4775,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreatePortalSessionResponse" + "$ref": "#/components/schemas/GenerateHTMLPresentationResponseV2" } } } @@ -5477,33 +4784,53 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/billing/credits/purchase": { - "post": { - "tags": [ - "Billing" + "/api/v2/ppt/presentation/outlines/stream/{id}": { + "get": { + "tags": ["V2 Presentation"], + "summary": "Stream Outlines V2", + "operationId": "stream_outlines_v2_api_v2_ppt_presentation_outlines_stream__id__get", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + } ], - "summary": "Purchase Credits", - "operationId": "purchase_credits_api_v1_billing_credits_purchase_post", + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/v2/ppt/presentation/outline/edit": { + "post": { + "tags": ["V2 Presentation"], + "summary": "Edit Outline", + "description": "Edit the outline of a presentation.", + "operationId": "edit_outline_api_v2_ppt_presentation_outline_edit_post", "requestBody": { "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PurchaseCreditsRequest" - } + "schema": { "$ref": "#/components/schemas/EditOutlineRequestV2" } } }, "required": true @@ -5511,95 +4838,99 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateCheckoutSessionResponse" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/billing/subscription": { + "/api/v2/ppt/presentation/stream/{id}": { "get": { - "tags": [ - "Billing" - ], - "summary": "Get Subscription Status", - "operationId": "get_subscription_status_api_v1_billing_subscription_get", - "security": [ + "tags": ["V2 Presentation"], + "summary": "Stream Presentation Html", + "operationId": "stream_presentation_html_api_v2_ppt_presentation_stream__id__get", + "parameters": [ { - "OAuth2PasswordBearer": [] + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } } ], - "parameters": [ - { - "name": "refresh", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": false, - "title": "Refresh" + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } } } - ], + } + } + }, + "/api/v2/ppt/presentation/edit-html": { + "post": { + "tags": ["V2 Presentation"], + "summary": "Edit Html", + "description": "Edit HTML using qwen-3-coder-480b model.", + "operationId": "edit_html_api_v2_ppt_presentation_edit_html_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EditSlideHTMLRequestV2" + } + } + }, + "required": true + }, "responses": { "200": { - "description": "Subscription details", + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Subscription" + "$ref": "#/components/schemas/EditSlideHTMLResponseV2" } } } }, - "204": { - "description": "No active subscription found" - }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - } + }, + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/billing/subscription/modify": { + "/api/v2/ppt/presentation/edit-section": { "post": { - "tags": [ - "Billing" - ], - "summary": "Modify Subscription", - "operationId": "modify_subscription_api_v1_billing_subscription_modify_post", + "tags": ["V2 Presentation"], + "summary": "Edit Section", + "description": "Edit a specific section of the slide code using Zai and return full updated HTML.", + "operationId": "edit_section_api_v2_ppt_presentation_edit_section_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_modify_subscription_api_v1_billing_subscription_modify_post" + "$ref": "#/components/schemas/EditSectionHTMLRequestV2" } } }, @@ -5611,7 +4942,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModifySubscriptionResponse" + "$ref": "#/components/schemas/EditSectionHTMLResponseV2" } } } @@ -5620,73 +4951,94 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/billing/subscription/reactivate": { - "post": { - "tags": [ - "Billing" + "/api/v2/ppt/presentation/status/{id}": { + "get": { + "tags": ["V2 Presentation"], + "summary": "Get Presentation Status", + "operationId": "get_presentation_status_api_v2_ppt_presentation_status__id__get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + } ], - "summary": "Reactivate Subscription", - "operationId": "reactivate_subscription_api_v1_billing_subscription_reactivate_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReactivateSubscriptionResponse" + "$ref": "#/components/schemas/GetPresentationStatusResponseV2" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v1/billing/webhook": { - "post": { - "tags": [ - "Billing" - ], - "summary": "Stripe Webhook", - "operationId": "stripe_webhook_api_v1_billing_webhook_post", + "/api/v2/ppt/presentation/update": { + "put": { + "tags": ["V2 Presentation"], + "summary": "Update Presentation", + "operationId": "update_presentation_api_v2_ppt_presentation_update_put", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdatePresentationRequestV2" + } + } + }, + "required": true + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/PresentationWithSlidesV2" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - } + }, + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v1/webhook/subscribe": { + "/api/v2/ppt/presentation/export": { "post": { - "tags": [ - "Webhook" - ], - "summary": "Subscribe To Webhook V1", - "description": "Subscribe to a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "subscribe_to_webhook_v1_api_v1_webhook_subscribe_post", + "tags": ["V2 Presentation"], + "summary": "Export Presentation As Pptx Or Pdf V2", + "description": "Export presentation as PPTX, PDF or PNG using API.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "export_presentation_as_pptx_or_pdf_v2_api_v2_ppt_presentation_export_post", "parameters": [ { "name": "Authorization", @@ -5705,18 +5057,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscribeToWebhookRequestV1" + "$ref": "#/components/schemas/Body_export_presentation_as_pptx_or_pdf_v2_api_v2_ppt_presentation_export_post" } } } }, "responses": { - "201": { + "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscribeToWebhookResponseV1" + "$ref": "#/components/schemas/PresentationPathAndEditPath" } } } @@ -5725,23 +5077,18 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/webhook/unsubscribe": { - "delete": { - "tags": [ - "Webhook" - ], - "summary": "Unsubscribe To Webhook V1", - "description": "Unsubscribe from a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "unsubscribe_to_webhook_v1_api_v1_webhook_unsubscribe_delete", + "/api/v2/ppt/presentation/generate": { + "post": { + "tags": ["V2 Presentation"], + "summary": "Generate Presentation Sync V2", + "operationId": "generate_presentation_sync_v2_api_v2_ppt_presentation_generate_post", "parameters": [ { "name": "Authorization", @@ -5760,94 +5107,108 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_unsubscribe_to_webhook_v1_api_v1_webhook_unsubscribe_delete" + "$ref": "#/components/schemas/GeneratePresentationRequestV2" } } } }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PresentationPathAndEditPath" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/mock/presentation-generation-completed": { - "get": { - "tags": [ - "Mock" + "/api/v2/ppt/presentation/generate/async": { + "post": { + "tags": ["V2 Presentation"], + "summary": "Generate Presentation Async V2", + "operationId": "generate_presentation_async_v2_api_v2_ppt_presentation_generate_async_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Mock Presentation Generation Completed", - "operationId": "mock_presentation_generation_completed_api_v1_mock_presentation_generation_completed_get", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GeneratePresentationRequestV2" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/PresentationPathAndEditPath" - }, - "type": "array", - "title": "Response Mock Presentation Generation Completed Api V1 Mock Presentation Generation Completed Get" - } + "schema": { "$ref": "#/components/schemas/AsyncTaskModel" } } } - } - } - } - }, - "/api/v1/mock/presentation-generation-failed": { - "get": { - "tags": [ - "Mock" - ], - "summary": "Mock Presentation Generation Failed", - "operationId": "mock_presentation_generation_failed_api_v1_mock_presentation_generation_failed_get", - "responses": { - "200": { - "description": "Successful Response", + }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/APIErrorModel" - }, - "type": "array", - "title": "Response Mock Presentation Generation Failed Api V1 Mock Presentation Generation Failed Get" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/get-jwt-token": { + "/api/v2/ppt/presentation/import-from-pptx-file": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Presentation"], + "summary": "Import Presentation From Pptx File", + "operationId": "import_presentation_from_pptx_file_api_v2_ppt_presentation_import_from_pptx_file_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Get Jwt Token", - "operationId": "get_jwt_token_api_v1_debug_get_jwt_token_post", "requestBody": { + "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/Body_get_jwt_token_api_v1_debug_get_jwt_token_post" + "$ref": "#/components/schemas/Body_import_presentation_from_pptx_file_api_v2_ppt_presentation_import_from_pptx_file_post" } } - }, - "required": true + } }, "responses": { "200": { @@ -5855,7 +5216,9 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetJwtTokenResponse" + "type": "string", + "format": "uuid", + "title": "Response Import Presentation From Pptx File Api V2 Ppt Presentation Import From Pptx File Post" } } } @@ -5864,274 +5227,359 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/raise-exception": { - "post": { - "tags": [ - "Debug" - ], - "summary": "Raise Exception", - "operationId": "raise_exception_api_v1_debug_raise_exception_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_raise_exception_api_v1_debug_raise_exception_post" - } + "/api/v2/ppt/images/generate": { + "get": { + "tags": ["Images"], + "summary": "Generate Images", + "operationId": "generate_images_api_v2_ppt_images_generate_get", + "security": [{ "OAuth2PasswordBearer": [] }], + "parameters": [ + { + "name": "prompt", + "in": "query", + "required": true, + "schema": { "type": "string", "title": "Prompt" } + }, + { + "name": "image_type", + "in": "query", + "required": false, + "schema": { + "enum": ["stock", "ai-generated"], + "type": "string", + "default": "stock", + "title": "Image Type" } }, - "required": true - }, + { + "name": "count", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Count" } + } + ], "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/send-welcome-email": { - "post": { - "tags": [ - "Debug" + "/api/v2/ppt/design/all/ui": { + "get": { + "tags": ["V2 Design"], + "summary": "Get All Designs For Ui", + "operationId": "get_all_designs_for_ui_api_v2_ppt_design_all_ui_get", + "parameters": [ + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Send Welcome Email", - "operationId": "send_welcome_email_api_v1_debug_send_welcome_email_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_send_welcome_email_api_v1_debug_send_welcome_email_post" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, - "required": true - }, - "responses": { - "204": { - "description": "Successful Response" - }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/send-low-balance-email": { - "post": { - "tags": [ - "Debug" + "/api/v2/ppt/design/default": { + "get": { + "tags": ["V2 Design"], + "summary": "Get Default Designs For Ui", + "operationId": "get_default_designs_for_ui_api_v2_ppt_design_default_get", + "parameters": [ + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } + } ], - "summary": "Send Low Balance Email", - "operationId": "send_low_balance_email_api_v1_debug_send_low_balance_email_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_send_low_balance_email_api_v1_debug_send_low_balance_email_post" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, - "required": true - }, - "responses": { - "204": { - "description": "Successful Response" - }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/send-password-reset-email": { - "post": { - "tags": [ - "Debug" - ], - "summary": "Send Password Reset Email", - "operationId": "send_password_reset_email_api_v1_debug_send_password_reset_email_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_send_password_reset_email_api_v1_debug_send_password_reset_email_post" - } + "/api/v2/ppt/design/{design_id}/export-info": { + "get": { + "tags": ["V2 Design"], + "summary": "Get Design Export Info", + "operationId": "get_design_export_info_api_v2_ppt_design__design_id__export_info_get", + "parameters": [ + { + "name": "design_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Design Id" } }, - "required": true - }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " + } + ], "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/DesignExportInfo" } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/send-verification-email": { - "post": { - "tags": [ - "Debug" - ], - "summary": "Send Verification Email", - "operationId": "send_verification_email_api_v1_debug_send_verification_email_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_send_verification_email_api_v1_debug_send_verification_email_post" - } + "/api/v2/ppt/design/{design_id}/ui": { + "get": { + "tags": ["V2 Design"], + "summary": "Get Design V2 For Ui", + "operationId": "get_design_v2_for_ui_api_v2_ppt_design__design_id__ui_get", + "parameters": [ + { + "name": "design_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Design Id" } }, - "required": true - }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } + ], "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTMLDesignV2Detail" } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } - } - }, - "/api/v1/debug/send-payment-failed-email": { - "post": { - "tags": [ - "Debug" - ], - "summary": "Send Payment Failed Email", - "operationId": "send_payment_failed_email_api_v1_debug_send_payment_failed_email_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_send_payment_failed_email_api_v1_debug_send_payment_failed_email_post" - } + }, + "delete": { + "tags": ["V2 Design"], + "summary": "Delete Design V2", + "operationId": "delete_design_v2_api_v2_ppt_design__design_id__ui_delete", + "parameters": [ + { + "name": "design_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Design Id" } }, - "required": true - }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " + } + ], "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/add-credits": { + "/api/v2/ppt/design/create/async": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Design"], + "summary": "Create Design V2 Async", + "operationId": "create_design_v2_async_api_v2_ppt_design_create_async_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " + } ], - "summary": "Add Credits", - "operationId": "add_credits_api_v1_debug_add_credits_post", "requestBody": { + "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_add_credits_api_v1_debug_add_credits_post" - } + "schema": { "$ref": "#/components/schemas/CreateDesignRequest" } } - }, - "required": true + } }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AsyncDesignExtractionTaskModel" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/check-credit-balance": { + "/api/v2/ppt/design/create/init": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Design"], + "summary": "Init Create Design", + "operationId": "init_create_design_api_v2_ppt_design_create_init_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Check Credit Balance", - "operationId": "check_credit_balance_api_v1_debug_check_credit_balance_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_check_credit_balance_api_v1_debug_check_credit_balance_post" + "$ref": "#/components/schemas/CreateDesignInitRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -6139,7 +5587,9 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CheckCreditBalanceResponse" + "type": "string", + "format": "uuid", + "title": "Response Init Create Design Api V2 Ppt Design Create Init Post" } } } @@ -6148,31 +5598,50 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/add-subscription": { + "/api/v2/ppt/design/reference/create": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Design"], + "summary": "Create Design Reference", + "operationId": "create_design_reference_api_v2_ppt_design_reference_create_post", + "parameters": [ + { + "name": "is_reconstruct", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Is Reconstruct" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Add Subscription", - "operationId": "add_subscription_api_v1_debug_add_subscription_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_add_subscription_api_v1_debug_add_subscription_post" + "$ref": "#/components/schemas/CreateDesignReferenceRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -6180,7 +5649,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Subscription" + "$ref": "#/components/schemas/CreateDesignReferenceResponse" } } } @@ -6189,65 +5658,100 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/end-subscription": { + "/api/v2/ppt/design/create/reference": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Design"], + "summary": "Create Design Reference", + "operationId": "create_design_reference_api_v2_ppt_design_create_reference_post", + "parameters": [ + { + "name": "is_reconstruct", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Is Reconstruct" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "End Subscription", - "operationId": "end_subscription_api_v1_debug_end_subscription_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_end_subscription_api_v1_debug_end_subscription_post" + "$ref": "#/components/schemas/CreateDesignReferenceRequest" } } - }, - "required": true + } }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateDesignReferenceResponse" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/add-user": { + "/api/v2/ppt/design/reference/edit": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Design"], + "summary": "Edit Design Reference", + "operationId": "edit_design_reference_api_v2_ppt_design_reference_edit_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Add User", - "operationId": "add_user_api_v1_debug_add_user_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_add_user_api_v1_debug_add_user_post" + "$ref": "#/components/schemas/EditDesignReferenceRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -6255,7 +5759,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserRead" + "$ref": "#/components/schemas/EditDesignReferenceResponse" } } } @@ -6264,115 +5768,120 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/delete-user": { - "delete": { - "tags": [ - "Debug" + "/api/v2/ppt/design/reference/edit-section": { + "post": { + "tags": ["V2 Design"], + "summary": "Edit Design Reference Section", + "operationId": "edit_design_reference_section_api_v2_ppt_design_reference_edit_section_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Delete User", - "operationId": "delete_user_api_v1_debug_delete_user_delete", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_delete_user_api_v1_debug_delete_user_delete" + "$ref": "#/components/schemas/EditDesignReferenceSectionRequest" } } - }, - "required": true + } }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EditDesignReferenceSectionResponse" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v1/debug/test-job": { + "/api/v2/ppt/design/save": { "post": { - "tags": [ - "Debug" + "tags": ["V2 Design"], + "summary": "Save Design", + "operationId": "save_design_api_v2_ppt_design_save_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Test Job", - "operationId": "test_job_api_v1_debug_test_job_post", "requestBody": { + "required": true, "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_test_job_api_v1_debug_test_job_post" - } + "schema": { "$ref": "#/components/schemas/SaveDesignRequest" } } - }, - "required": true + } }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SaveDesignResponse" } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/all/ui": { + "/api/v2/ppt/design/status/{id}": { "get": { - "tags": [ - "V2 Presentation" - ], - "summary": "Get All User Presentations For Ui", - "operationId": "get_all_user_presentations_for_ui_api_v2_ppt_presentation_all_ui_get", - "security": [ + "tags": ["V2 Design"], + "summary": "Get Design Extraction Status", + "operationId": "get_design_extraction_status_api_v2_ppt_design_status__id__get", + "parameters": [ { - "OAuth2PasswordBearer": [] - } - ], - "parameters": [ - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Id" } } ], "responses": { @@ -6381,7 +5890,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginatedResponse" + "$ref": "#/components/schemas/AsyncDesignExtractionTaskModel" } } } @@ -6390,47 +5899,35 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/{id}/ui": { - "get": { - "tags": [ - "V2 Presentation" - ], - "summary": "Get Presentation By Id For Ui", - "operationId": "get_presentation_by_id_for_ui_api_v2_ppt_presentation__id__ui_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" + "/api/v2/ppt/fonts/check": { + "post": { + "tags": ["V2 Fonts"], + "summary": "Check Fonts In Pptx Handler", + "description": "Extract fonts from a PPTX file and check their availability in Google Fonts.\n\nReturns:\n FontCheckResponse with available and unavailable fonts", + "operationId": "check_fonts_in_pptx_handler_api_v2_ppt_fonts_check_post", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_check_fonts_in_pptx_handler_api_v2_ppt_fonts_check_post" + } } - } - ], + }, + "required": true + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationWithSlidesV2" - } + "schema": { "$ref": "#/components/schemas/FontCheckResponse" } } } }, @@ -6438,71 +5935,40 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } - }, - "delete": { - "tags": [ - "V2 Presentation" - ], - "summary": "Delete Presentation By Id For Ui", - "operationId": "delete_presentation_by_id_for_ui_api_v2_ppt_presentation__id__ui_delete", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + } + }, + "/api/v2/ppt/fonts/upload-and-preview": { + "post": { + "tags": ["V2 Fonts"], + "summary": "Upload Fonts And Slides Preview", + "operationId": "upload_fonts_and_slides_preview_api_v2_ppt_fonts_upload_and_preview_post", "parameters": [ { - "name": "id", - "in": "path", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Id" - } - } - ], - "responses": { - "204": { - "description": "Successful Response" - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " } - } - } - }, - "/api/v2/ppt/presentation/generate-html/init": { - "post": { - "tags": [ - "V2 Presentation" ], - "summary": "Generate Html Presentation V2", - "description": "Create and store presentation; return its id. No SSE or generation here.", - "operationId": "generate_html_presentation_v2_api_v2_ppt_presentation_generate_html_init_post", "requestBody": { + "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/GenerateHTMLPresentationRequestV2" + "$ref": "#/components/schemas/Body_upload_fonts_and_slides_preview_api_v2_ppt_fonts_upload_and_preview_post" } } - }, - "required": true + } }, "responses": { "200": { @@ -6510,7 +5976,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateHTMLPresentationResponseV2" + "$ref": "#/components/schemas/FontsUploadAndSlidesPreviewResponse" } } } @@ -6519,37 +5985,73 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ + } + } + }, + "/api/v2/ppt/slide/{id}/variations/generate": { + "get": { + "tags": ["V2 Slide"], + "summary": "Stream Slide Variations", + "description": "SSE: Stream HTML variations for a slide by its UUID, matching legacy format, and persist after generation.", + "operationId": "stream_slide_variations_api_v2_ppt_slide__id__variations_generate_get", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "Id" } + }, { - "OAuth2PasswordBearer": [] + "name": "count", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 3, "title": "Count" } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } - ] + } } }, - "/api/v2/ppt/presentation/outlines/stream/{id}": { + "/api/v2/ppt/slide/{id}/variations": { "get": { - "tags": [ - "V2 Presentation" - ], - "summary": "Stream Outlines V2", - "operationId": "stream_outlines_v2_api_v2_ppt_presentation_outlines_stream__id__get", + "tags": ["V2 Slide"], + "summary": "Get Slide Variations", + "description": "Return persisted HTML variations for a slide by its UUID with pagination (simple JSON, no SSE).", + "operationId": "get_slide_variations_api_v2_ppt_slide__id__variations_get", "parameters": [ { "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } + }, + { + "name": "count", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 3, "title": "Count" } + }, + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } } ], "responses": { @@ -6557,7 +6059,9 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/PaginatedVariationsResponse" + } } } }, @@ -6565,29 +6069,23 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/outline/edit": { + "/api/v2/ppt/slide/generate": { "post": { - "tags": [ - "V2 Presentation" - ], - "summary": "Edit Outline", - "description": "Edit the outline of a presentation.", - "operationId": "edit_outline_api_v2_ppt_presentation_outline_edit_post", + "tags": ["V2 Slide"], + "summary": "Generate New Slide", + "description": "Generate a new slide for a presentation using a user prompt. Does not persist to DB.", + "operationId": "generate_new_slide_api_v2_ppt_slide_generate_post", "requestBody": { "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/EditOutlineRequestV2" - } + "schema": { "$ref": "#/components/schemas/GenerateSlideRequest" } } }, "required": true @@ -6597,7 +6095,9 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/GenerateSlideResponse" + } } } }, @@ -6605,45 +6105,43 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v2/ppt/presentation/stream/{id}": { - "get": { - "tags": [ - "V2 Presentation" - ], - "summary": "Stream Presentation Html", - "operationId": "stream_presentation_html_api_v2_ppt_presentation_stream__id__get", + "/api/v2/ppt/slide/{id}/segment-variations/generate": { + "post": { + "tags": ["V2 Slide"], + "summary": "Generate Segment Variations", + "description": "Generate alternative code segments using Zai and return full slide variations. Persist them on the slide.", + "operationId": "generate_segment_variations_api_v2_ppt_slide__id__segment_variations_generate_post", "parameters": [ { "name": "id", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } + "schema": { "type": "string", "format": "uuid", "title": "Id" } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SegmentVariationsRequest" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/VariationsResponse" } } } }, @@ -6651,116 +6149,137 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/stream-large/{id}": { - "get": { - "tags": [ - "V2 Presentation" - ], - "summary": "Stream Presentation Html Large", - "operationId": "stream_presentation_html_large_api_v2_ppt_presentation_stream_large__id__get", + "/api/v2/ppt/fix-slide/init": { + "post": { + "tags": ["V2 Fix Slide"], + "summary": "Init Fix Slide", + "operationId": "init_fix_slide_api_v2_ppt_fix_slide_init_post", "parameters": [ { - "name": "id", - "in": "path", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Id" - } + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " } ], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_init_fix_slide_api_v2_ppt_fix_slide_init_post" + } + } + } + }, "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/edit-html": { - "post": { - "tags": [ - "V2 Presentation" + "/api/v2/ppt/fix-slide/status": { + "get": { + "tags": ["V2 Fix Slide"], + "summary": "Get Fix Status", + "operationId": "get_fix_status_api_v2_ppt_fix_slide_status_get", + "parameters": [ + { + "name": "key", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Slide fix task id", + "title": "Key" + }, + "description": "Slide fix task id" + } ], - "summary": "Edit Html", - "description": "Edit HTML using qwen-3-coder-480b model.", - "operationId": "edit_html_api_v2_ppt_presentation_edit_html_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EditSlideHTMLRequestV2" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/EditSlideHTMLResponseV2" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } + } + } + } + }, + "/api/v2/ppt/fix-slide/fix": { + "get": { + "tags": ["V2 Fix Slide"], + "summary": "Get Fix Html", + "operationId": "get_fix_html_api_v2_ppt_fix_slide_fix_get", + "parameters": [ + { + "name": "key", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Slide fix task id", + "title": "Key" + }, + "description": "Slide fix task id" + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v2/ppt/presentation/edit-section": { + "/api/v2/on/presentation/export": { "post": { - "tags": [ - "V2 Presentation" - ], - "summary": "Edit Section", - "description": "Edit a specific section of the slide code using Zai and return full updated HTML.", - "operationId": "edit_section_api_v2_ppt_presentation_edit_section_post", + "tags": ["V2 On"], + "summary": "Presentation Export", + "operationId": "presentation_export_api_v2_on_presentation_export_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EditSectionHTMLRequestV2" + "$ref": "#/components/schemas/Body_presentation_export_api_v2_on_presentation_export_post" } } }, @@ -6769,73 +6288,36 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EditSectionHTMLResponseV2" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v2/ppt/presentation/status/{id}": { + "/api/v2/onboarding/questions": { "get": { - "tags": [ - "V2 Presentation" - ], - "summary": "Get Presentation Status", - "operationId": "get_presentation_status_api_v2_ppt_presentation_status__id__get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } - } - ], + "tags": ["V2 Onboarding"], + "summary": "Get Onboarding Questions", + "operationId": "get_onboarding_questions_api_v2_onboarding_questions_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPresentationStatusResponseV2" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "items": { + "$ref": "#/components/schemas/OnboardingQuestion" + }, + "type": "array", + "title": "Response Get Onboarding Questions Api V2 Onboarding Questions Get" } } } @@ -6843,18 +6325,18 @@ } } }, - "/api/v2/ppt/presentation/update": { - "put": { - "tags": [ - "V2 Presentation" - ], - "summary": "Update Presentation", - "operationId": "update_presentation_api_v2_ppt_presentation_update_put", + "/api/v2/onboarding/answers/submit": { + "post": { + "tags": ["V2 Onboarding"], + "summary": "Submit Onboarding Answers", + "operationId": "submit_onboarding_answers_api_v2_onboarding_answers_submit_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdatePresentationRequestV2" + "items": { "additionalProperties": true, "type": "object" }, + "type": "array", + "title": "Answers" } } }, @@ -6863,41 +6345,38 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationWithSlidesV2" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + "security": [{ "OAuth2PasswordBearer": [] }] } }, - "/api/v2/ppt/presentation/export": { - "post": { - "tags": [ - "V2 Presentation" - ], - "summary": "Export Presentation As Pptx Or Pdf V2", - "description": "Export presentation as PPTX, PDF or PNG using API.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "export_presentation_as_pptx_or_pdf_v2_api_v2_ppt_presentation_export_post", + "/api/v3/async-task/status/{id}": { + "get": { + "tags": ["V3 Async Task"], + "summary": "Get Async Task Status", + "description": "Check the status of an async task.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_async_task_status_api_v3_async_task_status__id__get", "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "ID of the async task", + "title": "Id" + }, + "description": "ID of the async task" + }, { "name": "Authorization", "in": "header", @@ -6910,24 +6389,12 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_export_presentation_as_pptx_or_pdf_v2_api_v2_ppt_presentation_export_post" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationPathAndEditPath" - } + "schema": { "$ref": "#/components/schemas/AsyncTaskModel" } } } }, @@ -6935,23 +6402,44 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/generate": { - "post": { - "tags": [ - "V2 Presentation" - ], - "summary": "Generate Presentation Sync V2", - "operationId": "generate_presentation_sync_v2_api_v2_ppt_presentation_generate_post", + "/api/v3/chat/conversations": { + "get": { + "tags": ["Chat"], + "summary": "List Chat Conversations", + "operationId": "list_chat_conversations_api_v3_chat_conversations_get", "parameters": [ + { + "name": "presentation_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Presentation id", + "title": "Presentation Id" + }, + "description": "Presentation id" + }, + { + "name": "presentation_type", + "in": "query", + "required": false, + "schema": { + "enum": ["standard", "smart"], + "type": "string", + "description": "Presentation type", + "default": "standard", + "title": "Presentation Type" + }, + "description": "Presentation type" + }, { "name": "Authorization", "in": "header", @@ -6964,23 +6452,17 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GeneratePresentationRequestV2" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PresentationPathAndEditPath" + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatConversationListItem" + }, + "title": "Response List Chat Conversations Api V3 Chat Conversations Get" } } } @@ -6989,23 +6471,56 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/presentation/generate/async": { - "post": { - "tags": [ - "V2 Presentation" - ], - "summary": "Generate Presentation Async V2", - "operationId": "generate_presentation_async_v2_api_v2_ppt_presentation_generate_async_post", + "/api/v3/chat/history": { + "get": { + "tags": ["Chat"], + "summary": "Get Chat History", + "operationId": "get_chat_history_api_v3_chat_history_get", "parameters": [ + { + "name": "presentation_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Presentation id", + "title": "Presentation Id" + }, + "description": "Presentation id" + }, + { + "name": "presentation_type", + "in": "query", + "required": false, + "schema": { + "enum": ["standard", "smart"], + "type": "string", + "description": "Presentation type", + "default": "standard", + "title": "Presentation Type" + }, + "description": "Presentation type" + }, + { + "name": "conversation_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Conversation thread id", + "title": "Conversation Id" + }, + "description": "Conversation thread id" + }, { "name": "Authorization", "in": "header", @@ -7018,24 +6533,12 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GeneratePresentationRequestV2" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncTaskModel" - } + "schema": { "$ref": "#/components/schemas/ChatHistoryResponse" } } } }, @@ -7043,68 +6546,45 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/images/generate": { - "get": { - "tags": [ - "Images" - ], - "summary": "Generate Images", - "operationId": "generate_images_api_v2_ppt_images_generate_get", - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], + "/api/v3/chat/message": { + "post": { + "tags": ["Chat"], + "summary": "Chat Message", + "operationId": "chat_message_api_v3_chat_message_post", "parameters": [ { - "name": "prompt", - "in": "query", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "title": "Prompt" - } - }, - { - "name": "image_type", - "in": "query", - "required": false, - "schema": { - "enum": [ - "stock", - "ai-generated" - ], - "type": "string", - "default": "stock", - "title": "Image Type" - } - }, - { - "name": "count", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Count" - } + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ChatMessageRequest" } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/ChatMessageResponse" } } } }, @@ -7112,43 +6592,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/design/all/ui": { - "get": { - "tags": [ - "V2 Design" - ], - "summary": "Get All Design Systems For Ui", - "operationId": "get_all_design_systems_for_ui_api_v2_ppt_design_all_ui_get", + "/api/v3/chat/message/edit": { + "post": { + "tags": ["Chat"], + "summary": "Edit Chat Message", + "operationId": "edit_chat_message_api_v3_chat_message_edit_post", "parameters": [ - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } - }, { "name": "Authorization", "in": "header", @@ -7161,14 +6617,22 @@ "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChatEditMessageRequest" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } + "schema": { "$ref": "#/components/schemas/ChatMessageResponse" } } } }, @@ -7176,177 +6640,158 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/design/default": { - "get": { - "tags": [ - "V2 Design" - ], - "summary": "Get Default Design Systems For Ui", - "operationId": "get_default_design_systems_for_ui_api_v2_ppt_design_default_get", + "/api/v3/chat/message/stream": { + "post": { + "tags": ["Chat"], + "summary": "Chat Message Stream", + "operationId": "chat_message_stream_api_v3_chat_message_stream_post", "parameters": [ { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } - }, - { - "name": "page_size", - "in": "query", - "required": false, + "name": "Authorization", + "in": "header", + "required": true, "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ChatMessageRequest" } + } + } + }, "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaginatedResponse" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/design/{design_system_id}/export-info": { - "get": { - "tags": [ - "V2 Design" - ], - "summary": "Get Design System Export Info", - "operationId": "get_design_system_export_info_api_v2_ppt_design__design_system_id__export_info_get", + "/api/v3/chat/message/edit/stream": { + "post": { + "tags": ["Chat"], + "summary": "Edit Chat Message Stream", + "operationId": "edit_chat_message_stream_api_v3_chat_message_edit_stream_post", "parameters": [ - { - "name": "design_system_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Design System Id" - } - }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer ", + "description": "Bearer JWT or API Key", "title": "Authorization" }, - "description": "Bearer " + "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChatEditMessageRequest" + } + } + } + }, "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DesignSystemExportInfo" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/design/{design_system_id}/ui": { - "delete": { - "tags": [ - "V2 Design" - ], - "summary": "Delete Design System V2", - "operationId": "delete_design_system_v2_api_v2_ppt_design__design_system_id__ui_delete", + "/api/v3/files/upload": { + "post": { + "tags": ["V3 Files"], + "summary": "Upload Files V1", + "description": "Upload files to be used later.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "upload_files_v1_api_v3_files_upload_post", "parameters": [ - { - "name": "design_system_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Design System Id" - } - }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer ", + "description": "Bearer JWT or API Key", "title": "Authorization" }, - "description": "Bearer " + "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_upload_files_v1_api_v3_files_upload_post" + } + } + } + }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "type": "string" }, + "title": "Response Upload Files V1 Api V3 Files Upload Post" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/design/create/async": { + "/api/v3/images/upload": { "post": { - "tags": [ - "V2 Design" - ], - "summary": "Create Design System V2 Async", - "description": "Kicks off asynchronous design system extraction. Poll status via /design/status/{id}.", - "operationId": "create_design_system_v2_async_api_v2_ppt_design_create_async_post", + "tags": ["V3 Images"], + "summary": "Upload Image V1", + "description": "Upload an image.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "upload_image_v1_api_v3_images_upload_post", "parameters": [ { "name": "Authorization", @@ -7354,18 +6799,18 @@ "required": true, "schema": { "type": "string", - "description": "Bearer ", + "description": "Bearer JWT or API Key", "title": "Authorization" }, - "description": "Bearer " + "description": "Bearer JWT or API Key" } ], "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/CreateDesignSystemRequest" + "$ref": "#/components/schemas/Body_upload_image_v1_api_v3_images_upload_post" } } } @@ -7375,9 +6820,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncDesignExtractionTaskModel" - } + "schema": { "$ref": "#/components/schemas/ImageAsset" } } } }, @@ -7385,105 +6828,92 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/design/status/{id}": { + "/api/v3/images/uploaded": { "get": { - "tags": [ - "V2 Design" - ], - "summary": "Get Design Extraction Status", - "operationId": "get_design_extraction_status_api_v2_ppt_design_status__id__get", + "tags": ["V3 Images"], + "summary": "Get Uploaded Images V1", + "description": "Get all uploaded images.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_uploaded_images_v1_api_v3_images_uploaded_get", "parameters": [ { - "name": "id", - "in": "path", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "title": "Id" - } + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncDesignExtractionTaskModel" - } - } - } + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/fonts/check": { - "post": { - "tags": [ - "V2 Fonts" - ], - "summary": "Check Fonts In Pptx", - "operationId": "check_fonts_in_pptx_api_v2_ppt_fonts_check_post", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_check_fonts_in_pptx_api_v2_ppt_fonts_check_post" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FontCheckResponse" - } - } - } + "/api/v3/images/{id}": { + "delete": { + "tags": ["V3 Images"], + "summary": "Delete Uploaded Image By Id V1", + "description": "Delete an uploaded image by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "delete_uploaded_image_by_id_v1_api_v3_images__id__delete", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Id" } }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } + ], + "responses": { + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/fonts/upload-and-preview": { + "/api/v3/theme/generate": { "post": { - "tags": [ - "V2 Fonts" - ], - "summary": "Upload Fonts And Slides Preview", - "operationId": "upload_fonts_and_slides_preview_api_v2_ppt_fonts_upload_and_preview_post", + "tags": ["V3 Theme"], + "summary": "Generate theme colors", + "description": "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.", + "operationId": "generate_theme_v3_api_v3_theme_generate_post", "parameters": [ { "name": "Authorization", @@ -7491,91 +6921,60 @@ "required": true, "schema": { "type": "string", - "description": "Bearer ", + "description": "Bearer JWT or API Key", "title": "Authorization" }, - "description": "Bearer " + "description": "Bearer JWT or API Key" } ], "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_upload_fonts_and_slides_preview_api_v2_ppt_fonts_upload_and_preview_post" + "$ref": "#/components/schemas/GenerateThemeRequestV3" } } } }, "responses": { "200": { - "description": "Successful Response", + "description": "Theme color palette generated successfully.", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/FontsUploadAndSlidesPreviewResponse" - } + "schema": { "$ref": "#/components/schemas/ThemeData" } } } }, + "401": { "description": "Authentication is required." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/slide/{id}/variations/generate": { + "/api/v3/theme/default": { "get": { - "tags": [ - "V2 Slide" - ], - "summary": "Stream Slide Variations", - "description": "SSE: Stream HTML variations for a slide by its UUID, matching legacy format, and persist after generation.", - "operationId": "stream_slide_variations_api_v2_ppt_slide__id__variations_generate_get", - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Id" - } - }, - { - "name": "count", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 3, - "title": "Count" - } - } - ], + "tags": ["V3 Theme"], + "summary": "List default themes", + "description": "Returns all built-in presentation themes available to every user. Use the returned string id as the `theme` value when generating a standard presentation.", + "operationId": "get_default_themes_api_v3_theme_default_get", "responses": { "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", + "description": "Built-in themes returned successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "items": { + "$ref": "#/components/schemas/DefaultPresentationThemeResponse" + }, + "type": "array", + "title": "Response Get Default Themes Api V3 Theme Default Get" } } } @@ -7583,237 +6982,242 @@ } } }, - "/api/v2/ppt/slide/{id}/variations": { + "/api/v3/theme/all": { "get": { - "tags": [ - "V2 Slide" - ], - "summary": "Get Slide Variations", - "description": "Return persisted HTML variations for a slide by its UUID with pagination (simple JSON, no SSE).", - "operationId": "get_slide_variations_api_v2_ppt_slide__id__variations_get", + "tags": ["V3 Theme"], + "summary": "List user themes", + "description": "Returns the authenticated user's custom presentation themes ordered by newest first. Built-in default themes are not included in this list.", + "operationId": "get_themes_api_v3_theme_all_get", "parameters": [ { - "name": "id", - "in": "path", + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Id" - } - }, - { - "name": "count", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 3, - "title": "Count" - } - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], "responses": { "200": { - "description": "Successful Response", + "description": "Custom themes returned successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginatedVariationsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/PresentationThemeResponse" + }, + "title": "Response Get Themes Api V3 Theme All Get" } } } }, + "401": { "description": "Authentication is required." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/slide/generate": { + "/api/v3/theme/create": { "post": { - "tags": [ - "V2 Slide" + "tags": ["V3 Theme"], + "summary": "Create a user theme", + "description": "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.", + "operationId": "create_theme_api_v3_theme_create_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Generate New Slide", - "description": "Generate a new slide for a presentation using a user prompt. Does not persist to DB.", - "operationId": "generate_new_slide_api_v2_ppt_slide_generate_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateSlideRequest" + "$ref": "#/components/schemas/Body_create_theme_api_v3_theme_create_post" } } - }, - "required": true + } }, "responses": { "200": { - "description": "Successful Response", + "description": "Theme created successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateSlideResponse" + "$ref": "#/components/schemas/PresentationThemeResponse" } } } }, + "401": { "description": "Authentication is required." }, + "404": { "description": "The provided logo asset was not found." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/slide/{id}/segment-variations/generate": { - "post": { - "tags": [ - "V2 Slide" - ], - "summary": "Generate Segment Variations", - "description": "Generate alternative code segments using Zai and return full slide variations. Persist them on the slide.", - "operationId": "generate_segment_variations_api_v2_ppt_slide__id__segment_variations_generate_post", + "/api/v3/theme/update/{theme_id}": { + "patch": { + "tags": ["V3 Theme"], + "summary": "Update a user theme", + "description": "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.", + "operationId": "update_theme_api_v3_theme_update__theme_id__patch", "parameters": [ { - "name": "id", + "name": "theme_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", - "title": "Id" + "title": "Theme Id" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SegmentVariationsRequest" + "$ref": "#/components/schemas/Body_update_theme_api_v3_theme_update__theme_id__patch" } } } }, "responses": { "200": { - "description": "Successful Response", + "description": "Theme updated successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VariationsResponse" + "$ref": "#/components/schemas/PresentationThemeResponse" } } } }, + "401": { "description": "Authentication is required." }, + "403": { "description": "The theme belongs to another user." }, + "404": { "description": "Theme or logo asset not found." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/fix-slide/init": { - "post": { - "tags": [ - "V2 Fix Slide" - ], - "summary": "Init Fix Slide", - "operationId": "init_fix_slide_api_v2_ppt_fix_slide_init_post", + "/api/v3/theme/delete/{theme_id}": { + "delete": { + "tags": ["V3 Theme"], + "summary": "Delete a user theme", + "description": "Deletes a custom theme owned by the authenticated user. Default built-in themes cannot be deleted through this endpoint.", + "operationId": "delete_theme_api_v3_theme_delete__theme_id__delete", "parameters": [ + { + "name": "theme_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Theme Id" + } + }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer ", + "description": "Bearer JWT or API Key", "title": "Authorization" }, - "description": "Bearer " + "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_init_fix_slide_api_v2_ppt_fix_slide_init_post" - } - } - } - }, "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, + "204": { "description": "Theme deleted successfully." }, + "401": { "description": "Authentication is required." }, + "403": { "description": "The theme belongs to another user." }, + "404": { "description": "Theme not found." }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/fix-slide/status": { + "/api/v3/presentation/all": { "get": { - "tags": [ - "V2 Fix Slide" - ], - "summary": "Get Fix Status", - "operationId": "get_fix_status_api_v2_ppt_fix_slide_status_get", + "tags": ["V3 Presentation"], + "summary": "Get All User Presentations For Ui", + "description": "Get all presentations of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_all_user_presentations_for_ui_api_v3_presentation_all_get", "parameters": [ { - "name": "key", + "name": "page", "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } + }, + { + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "description": "Slide fix task id", - "title": "Key" + "description": "Bearer JWT or API Key", + "title": "Authorization" }, - "description": "Slide fix task id" + "description": "Bearer JWT or API Key" } ], "responses": { @@ -7821,7 +7225,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -7829,34 +7233,41 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/ppt/fix-slide/fix": { + "/api/v3/presentation/all/ui": { "get": { - "tags": [ - "V2 Fix Slide" - ], - "summary": "Get Fix Html", - "operationId": "get_fix_html_api_v2_ppt_fix_slide_fix_get", + "tags": ["V3 Presentation"], + "summary": "Get All User Presentations For Ui With Slides", + "operationId": "get_all_user_presentations_for_ui_with_slides_api_v3_presentation_all_ui_get", "parameters": [ { - "name": "key", + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } + }, + { + "name": "Authorization", + "in": "header", "required": true, "schema": { "type": "string", - "format": "uuid", - "description": "Slide fix task id", - "title": "Key" + "description": "Bearer JWT or API Key", + "title": "Authorization" }, - "description": "Slide fix task id" + "description": "Bearer JWT or API Key" } ], "responses": { @@ -7864,7 +7275,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -7872,153 +7283,72 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v2/on/presentation/export": { + "/api/v3/presentation/outlines/generate": { "post": { - "tags": [ - "V2 On" + "tags": ["V3 Presentation"], + "summary": "Generate Outlines Sync V1", + "operationId": "generate_outlines_sync_v1_api_v3_presentation_outlines_generate_post", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer JWT or API Key", + "title": "Authorization" + }, + "description": "Bearer JWT or API Key" + } ], - "summary": "Presentation Export", - "operationId": "presentation_export_api_v2_on_presentation_export_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_presentation_export_api_v2_on_presentation_export_post" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "$ref": "#/components/schemas/GenerateOutlinesRequest" } } } }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] - } - }, - "/api/v2/onboarding/questions": { - "get": { - "tags": [ - "V2 Onboarding" - ], - "summary": "Get Onboarding Questions", - "operationId": "get_onboarding_questions_api_v2_onboarding_questions_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/OnboardingQuestion" - }, "type": "array", - "title": "Response Get Onboarding Questions Api V2 Onboarding Questions Get" + "items": { "type": "string" }, + "title": "Response Generate Outlines Sync V1 Api V3 Presentation Outlines Generate Post" } } } - } - } - } - }, - "/api/v2/onboarding/answers/submit": { - "post": { - "tags": [ - "V2 Onboarding" - ], - "summary": "Submit Onboarding Answers", - "operationId": "submit_onboarding_answers_api_v2_onboarding_answers_submit_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "items": { - "additionalProperties": true, - "type": "object" - }, - "type": "array", - "title": "Answers" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ] + } } }, - "/api/v3/async-task/status/{id}": { - "get": { - "tags": [ - "V3 Async Task" - ], - "summary": "Get Async Task Status", - "description": "Check the status of an async task.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_async_task_status_api_v3_async_task_status__id__get", + "/api/v3/presentation/generate": { + "post": { + "tags": ["V3 Presentation"], + "summary": "Generate Presentation Sync V3", + "description": "Generate a presentation synchronously.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "generate_presentation_sync_v3_api_v3_presentation_generate_post", "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "description": "ID of the async task", - "title": "Id" - }, - "description": "ID of the async task" - }, { "name": "Authorization", "in": "header", @@ -8031,13 +7361,23 @@ "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GeneratePresentationRequestV3" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AsyncTaskModel" + "$ref": "#/components/schemas/PresentationPathAndEditPath" } } } @@ -8046,23 +7386,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/files/upload": { + "/api/v3/presentation/generate/async": { "post": { - "tags": [ - "V3 Files" - ], - "summary": "Upload Files V3", - "description": "Upload files to be used later.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "upload_files_v3_api_v3_files_upload_post", + "tags": ["V3 Presentation"], + "summary": "Generate Presentation Async V3", + "description": "Generate a presentation asynchronously.\n\nUse /api/v3/async-task/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "generate_presentation_async_v3_api_v3_presentation_generate_async_post", "parameters": [ { "name": "Authorization", @@ -8079,9 +7415,9 @@ "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_upload_files_v3_api_v3_files_upload_post" + "$ref": "#/components/schemas/GeneratePresentationRequestV3" } } } @@ -8091,13 +7427,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Response Upload Files V3 Api V3 Files Upload Post" - } + "schema": { "$ref": "#/components/schemas/AsyncTaskModel" } } } }, @@ -8105,23 +7435,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/images/upload": { + "/api/v3/presentation/from-json": { "post": { - "tags": [ - "V3 Images" - ], - "summary": "Upload Image V3", - "description": "Upload an image.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "upload_image_v3_api_v3_images_upload_post", + "tags": ["V3 Presentation"], + "summary": "Create Presentation From Json Sync V3", + "description": "Create a presentation from JSON synchronously.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "create_presentation_from_json_sync_v3_api_v3_presentation_from_json_post", "parameters": [ { "name": "Authorization", @@ -8138,9 +7464,9 @@ "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_upload_image_v3_api_v3_images_upload_post" + "$ref": "#/components/schemas/CreatePresentationFromJsonRequestV3" } } } @@ -8151,7 +7477,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageAsset" + "$ref": "#/components/schemas/PresentationPathAndEditPath" } } } @@ -8160,23 +7486,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/images/uploaded": { - "get": { - "tags": [ - "V3 Images" - ], - "summary": "Get Uploaded Images V3", - "description": "Get all uploaded images of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_uploaded_images_v3_api_v3_images_uploaded_get", + "/api/v3/presentation/from-json/async": { + "post": { + "tags": ["V3 Presentation"], + "summary": "Create Presentation From Json Async V3", + "description": "Create a presentation from JSON asynchronously.\n\nUse /api/v3/async-task/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "create_presentation_from_json_async_v3_api_v3_presentation_from_json_async_post", "parameters": [ { "name": "Authorization", @@ -8190,12 +7512,22 @@ "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreatePresentationFromJsonRequestV3" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { "$ref": "#/components/schemas/AsyncTaskModel" } } } }, @@ -8203,33 +7535,20 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/images/{id}": { - "delete": { - "tags": [ - "V3 Images" - ], - "summary": "Delete Uploaded Image By Id V3", - "description": "Delete an uploaded image by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "delete_uploaded_image_by_id_v3_api_v3_images__id__delete", + "/api/v3/presentation/export": { + "post": { + "tags": ["V3 Presentation"], + "summary": "Export Presentation As Pptx Or Pdf V3", + "description": "Export a presentation as PPTX, PDF or PNG.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "export_presentation_as_pptx_or_pdf_v3_api_v3_presentation_export_post", "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Id" - } - }, { "name": "Authorization", "in": "header", @@ -8242,30 +7561,43 @@ "description": "Bearer JWT or API Key" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Body_export_presentation_as_pptx_or_pdf_v3_api_v3_presentation_export_post" + } + } + } + }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PresentationPathAndEditPath" + } + } + } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/theme/generate": { + "/api/v3/playground/presentation/generate": { "post": { - "tags": [ - "V3 Theme" - ], - "summary": "Generate Theme V3", - "operationId": "generate_theme_v3_api_v3_theme_generate_post", + "tags": ["V3 Playground"], + "summary": "Generate Presentation For Playground", + "operationId": "generate_presentation_for_playground_api_v3_playground_presentation_generate_post", "parameters": [ { "name": "Authorization", @@ -8284,7 +7616,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateThemeRequestV3" + "$ref": "#/components/schemas/GeneratePresentationRequestV3" } } } @@ -8295,7 +7627,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ThemeData" + "anyOf": [ + { "$ref": "#/components/schemas/PresentationWithSlidesV1" }, + { "$ref": "#/components/schemas/PresentationWithSlidesV2" } + ], + "title": "Response Generate Presentation For Playground Api V3 Playground Presentation Generate Post" } } } @@ -8304,43 +7640,31 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/all": { + "/api/v3/standard-template/all": { "get": { - "tags": [ - "V3 Presentation" - ], - "summary": "Get All User Presentations For Ui", - "description": "Get all presentations of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_all_user_presentations_for_ui_api_v3_presentation_all_get", - "parameters": [ - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } - }, + "tags": ["V3 Standard Template"], + "summary": "Get All Standard Templates", + "description": "Get all standard templates.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_all_standard_templates_api_v3_standard_template_all_get", + "parameters": [ { - "name": "page_size", + "name": "include_defaults", "in": "query", "required": false, "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "type": "boolean", + "description": "Whether to include default templates", + "default": true, + "title": "Include Defaults" + }, + "description": "Whether to include default templates" }, { "name": "Authorization", @@ -8360,7 +7684,9 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginatedResponse" + "type": "array", + "items": { "$ref": "#/components/schemas/TemplateDetail" }, + "title": "Response Get All Standard Templates Api V3 Standard Template All Get" } } } @@ -8369,42 +7695,25 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/all/ui": { + "/api/v3/standard-template/{id}": { "get": { - "tags": [ - "V3 Presentation" - ], - "summary": "Get All User Presentations For Ui With Slides", - "operationId": "get_all_user_presentations_for_ui_with_slides_api_v3_presentation_all_ui_get", + "tags": ["V3 Standard Template"], + "summary": "Get Standard Template By Id", + "description": "Get a standard template by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_standard_template_by_id_api_v3_standard_template__id__get", "parameters": [ { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 1, - "title": "Page" - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10, - "title": "Page Size" - } + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Id" } }, { "name": "Authorization", @@ -8424,7 +7733,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginatedResponse" + "$ref": "#/components/schemas/PresentationLayoutModel" } } } @@ -8433,24 +7742,26 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/outlines/generate": { - "post": { - "tags": [ - "V3 Presentation" - ], - "summary": "Generate Outlines Sync V3", - "description": "Generate outlines for a presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "generate_outlines_sync_v3_api_v3_presentation_outlines_generate_post", + "/api/v3/standard-template/{id}/example": { + "get": { + "tags": ["V3 Standard Template"], + "summary": "Get Standard Template Example", + "description": "Get a example slides content data for a standard template.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_standard_template_example_api_v3_standard_template__id__example_get", "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Id" } + }, { "name": "Authorization", "in": "header", @@ -8463,28 +7774,12 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateOutlinesRequest" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Response Generate Outlines Sync V3 Api V3 Presentation Outlines Generate Post" - } + "schema": { "$ref": "#/components/schemas/TemplateExampleV3" } } } }, @@ -8492,24 +7787,32 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/generate": { - "post": { - "tags": [ - "V3 Presentation" - ], - "summary": "Generate Presentation Sync V3", - "description": "Generate a presentation synchronously.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "generate_presentation_sync_v3_api_v3_presentation_generate_post", + "/api/v3/smart-design/all": { + "get": { + "tags": ["V3 Smart Design"], + "summary": "Get All Smart Designs", + "description": "Get all smart designs.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_all_smart_designs_api_v3_smart_design_all_get", "parameters": [ + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 1, "title": "Page" } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { "type": "integer", "default": 10, "title": "Page Size" } + }, { "name": "Authorization", "in": "header", @@ -8522,24 +7825,12 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GeneratePresentationRequestV3" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationPathAndEditPath" - } + "schema": { "$ref": "#/components/schemas/PaginatedResponse" } } } }, @@ -8547,24 +7838,30 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/generate/async": { - "post": { - "tags": [ - "V3 Presentation" - ], - "summary": "Generate Presentation Async V3", - "description": "Generate a presentation asynchronously.\n\nUse /api/v3/async-task/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "generate_presentation_async_v3_api_v3_presentation_generate_async_post", + "/api/v3/smart-design/{design_id}": { + "get": { + "tags": ["V3 Smart Design"], + "summary": "Get Smart Design By Id", + "description": "Get a smart design by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_smart_design_by_id_api_v3_smart_design__design_id__get", "parameters": [ + { + "name": "design_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Design Id" + } + }, { "name": "Authorization", "in": "header", @@ -8577,24 +7874,12 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GeneratePresentationRequestV3" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncTaskModel" - } + "schema": { "$ref": "#/components/schemas/HTMLDesignV2Detail" } } } }, @@ -8602,23 +7887,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/from-json": { - "post": { - "tags": [ - "V3 Presentation" - ], - "summary": "Create Presentation From Json Sync V3", - "description": "Create a presentation from JSON synchronously.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "create_presentation_from_json_sync_v3_api_v3_presentation_from_json_post", + "/api/v3/webhook/all": { + "get": { + "tags": ["V3 Webhook"], + "summary": "Get All Webhook Subscriptions V3", + "description": "Get all webhook subscriptions of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "get_all_webhook_subscriptions_v3_api_v3_webhook_all_get", "parameters": [ { "name": "Authorization", @@ -8632,23 +7913,17 @@ "description": "Bearer JWT or API Key" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreatePresentationFromJsonRequestV3" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PresentationPathAndEditPath" + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscribeToWebhookResponseV1" + }, + "title": "Response Get All Webhook Subscriptions V3 Api V3 Webhook All Get" } } } @@ -8657,23 +7932,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/from-json/async": { + "/api/v3/webhook/subscribe": { "post": { - "tags": [ - "V3 Presentation" - ], - "summary": "Create Presentation From Json Async V3", - "description": "Create a presentation from JSON asynchronously.\n\nUse /api/v3/async-task/status/task-xxxxxxxxxx to get the status of presentation.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "create_presentation_from_json_async_v3_api_v3_presentation_from_json_async_post", + "tags": ["V3 Webhook"], + "summary": "Subscribe To Webhook V1", + "description": "Subscribe to a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "subscribe_to_webhook_v1_api_v3_webhook_subscribe_post", "parameters": [ { "name": "Authorization", @@ -8692,7 +7963,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreatePresentationFromJsonRequestV3" + "$ref": "#/components/schemas/SubscribeToWebhookRequestV1" } } } @@ -8703,7 +7974,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AsyncTaskModel" + "$ref": "#/components/schemas/SubscribeToWebhookResponseV1" } } } @@ -8712,23 +7983,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/presentation/export": { - "post": { - "tags": [ - "V3 Presentation" - ], - "summary": "Export Presentation As Pptx Or Pdf V3", - "description": "Export a presentation as PPTX, PDF or PNG.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "export_presentation_as_pptx_or_pdf_v3_api_v3_presentation_export_post", + "/api/v3/webhook/unsubscribe": { + "delete": { + "tags": ["V3 Webhook"], + "summary": "Unsubscribe To Webhook V1", + "description": "Unsubscribe from a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "unsubscribe_to_webhook_v1_api_v3_webhook_unsubscribe_delete", "parameters": [ { "name": "Authorization", @@ -8747,42 +8014,30 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_export_presentation_as_pptx_or_pdf_v3_api_v3_presentation_export_post" + "$ref": "#/components/schemas/Body_unsubscribe_to_webhook_v1_api_v3_webhook_unsubscribe_delete" } } } }, "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PresentationPathAndEditPath" - } - } - } - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/playground/presentation/generate": { - "post": { - "tags": [ - "V3 Playground" - ], - "summary": "Generate Presentation For Playground", - "operationId": "generate_presentation_for_playground_api_v3_playground_presentation_generate_post", + "/api/v3/webhook/unsubscribe/all": { + "delete": { + "tags": ["V3 Webhook"], + "summary": "Unsubscribe All Webhook Subscriptions V3", + "description": "Unsubscribe from all webhook subscriptions of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", + "operationId": "unsubscribe_all_webhook_subscriptions_v3_api_v3_webhook_unsubscribe_all_delete", "parameters": [ { "name": "Authorization", @@ -8796,15 +8051,33 @@ "description": "Bearer JWT or API Key" } ], + "responses": { + "204": { "description": "Successful Response" }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + } + }, + "/api/v3/schema/content/generate": { + "post": { + "tags": ["V3 Schema"], + "summary": "Generate Content For Schema", + "operationId": "generate_content_for_schema_api_v3_schema_content_generate_post", "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GeneratePresentationRequestV3" + "$ref": "#/components/schemas/Body_generate_content_for_schema_api_v3_schema_content_generate_post" } } - } + }, + "required": true }, "responses": { "200": { @@ -8812,15 +8085,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PresentationWithSlidesV1" - }, - { - "$ref": "#/components/schemas/PresentationWithSlidesV2" - } - ], - "title": "Response Generate Presentation For Playground Api V3 Playground Presentation Generate Post" + "$ref": "#/components/schemas/GenerateContentForSchemaResponse" } } } @@ -8829,35 +8094,29 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/standard-template/all": { + "/api/v3/enterprise/credits/info": { "get": { - "tags": [ - "V3 Standard Template" - ], - "summary": "Get All Standard Templates", - "description": "Get all standard templates.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_all_standard_templates_api_v3_standard_template_all_get", + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise Credits Info", + "operationId": "get_enterprise_credits_info_api_v3_enterprise_credits_info_get", "parameters": [ { - "name": "include_defaults", + "name": "enterprise", "in": "query", - "required": false, + "required": true, "schema": { - "type": "boolean", - "description": "Whether to include default templates", - "default": true, - "title": "Include Defaults" + "type": "string", + "description": "Enterprise ID", + "title": "Enterprise" }, - "description": "Whether to include default templates" + "description": "Enterprise ID" }, { "name": "Authorization", @@ -8865,10 +8124,10 @@ "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], "responses": { @@ -8877,11 +8136,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TemplateDetail" - }, - "title": "Response Get All Standard Templates Api V3 Standard Template All Get" + "$ref": "#/components/schemas/EnterpriseCreditsInfoResponse" } } } @@ -8890,32 +8145,56 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/standard-template/{id}": { + "/api/v3/enterprise/credits/adds": { "get": { - "tags": [ - "V3 Standard Template" - ], - "summary": "Get Standard Template By Id", - "description": "Get a standard template by id.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_standard_template_by_id_api_v3_standard_template__id__get", + "tags": ["V3 Enterprise"], + "summary": "List Enterprise Credit Adds", + "operationId": "list_enterprise_credit_adds_api_v3_enterprise_credits_adds_get", "parameters": [ { - "name": "id", - "in": "path", + "name": "page", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "description": "Page number starting from 1", + "default": 1, + "title": "Page" + }, + "description": "Page number starting from 1" + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "description": "Number of transactions per page", + "default": 25, + "title": "Page Size" + }, + "description": "Number of transactions per page" + }, + { + "name": "enterprise", + "in": "query", "required": true, "schema": { "type": "string", - "title": "Id" - } + "description": "Enterprise ID", + "title": "Enterprise" + }, + "description": "Enterprise ID" }, { "name": "Authorization", @@ -8923,10 +8202,10 @@ "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], "responses": { @@ -8935,7 +8214,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PresentationLayoutModel" + "$ref": "#/components/schemas/EnterpriseCreditsAddsResponse" } } } @@ -8944,32 +8223,29 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/standard-template/{id}/example": { + "/api/v3/enterprise/presentations/info": { "get": { - "tags": [ - "V3 Standard Template" - ], - "summary": "Get Standard Template Example", - "description": "Get a example slides content data for a standard template.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_standard_template_example_api_v3_standard_template__id__example_get", + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise Presentations Info", + "operationId": "get_enterprise_presentations_info_api_v3_enterprise_presentations_info_get", "parameters": [ { - "name": "id", - "in": "path", + "name": "enterprise", + "in": "query", "required": true, "schema": { "type": "string", - "title": "Id" - } + "description": "Enterprise ID", + "title": "Enterprise" + }, + "description": "Enterprise ID" }, { "name": "Authorization", @@ -8977,10 +8253,10 @@ "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], "responses": { @@ -8989,7 +8265,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TemplateExampleV3" + "$ref": "#/components/schemas/EnterprisePresentationsInfoResponse" } } } @@ -8998,23 +8274,18 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/smart-design/all": { + "/api/v3/enterprise/presentations": { "get": { - "tags": [ - "V3 Smart Design" - ], - "summary": "Get All Smart Designs", - "description": "Get all smart designs.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_all_smart_designs_api_v3_smart_design_all_get", + "tags": ["V3 Enterprise"], + "summary": "List Enterprise Presentations", + "operationId": "list_enterprise_presentations_api_v3_enterprise_presentations_get", "parameters": [ { "name": "page", @@ -9022,9 +8293,12 @@ "required": false, "schema": { "type": "integer", + "minimum": 1, + "description": "Page number starting from 1", "default": 1, "title": "Page" - } + }, + "description": "Page number starting from 1" }, { "name": "page_size", @@ -9032,9 +8306,35 @@ "required": false, "schema": { "type": "integer", - "default": 10, + "maximum": 100, + "minimum": 1, + "description": "Number of presentations per page", + "default": 25, "title": "Page Size" - } + }, + "description": "Number of presentations per page" + }, + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Search by presentation title or presentation id", + "title": "Search" + }, + "description": "Search by presentation title or presentation id" + }, + { + "name": "enterprise", + "in": "query", + "required": true, + "schema": { + "type": "string", + "description": "Enterprise ID", + "title": "Enterprise" + }, + "description": "Enterprise ID" }, { "name": "Authorization", @@ -9042,10 +8342,10 @@ "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], "responses": { @@ -9054,7 +8354,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginatedResponse" + "$ref": "#/components/schemas/EnterprisePresentationsResponse" } } } @@ -9063,34 +8363,40 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/webhook/all": { + "/api/v3/enterprise/users/info": { "get": { - "tags": [ - "V3 Webhook" - ], - "summary": "Get All Webhook Subscriptions V3", - "description": "Get all webhook subscriptions of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "get_all_webhook_subscriptions_v3_api_v3_webhook_all_get", + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise Users Info", + "operationId": "get_enterprise_users_info_api_v3_enterprise_users_info_get", "parameters": [ + { + "name": "enterprise", + "in": "query", + "required": true, + "schema": { + "type": "string", + "description": "Enterprise ID", + "title": "Enterprise" + }, + "description": "Enterprise ID" + }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], "responses": { @@ -9099,11 +8405,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubscribeToWebhookResponseV1" - }, - "title": "Response Get All Webhook Subscriptions V3 Api V3 Webhook All Get" + "$ref": "#/components/schemas/EnterpriseUsersInfoResponse" } } } @@ -9112,54 +8414,43 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/webhook/subscribe": { - "post": { - "tags": [ - "V3 Webhook" - ], - "summary": "Subscribe To Webhook V3", - "description": "Subscribe to a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "subscribe_to_webhook_v3_api_v3_webhook_subscribe_post", + "/api/v3/enterprise/users/{user_id}": { + "get": { + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise User", + "operationId": "get_enterprise_user_api_v3_enterprise_users__user_id__get", "parameters": [ + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "User Id" } + }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscribeToWebhookRequestV1" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscribeToWebhookResponseV1" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, @@ -9167,160 +8458,204 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/webhook/unsubscribe": { - "delete": { - "tags": [ - "V3 Webhook" - ], - "summary": "Unsubscribe To Webhook V3", - "description": "Unsubscribe from a webhook.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "unsubscribe_to_webhook_v3_api_v3_webhook_unsubscribe_delete", + "/api/v3/enterprise/users/{user_id}/access-tokens": { + "get": { + "tags": ["V3 Enterprise"], + "summary": "List Enterprise User Access Tokens", + "operationId": "list_enterprise_user_access_tokens_api_v3_enterprise_users__user_id__access_tokens_get", "parameters": [ + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "User Id" } + }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Body_unsubscribe_to_webhook_v3_api_v3_webhook_unsubscribe_delete" - } - } - } - }, "responses": { - "204": { - "description": "Successful Response" - }, - "422": { - "description": "Validation Error", + "200": { + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "$ref": "#/components/schemas/EnterpriseUserAccessTokensResponse" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } + } + } + }, + "post": { + "tags": ["V3 Enterprise"], + "summary": "Create Enterprise User Access Token", + "operationId": "create_enterprise_user_access_token_api_v3_enterprise_users__user_id__access_tokens_post", + "parameters": [ + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "User Id" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " + } + ], + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnterpriseUserAccessTokenRead" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } } } }, - "/api/v3/webhook/unsubscribe/all": { + "/api/v3/enterprise/users/{user_id}/access-tokens/{token}": { "delete": { - "tags": [ - "V3 Webhook" - ], - "summary": "Unsubscribe All Webhook Subscriptions V3", - "description": "Unsubscribe from all webhook subscriptions of the user.\n\nCreate an API Key from your account to access this endpoint.\nAuthorization: Bearer sk-presenton-xxxxxxxx", - "operationId": "unsubscribe_all_webhook_subscriptions_v3_api_v3_webhook_unsubscribe_all_delete", + "tags": ["V3 Enterprise"], + "summary": "Delete Enterprise User Access Token", + "operationId": "delete_enterprise_user_access_token_api_v3_enterprise_users__user_id__access_tokens__token__delete", "parameters": [ + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "User Id" } + }, + { + "name": "token", + "in": "path", + "required": true, + "schema": { "type": "string", "title": "Token" } + }, { "name": "Authorization", "in": "header", "required": true, "schema": { "type": "string", - "description": "Bearer JWT or API Key", + "description": "Bearer ", "title": "Authorization" }, - "description": "Bearer JWT or API Key" + "description": "Bearer " } ], "responses": { - "204": { - "description": "Successful Response" - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/schema/content/generate": { + "/api/v3/enterprise/users/{user_id}/reset-password": { "post": { - "tags": [ - "V3 Schema" + "tags": ["V3 Enterprise"], + "summary": "Reset Enterprise User Password", + "operationId": "reset_enterprise_user_password_api_v3_enterprise_users__user_id__reset_password_post", + "parameters": [ + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { "type": "string", "format": "uuid", "title": "User Id" } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "schema": { + "type": "string", + "description": "Bearer ", + "title": "Authorization" + }, + "description": "Bearer " + } ], - "summary": "Generate Content For Schema", - "operationId": "generate_content_for_schema_api_v3_schema_content_generate_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentForSchemaRequest" + "$ref": "#/components/schemas/EnterpriseUserPasswordResetRequest" } } - }, - "required": true + } }, "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentForSchemaResponse" - } - } - } - }, + "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/credits/info": { + "/api/v3/enterprise/users/{user_id}/credits/info": { "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise Credits Info", - "operationId": "get_enterprise_credits_info_api_v3_enterprise_credits_info_get", + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise User Credits Info", + "operationId": "get_enterprise_user_credits_info_api_v3_enterprise_users__user_id__credits_info_get", "parameters": [ { - "name": "enterprise", - "in": "query", + "name": "user_id", + "in": "path", "required": true, - "schema": { - "type": "string", - "description": "Enterprise ID", - "title": "Enterprise" - }, - "description": "Enterprise ID" + "schema": { "type": "string", "format": "uuid", "title": "User Id" } }, { "name": "Authorization", @@ -9340,7 +8675,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnterpriseCreditsInfoResponse" + "$ref": "#/components/schemas/EnterpriseUserCreditsInfoResponse" } } } @@ -9349,60 +8684,24 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/credits/adds": { + "/api/v3/enterprise/users/{user_id}/presentations/info": { "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "List Enterprise Credit Adds", - "operationId": "list_enterprise_credit_adds_api_v3_enterprise_credits_adds_get", + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise User Presentations Info", + "operationId": "get_enterprise_user_presentations_info_api_v3_enterprise_users__user_id__presentations_info_get", "parameters": [ { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 1, - "description": "Page number starting from 1", - "default": 1, - "title": "Page" - }, - "description": "Page number starting from 1" - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "description": "Number of transactions per page", - "default": 25, - "title": "Page Size" - }, - "description": "Number of transactions per page" - }, - { - "name": "enterprise", - "in": "query", + "name": "user_id", + "in": "path", "required": true, - "schema": { - "type": "string", - "description": "Enterprise ID", - "title": "Enterprise" - }, - "description": "Enterprise ID" + "schema": { "type": "string", "format": "uuid", "title": "User Id" } }, { "name": "Authorization", @@ -9422,7 +8721,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnterpriseCreditsAddsResponse" + "$ref": "#/components/schemas/EnterpriseUserPresentationsInfoResponse" } } } @@ -9431,33 +8730,62 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/presentations/info": { + "/api/v3/enterprise/users/{user_id}/presentations": { "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise Presentations Info", - "operationId": "get_enterprise_presentations_info_api_v3_enterprise_presentations_info_get", + "tags": ["V3 Enterprise"], + "summary": "List Enterprise User Presentations", + "operationId": "list_enterprise_user_presentations_api_v3_enterprise_users__user_id__presentations_get", "parameters": [ { - "name": "enterprise", - "in": "query", + "name": "user_id", + "in": "path", "required": true, + "schema": { "type": "string", "format": "uuid", "title": "User Id" } + }, + { + "name": "page", + "in": "query", + "required": false, "schema": { - "type": "string", - "description": "Enterprise ID", - "title": "Enterprise" + "type": "integer", + "minimum": 1, + "description": "Page number starting from 1", + "default": 1, + "title": "Page" }, - "description": "Enterprise ID" + "description": "Page number starting from 1" + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "description": "Number of presentations per page", + "default": 25, + "title": "Page Size" + }, + "description": "Number of presentations per page" + }, + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Search by presentation title or presentation id", + "title": "Search" + }, + "description": "Search by presentation title or presentation id" }, { "name": "Authorization", @@ -9477,7 +8805,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnterprisePresentationsInfoResponse" + "$ref": "#/components/schemas/EnterprisePresentationsResponse" } } } @@ -9486,22 +8814,18 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/presentations": { + "/api/v3/enterprise/users": { "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "List Enterprise Presentations", - "operationId": "list_enterprise_presentations_api_v3_enterprise_presentations_get", + "tags": ["V3 Enterprise"], + "summary": "List Enterprise Users", + "operationId": "list_enterprise_users_api_v3_enterprise_users_get", "parameters": [ { "name": "page", @@ -9524,29 +8848,22 @@ "type": "integer", "maximum": 100, "minimum": 1, - "description": "Number of presentations per page", + "description": "Number of users per page", "default": 25, "title": "Page Size" }, - "description": "Number of presentations per page" + "description": "Number of users per page" }, { "name": "search", "in": "query", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Search by presentation title or presentation id", + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Search by user name, email, or id", "title": "Search" }, - "description": "Search by presentation title or presentation id" + "description": "Search by user name, email, or id" }, { "name": "enterprise", @@ -9577,7 +8894,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnterprisePresentationsResponse" + "$ref": "#/components/schemas/EnterpriseUsersResponse" } } } @@ -9586,33 +8903,24 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/users/info": { + "/api/v3/enterprise/{enterprise_id}": { "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise Users Info", - "operationId": "get_enterprise_users_info_api_v3_enterprise_users_info_get", + "tags": ["V3 Enterprise"], + "summary": "Get Enterprise", + "operationId": "get_enterprise_api_v3_enterprise__enterprise_id__get", "parameters": [ { - "name": "enterprise", - "in": "query", + "name": "enterprise_id", + "in": "path", "required": true, - "schema": { - "type": "string", - "description": "Enterprise ID", - "title": "Enterprise" - }, - "description": "Enterprise ID" + "schema": { "type": "string", "title": "Enterprise Id" } }, { "name": "Authorization", @@ -9631,9 +8939,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUsersInfoResponse" - } + "schema": { "$ref": "#/components/schemas/EnterpriseRead" } } } }, @@ -9641,33 +8947,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/users/{user_id}": { - "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise User", - "operationId": "get_enterprise_user_api_v3_enterprise_users__user_id__get", + "/api/v3/enterprise/users/add": { + "post": { + "tags": ["V3 Enterprise"], + "summary": "Add Enterprise User", + "operationId": "add_enterprise_user_api_v3_enterprise_users_add_post", "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, { "name": "Authorization", "in": "header", @@ -9680,14 +8972,22 @@ "description": "Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnterpriseUserAddRequest" + } + } + } + }, "responses": { - "200": { + "201": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } + "schema": { "$ref": "#/components/schemas/UserRead" } } } }, @@ -9695,33 +8995,19 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/users/{user_id}/access-tokens": { - "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "List Enterprise User Access Tokens", - "operationId": "list_enterprise_user_access_tokens_api_v3_enterprise_users__user_id__access_tokens_get", + "/api/v3/enterprise/credits/add": { + "post": { + "tags": ["V3 Enterprise"], + "summary": "Add Enterprise User Credits", + "operationId": "add_enterprise_user_credits_api_v3_enterprise_credits_add_post", "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, { "name": "Authorization", "in": "header", @@ -9734,65 +9020,23 @@ "description": "Bearer " } ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUserAccessTokensResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnterpriseUserCreditsAddRequest" } } } - } - }, - "post": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Create Enterprise User Access Token", - "operationId": "create_enterprise_user_access_token_api_v3_enterprise_users__user_id__access_tokens_post", - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], + }, "responses": { - "201": { + "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnterpriseUserAccessTokenRead" + "$ref": "#/components/schemas/EnterpriseCreditsAddResponse" } } } @@ -9801,658 +9045,63 @@ "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/users/{user_id}/access-tokens/{token}": { - "delete": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Delete Enterprise User Access Token", - "operationId": "delete_enterprise_user_access_token_api_v3_enterprise_users__user_id__access_tokens__token__delete", + "/api/v3/downloads/add": { + "post": { + "tags": ["Downloads"], + "summary": "Add Download Handler", + "operationId": "add_download_handler_api_v3_downloads_add_post", "parameters": [ { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, - { - "name": "token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Token" - } - }, - { - "name": "Authorization", - "in": "header", + "name": "device", + "in": "query", "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "responses": { - "204": { - "description": "Successful Response" + "schema": { "$ref": "#/components/schemas/Device" } }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/users/{user_id}/reset-password": { - "post": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Reset Enterprise User Password", - "operationId": "reset_enterprise_user_password_api_v3_enterprise_users__user_id__reset_password_post", - "parameters": [ { - "name": "user_id", - "in": "path", + "name": "format", + "in": "query", "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } + "schema": { "$ref": "#/components/schemas/DownloadFormat" } }, { - "name": "Authorization", - "in": "header", + "name": "version", + "in": "query", "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " + "schema": { "type": "string", "title": "Version" } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUserPasswordResetRequest" - } - } - } - }, "responses": { - "204": { - "description": "Successful Response" + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, - "/api/v3/enterprise/users/{user_id}/credits/info": { + "/api/v3/github/metadata": { "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise User Credits Info", - "operationId": "get_enterprise_user_credits_info_api_v3_enterprise_users__user_id__credits_info_get", - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], + "tags": ["V3 GitHub"], + "summary": "Get Github Metadata", + "operationId": "get_github_metadata_api_v3_github_metadata_get", "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUserCreditsInfoResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/users/{user_id}/presentations/info": { - "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise User Presentations Info", - "operationId": "get_enterprise_user_presentations_info_api_v3_enterprise_users__user_id__presentations_info_get", - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUserPresentationsInfoResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/users/{user_id}/presentations": { - "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "List Enterprise User Presentations", - "operationId": "list_enterprise_user_presentations_api_v3_enterprise_users__user_id__presentations_get", - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "User Id" - } - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 1, - "description": "Page number starting from 1", - "default": 1, - "title": "Page" - }, - "description": "Page number starting from 1" - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "description": "Number of presentations per page", - "default": 25, - "title": "Page Size" - }, - "description": "Number of presentations per page" - }, - { - "name": "search", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Search by presentation title or presentation id", - "title": "Search" - }, - "description": "Search by presentation title or presentation id" - }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterprisePresentationsResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/users": { - "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "List Enterprise Users", - "operationId": "list_enterprise_users_api_v3_enterprise_users_get", - "parameters": [ - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 1, - "description": "Page number starting from 1", - "default": 1, - "title": "Page" - }, - "description": "Page number starting from 1" - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "description": "Number of users per page", - "default": 25, - "title": "Page Size" - }, - "description": "Number of users per page" - }, - { - "name": "search", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Search by user name, email, or id", - "title": "Search" - }, - "description": "Search by user name, email, or id" - }, - { - "name": "enterprise", - "in": "query", - "required": true, - "schema": { - "type": "string", - "description": "Enterprise ID", - "title": "Enterprise" - }, - "description": "Enterprise ID" - }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUsersResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/{enterprise_id}": { - "get": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Get Enterprise", - "operationId": "get_enterprise_api_v3_enterprise__enterprise_id__get", - "parameters": [ - { - "name": "enterprise_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Enterprise Id" - } - }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseRead" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/users/add": { - "post": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Add Enterprise User", - "operationId": "add_enterprise_user_api_v3_enterprise_users_add_post", - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUserAddRequest" - } - } - } - }, - "responses": { - "201": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRead" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/enterprise/credits/add": { - "post": { - "tags": [ - "V3 Enterprise" - ], - "summary": "Add Enterprise User Credits", - "operationId": "add_enterprise_user_credits_api_v3_enterprise_credits_add_post", - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string", - "description": "Bearer ", - "title": "Authorization" - }, - "description": "Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseUserCreditsAddRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnterpriseCreditsAddResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/downloads/add": { - "post": { - "tags": [ - "Downloads" - ], - "summary": "Add Download", - "operationId": "add_download_api_v3_downloads_add_post", - "parameters": [ - { - "name": "device", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/Device" - } - }, - { - "name": "format", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/DownloadFormat" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v3/github/metadata": { - "get": { - "tags": [ - "V3 GitHub" - ], - "summary": "Get Github Metadata", - "operationId": "get_github_metadata_api_v3_github_metadata_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } + "content": { "application/json": { "schema": {} } } } } } @@ -10462,33 +9111,17 @@ "schemas": { "APIErrorModel": { "properties": { - "status_code": { - "type": "integer", - "title": "Status Code" - }, - "detail": { - "type": "string", - "title": "Detail" - } + "status_code": { "type": "integer", "title": "Status Code" }, + "detail": { "type": "string", "title": "Detail" } }, "type": "object", - "required": [ - "status_code", - "detail" - ], + "required": ["status_code", "detail"], "title": "APIErrorModel" }, "AccessToken": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, + "token": { "type": "string", "title": "Token" }, + "user": { "type": "string", "format": "uuid", "title": "User" }, "created_at": { "type": "string", "format": "date-time", @@ -10496,10 +9129,7 @@ } }, "type": "object", - "required": [ - "user", - "created_at" - ], + "required": ["user", "created_at"], "title": "AccessToken" }, "AsyncDesignExtractionTaskModel": { @@ -10515,25 +9145,13 @@ "description": "pending | processing | completed | error" }, "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Message" }, "error": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Error" }, @@ -10549,55 +9167,28 @@ }, "data": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Data" } }, "type": "object", - "required": [ - "status", - "created_at", - "updated_at" - ], + "required": ["status", "created_at", "updated_at"], "title": "AsyncDesignExtractionTaskModel" }, "AsyncPresentationGenerationTaskModel": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "status": { - "type": "string", - "title": "Status" - }, + "id": { "type": "string", "title": "Id" }, + "status": { "type": "string", "title": "Status" }, "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Message" }, "error": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Error" }, @@ -10613,58 +9204,35 @@ }, "data": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Data" } }, "type": "object", - "required": [ - "status" - ], + "required": ["status"], "title": "AsyncPresentationGenerationTaskModel" }, "AsyncTaskModel": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, + "id": { "type": "string", "title": "Id" }, "status": { "$ref": "#/components/schemas/AsyncTaskStatus", "default": "pending" }, - "message": { - "type": "string", - "title": "Message" - }, + "message": { "type": "string", "title": "Message" }, "data": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Data" }, "error": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Error" }, @@ -10680,107 +9248,51 @@ } }, "type": "object", - "required": [ - "message", - "created_at", - "updated_at" - ], + "required": ["message", "created_at", "updated_at"], "title": "AsyncTaskModel" }, "AsyncTaskStatus": { "type": "string", - "enum": [ - "pending", - "completed", - "error" - ], + "enum": ["pending", "completed", "error"], "title": "AsyncTaskStatus" }, "BearerResponse": { "properties": { - "access_token": { - "type": "string", - "title": "Access Token" - }, - "token_type": { - "type": "string", - "title": "Token Type" - } + "access_token": { "type": "string", "title": "Access Token" }, + "token_type": { "type": "string", "title": "Token Type" } }, "type": "object", - "required": [ - "access_token", - "token_type" - ], + "required": ["access_token", "token_type"], "title": "BearerResponse" }, "Body_add_credits_api_v1_debug_add_credits_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "credits": { - "type": "integer", - "title": "Credits" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, + "token": { "type": "string", "title": "Token" }, + "credits": { "type": "integer", "title": "Credits" }, + "user": { "type": "string", "format": "uuid", "title": "User" }, "expires_at": { "type": "string", "format": "date-time", "title": "Expires At" }, "transaction_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Transaction Name" }, "transaction_description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Transaction Description" } }, "type": "object", - "required": [ - "token", - "credits", - "user", - "expires_at" - ], + "required": ["token", "credits", "user", "expires_at"], "title": "Body_add_credits_api_v1_debug_add_credits_post" }, "Body_add_subscription_api_v1_debug_add_subscription_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, - "product_name": { - "type": "string", - "title": "Product Name" - }, + "token": { "type": "string", "title": "Token" }, + "user": { "type": "string", "format": "uuid", "title": "User" }, + "product_name": { "type": "string", "title": "Product Name" }, "ending_at": { "type": "string", "format": "date-time", @@ -10788,236 +9300,122 @@ } }, "type": "object", - "required": [ - "token", - "user", - "product_name", - "ending_at" - ], + "required": ["token", "user", "product_name", "ending_at"], "title": "Body_add_subscription_api_v1_debug_add_subscription_post" }, "Body_add_user_api_v1_debug_add_user_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "email": { - "type": "string", - "title": "Email" - }, + "token": { "type": "string", "title": "Token" }, + "email": { "type": "string", "title": "Email" }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" }, - "password": { - "type": "string", - "title": "Password" - } + "password": { "type": "string", "title": "Password" } }, "type": "object", - "required": [ - "token", - "email", - "name", - "password" - ], + "required": ["token", "email", "name", "password"], "title": "Body_add_user_api_v1_debug_add_user_post" }, "Body_auth_jwt_login_api_v1_auth_jwt_login_post": { "properties": { "grant_type": { "anyOf": [ - { - "type": "string", - "pattern": "^password$" - }, - { - "type": "null" - } + { "type": "string", "pattern": "^password$" }, + { "type": "null" } ], "title": "Grant Type" }, - "username": { - "type": "string", - "title": "Username" - }, + "username": { "type": "string", "title": "Username" }, "password": { "type": "string", "format": "password", "title": "Password" }, - "scope": { - "type": "string", - "title": "Scope", - "default": "" - }, + "scope": { "type": "string", "title": "Scope", "default": "" }, "client_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Client Id" }, "client_secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "format": "password", "title": "Client Secret" } }, "type": "object", - "required": [ - "username", - "password" - ], + "required": ["username", "password"], "title": "Body_auth_jwt_login_api_v1_auth_jwt_login_post" }, "Body_check_credit_balance_api_v1_debug_check_credit_balance_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - } + "token": { "type": "string", "title": "Token" }, + "user": { "type": "string", "format": "uuid", "title": "User" } }, "type": "object", - "required": [ - "token", - "user" - ], + "required": ["token", "user"], "title": "Body_check_credit_balance_api_v1_debug_check_credit_balance_post" }, - "Body_check_fonts_in_pptx_api_v1_ppt_fonts_check_post": { + "Body_check_fonts_in_pptx_handler_api_v1_ppt_fonts_check_post": { "properties": { "pptx_file": { "type": "string", - "format": "binary", - "title": "Pptx File", - "description": "PPTX file to analyze fonts from" + "contentMediaType": "application/octet-stream", + "title": "Pptx File" } }, "type": "object", - "required": [ - "pptx_file" - ], - "title": "Body_check_fonts_in_pptx_api_v1_ppt_fonts_check_post" + "required": ["pptx_file"], + "title": "Body_check_fonts_in_pptx_handler_api_v1_ppt_fonts_check_post" }, - "Body_check_fonts_in_pptx_api_v2_ppt_fonts_check_post": { + "Body_check_fonts_in_pptx_handler_api_v2_ppt_fonts_check_post": { "properties": { "pptx_file": { "type": "string", - "format": "binary", - "title": "Pptx File", - "description": "PPTX file to analyze fonts from" + "contentMediaType": "application/octet-stream", + "title": "Pptx File" } }, "type": "object", - "required": [ - "pptx_file" - ], - "title": "Body_check_fonts_in_pptx_api_v2_ppt_fonts_check_post" + "required": ["pptx_file"], + "title": "Body_check_fonts_in_pptx_handler_api_v2_ppt_fonts_check_post" }, "Body_create_portal_session_api_v1_billing_portal_session_post": { "properties": { - "return_url": { - "type": "string", - "title": "Return Url" - } + "return_url": { "type": "string", "title": "Return Url" } }, "type": "object", - "required": [ - "return_url" - ], + "required": ["return_url"], "title": "Body_create_portal_session_api_v1_billing_portal_session_post" }, "Body_create_presentation_api_v1_ppt_presentation_create_post": { "properties": { "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, "file_paths": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "File Paths" }, - "tone": { - "$ref": "#/components/schemas/Tone", - "default": "default" - }, + "tone": { "$ref": "#/components/schemas/Tone", "default": "default" }, "verbosity": { "$ref": "#/components/schemas/Verbosity", "default": "standard" }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions" }, "include_table_of_contents": { @@ -11037,10 +9435,7 @@ }, "image_type": { "type": "string", - "enum": [ - "stock", - "ai-generated" - ], + "enum": ["stock", "ai-generated"], "title": "Image Type", "default": "stock" } @@ -11050,244 +9445,106 @@ }, "Body_create_theme_api_v1_ppt_themes_create_post": { "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "description": { - "type": "string", - "title": "Description" - }, + "name": { "type": "string", "title": "Name" }, + "description": { "type": "string", "title": "Description" }, + "data": { "$ref": "#/components/schemas/PresentionThemeData-Input" }, "company_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Company Name" + }, + "logo": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], + "title": "Logo" + } + }, + "type": "object", + "required": ["name", "description", "data"], + "title": "Body_create_theme_api_v1_ppt_themes_create_post" + }, + "Body_create_theme_api_v3_theme_create_post": { + "properties": { + "name": { "type": "string", "title": "Name" }, + "description": { "type": "string", "title": "Description" }, + "data": { "$ref": "#/components/schemas/PresentionThemeData-Input" }, + "company_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Company Name" }, "logo": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Logo" - }, - "data": { - "additionalProperties": true, - "type": "object", - "title": "Data", - "default": {} } }, "type": "object", - "required": [ - "name", - "description" - ], - "title": "Body_create_theme_api_v1_ppt_themes_create_post" + "required": ["name", "description", "data"], + "title": "Body_create_theme_api_v3_theme_create_post" }, "Body_decompose_files_api_v1_ppt_files_decompose_post": { "properties": { "file_paths": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "File Paths" } }, "type": "object", - "required": [ - "file_paths" - ], + "required": ["file_paths"], "title": "Body_decompose_files_api_v1_ppt_files_decompose_post" }, "Body_delete_user_api_v1_debug_delete_user_delete": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - } + "token": { "type": "string", "title": "Token" }, + "user": { "type": "string", "format": "uuid", "title": "User" } }, "type": "object", - "required": [ - "token", - "user" - ], + "required": ["token", "user"], "title": "Body_delete_user_api_v1_debug_delete_user_delete" }, - "Body_edit_html_with_images_endpoint_api_v1_ppt_html_edit__post": { + "Body_edit_slide_html_api_v1_ppt_slide_edit_html_post": { "properties": { - "current_ui_image": { - "type": "string", - "format": "binary", - "title": "Current Ui Image", - "description": "Current UI image file" - }, - "sketch_image": { - "anyOf": [ - { - "type": "string", - "format": "binary" - }, - { - "type": "null" - } - ], - "title": "Sketch Image", - "description": "Sketch/indication image file (optional)" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "prompt": { "type": "string", "title": "Prompt" }, "html": { - "type": "string", - "title": "Html", - "description": "Current HTML content to edit" - }, - "prompt": { - "type": "string", - "title": "Prompt", - "description": "Text prompt describing the changes" - }, - "template_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Template Id", - "description": "Template identifier (any string) whose design system should guide edits" + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Html" } }, "type": "object", - "required": [ - "current_ui_image", - "html", - "prompt" - ], - "title": "Body_edit_html_with_images_endpoint_api_v1_ppt_html_edit__post" + "required": ["id", "prompt"], + "title": "Body_edit_slide_html_api_v1_ppt_slide_edit_html_post" }, - "Body_edit_react_with_image_endpoint_api_v1_ppt_react_edit__post": { + "Body_end_subscription_api_v1_debug_end_subscription_post": { "properties": { - "current_ui_image": { - "anyOf": [ - { - "type": "string", - "format": "binary" - }, - { - "type": "null" - } - ], - "title": "Current Ui Image", - "description": "Current UI image file (optional)" - }, - "sketch_image": { - "anyOf": [ - { - "type": "string", - "format": "binary" - }, - { - "type": "null" - } - ], - "title": "Sketch Image", - "description": "Sketch/indication image file (optional)" - }, - "react": { - "type": "string", - "title": "React", - "description": "Current React component code to edit" - }, - "prompt": { - "type": "string", - "title": "Prompt", - "description": "Text prompt describing the changes" - }, - "design_system": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Design System", - "description": "Optional design system JSON to guide the edit" - } + "token": { "type": "string", "title": "Token" }, + "user": { "type": "string", "format": "uuid", "title": "User" } }, "type": "object", - "required": [ - "react", - "prompt" - ], - "title": "Body_edit_react_with_image_endpoint_api_v1_ppt_react_edit__post" + "required": ["token", "user"], + "title": "Body_end_subscription_api_v1_debug_end_subscription_post" }, - "Body_edit_slide_html_api_v1_ppt_slide_edit_html_post": { + "Body_export_presentation_api_v1_debug_export_presentation_post": { "properties": { - "id": { + "token": { "type": "string", "title": "Token" }, + "presentation_id": { "type": "string", "format": "uuid", - "title": "Id" - }, - "prompt": { - "type": "string", - "title": "Prompt" - }, - "html": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Html" - } - }, - "type": "object", - "required": [ - "id", - "prompt" - ], - "title": "Body_edit_slide_html_api_v1_ppt_slide_edit_html_post" - }, - "Body_end_subscription_api_v1_debug_end_subscription_post": { - "properties": { - "token": { - "type": "string", - "title": "Token" + "title": "Presentation Id" }, - "user": { + "export_as": { "type": "string", - "format": "uuid", - "title": "User" + "enum": ["pptx", "pdf", "png"], + "title": "Export As" } }, "type": "object", - "required": [ - "token", - "user" - ], - "title": "Body_end_subscription_api_v1_debug_end_subscription_post" + "required": ["token", "presentation_id", "export_as"], + "title": "Body_export_presentation_api_v1_debug_export_presentation_post" }, "Body_export_presentation_as_pptx_or_pdf_v1_api_v1_ppt_presentation_export_post": { "properties": { @@ -11299,20 +9556,14 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "Format to export the presentation as", "default": "pptx" } }, "type": "object", - "required": [ - "id" - ], + "required": ["id"], "title": "Body_export_presentation_as_pptx_or_pdf_v1_api_v1_ppt_presentation_export_post" }, "Body_export_presentation_as_pptx_or_pdf_v2_api_v2_ppt_presentation_export_post": { @@ -11325,20 +9576,14 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "Format to export the presentation as", "default": "pptx" } }, "type": "object", - "required": [ - "id" - ], + "required": ["id"], "title": "Body_export_presentation_as_pptx_or_pdf_v2_api_v2_ppt_presentation_export_post" }, "Body_export_presentation_as_pptx_or_pdf_v3_api_v3_presentation_export_post": { @@ -11351,200 +9596,98 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "Format to export the presentation as" } }, "type": "object", - "required": [ - "id", - "export_as" - ], + "required": ["id", "export_as"], "title": "Body_export_presentation_as_pptx_or_pdf_v3_api_v3_presentation_export_post" }, - "Body_get_jwt_token_api_v1_debug_get_jwt_token_post": { - "properties": { - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, - "token": { - "type": "string", - "title": "Token" - } - }, - "type": "object", - "required": [ - "user", - "token" - ], - "title": "Body_get_jwt_token_api_v1_debug_get_jwt_token_post" - }, - "Body_init_fix_slide_api_v2_ppt_fix_slide_init_post": { + "Body_generate_content_for_schema_api_v3_schema_content_generate_post": { "properties": { - "html": { - "type": "string", - "title": "Html", - "description": "HTML of the slide to potentially fix" + "schema": { + "additionalProperties": true, + "type": "object", + "title": "Schema" }, - "slide_image": { + "mode": { "type": "string", - "format": "binary", - "title": "Slide Image", - "description": "Slide image (png/jpeg)" + "enum": ["min", "normal", "max"], + "title": "Mode" } }, - "type": "object", - "required": [ - "html", - "slide_image" - ], - "title": "Body_init_fix_slide_api_v2_ppt_fix_slide_init_post" - }, - "Body_init_html_create_api_v1_ppt_html_create_init_post": { - "properties": { - "sketch_image": { - "anyOf": [ - { - "type": "string", - "format": "binary" - }, - { - "type": "null" - } - ], - "title": "Sketch Image", - "description": "Primary reference/sketch image (optional)" - }, - "additional_images": { - "anyOf": [ - { - "items": { - "type": "string", - "format": "binary" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Additional Images" - }, - "html": { - "type": "string", - "title": "Html", - "description": "Optional existing HTML content to inform create", - "default": "" - }, - "prompt": { - "type": "string", - "title": "Prompt", - "description": "Text prompt describing the slide to create" - }, - "template_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Template Id", - "description": "Template identifier (any string) whose design system should guide create" - } + "type": "object", + "required": ["schema", "mode"], + "title": "Body_generate_content_for_schema_api_v3_schema_content_generate_post" + }, + "Body_get_jwt_token_api_v1_debug_get_jwt_token_post": { + "properties": { + "user": { "type": "string", "format": "uuid", "title": "User" }, + "token": { "type": "string", "title": "Token" } }, "type": "object", - "required": [ - "prompt" - ], - "title": "Body_init_html_create_api_v1_ppt_html_create_init_post" + "required": ["user", "token"], + "title": "Body_get_jwt_token_api_v1_debug_get_jwt_token_post" }, - "Body_init_html_edit_api_v1_ppt_html_edit_init_post": { + "Body_import_presentation_from_pptx_file_api_v2_ppt_presentation_import_from_pptx_file_post": { "properties": { - "current_ui_image": { + "pptx_file": { "type": "string", - "format": "binary", - "title": "Current Ui Image", - "description": "Current UI image file" - }, - "sketch_image": { - "anyOf": [ - { - "type": "string", - "format": "binary" - }, - { - "type": "null" - } - ], - "title": "Sketch Image", - "description": "Sketch/indication image file (optional)" + "contentMediaType": "application/octet-stream", + "title": "Pptx File", + "description": "PPTX file to import" }, - "additional_images": { + "font_files": { "anyOf": [ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], - "title": "Additional Images" - }, - "html": { - "type": "string", - "title": "Html", - "description": "Current HTML content to edit" - }, - "prompt": { - "type": "string", - "title": "Prompt", - "description": "Text prompt describing the changes" + "title": "Font Files", + "description": "Font files to upload" }, - "template_id": { + "original_font_names": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], - "title": "Template Id", - "description": "Template identifier (any string) whose design system should guide edits" + "title": "Original Font Names", + "description": "Original font names to replace (same order as font_files)" } }, "type": "object", - "required": [ - "current_ui_image", - "html", - "prompt" - ], - "title": "Body_init_html_edit_api_v1_ppt_html_edit_init_post" + "required": ["pptx_file"], + "title": "Body_import_presentation_from_pptx_file_api_v2_ppt_presentation_import_from_pptx_file_post" }, - "Body_modify_subscription_api_v1_billing_subscription_modify_post": { + "Body_init_fix_slide_api_v2_ppt_fix_slide_init_post": { "properties": { - "price_id": { + "html": { + "type": "string", + "title": "Html", + "description": "HTML of the slide to potentially fix" + }, + "slide_image": { "type": "string", - "title": "Price Id" + "contentMediaType": "application/octet-stream", + "title": "Slide Image", + "description": "Slide image (png/jpeg)" } }, "type": "object", - "required": [ - "price_id" - ], + "required": ["html", "slide_image"], + "title": "Body_init_fix_slide_api_v2_ppt_fix_slide_init_post" + }, + "Body_modify_subscription_api_v1_billing_subscription_modify_post": { + "properties": { "price_id": { "type": "string", "title": "Price Id" } }, + "type": "object", + "required": ["price_id"], "title": "Body_modify_subscription_api_v1_billing_subscription_modify_post" }, "Body_patch_me_api_v1_auth_profile_update_patch": { @@ -11553,23 +9696,14 @@ "anyOf": [ { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Profile Picture" }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" } }, @@ -11584,33 +9718,18 @@ "title": "Presentation Id" }, "outlines": { - "items": { - "$ref": "#/components/schemas/SlideOutlineModel" - }, + "items": { "$ref": "#/components/schemas/SlideOutlineModel" }, "type": "array", "title": "Outlines" }, - "layout": { - "$ref": "#/components/schemas/PresentationLayoutModel" - }, + "layout": { "$ref": "#/components/schemas/PresentationLayoutModel" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title" } }, "type": "object", - "required": [ - "presentation_id", - "outlines", - "layout" - ], + "required": ["presentation_id", "outlines", "layout"], "title": "Body_prepare_presentation_api_v1_ppt_presentation_prepare_post" }, "Body_presentation_export_api_v1_on_presentation_export_post": { @@ -11622,24 +9741,13 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As" }, - "url": { - "type": "string", - "title": "Url" - } + "url": { "type": "string", "title": "Url" } }, "type": "object", - "required": [ - "presentation_id", - "export_as", - "url" - ], + "required": ["presentation_id", "export_as", "url"], "title": "Body_presentation_export_api_v1_on_presentation_export_post" }, "Body_presentation_export_api_v2_on_presentation_export_post": { @@ -11651,263 +9759,101 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As" }, - "url": { - "type": "string", - "title": "Url" - } + "url": { "type": "string", "title": "Url" } }, "type": "object", - "required": [ - "presentation_id", - "export_as", - "url" - ], + "required": ["presentation_id", "export_as", "url"], "title": "Body_presentation_export_api_v2_on_presentation_export_post" }, - "Body_process_pdf_slides_api_v1_ppt_pdf_slides_process_post": { - "properties": { - "pdf_file": { - "type": "string", - "format": "binary", - "title": "Pdf File", - "description": "PDF file to process" - } - }, - "type": "object", - "required": [ - "pdf_file" - ], - "title": "Body_process_pdf_slides_api_v1_ppt_pdf_slides_process_post" - }, - "Body_process_pptx_fonts_api_v1_ppt_pptx_fonts_process_post": { - "properties": { - "pptx_file": { - "type": "string", - "format": "binary", - "title": "Pptx File", - "description": "PPTX file to analyze fonts from" - } - }, - "type": "object", - "required": [ - "pptx_file" - ], - "title": "Body_process_pptx_fonts_api_v1_ppt_pptx_fonts_process_post" - }, - "Body_process_pptx_slides_api_v1_ppt_pptx_slides_process_post": { - "properties": { - "pptx_file": { - "type": "string", - "format": "binary", - "title": "Pptx File", - "description": "PPTX file to process" - }, - "fonts": { - "anyOf": [ - { - "items": { - "type": "string", - "format": "binary" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Fonts", - "description": "Optional font files" - } - }, - "type": "object", - "required": [ - "pptx_file" - ], - "title": "Body_process_pptx_slides_api_v1_ppt_pptx_slides_process_post" - }, "Body_raise_exception_api_v1_debug_raise_exception_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "status_code": { - "type": "integer", - "title": "Status Code" - } + "token": { "type": "string", "title": "Token" }, + "status_code": { "type": "integer", "title": "Status Code" } }, "type": "object", - "required": [ - "token", - "status_code" - ], + "required": ["token", "status_code"], "title": "Body_raise_exception_api_v1_debug_raise_exception_post" }, "Body_reset_forgot_password_api_v1_auth_forgot_password_post": { "properties": { - "email": { - "type": "string", - "format": "email", - "title": "Email" - } + "email": { "type": "string", "format": "email", "title": "Email" } }, "type": "object", - "required": [ - "email" - ], + "required": ["email"], "title": "Body_reset_forgot_password_api_v1_auth_forgot_password_post" }, "Body_reset_reset_password_api_v1_auth_reset_password_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "password": { - "type": "string", - "title": "Password" - } + "token": { "type": "string", "title": "Token" }, + "password": { "type": "string", "title": "Password" } }, "type": "object", - "required": [ - "token", - "password" - ], + "required": ["token", "password"], "title": "Body_reset_reset_password_api_v1_auth_reset_password_post" }, "Body_revoke_token_api_v1_auth_token_revoke_post": { - "properties": { - "token": { - "type": "string", - "title": "Token" - } - }, + "properties": { "token": { "type": "string", "title": "Token" } }, "type": "object", - "required": [ - "token" - ], + "required": ["token"], "title": "Body_revoke_token_api_v1_auth_token_revoke_post" }, "Body_send_low_balance_email_api_v1_debug_send_low_balance_email_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "email": { - "type": "string", - "title": "Email" - } + "token": { "type": "string", "title": "Token" }, + "email": { "type": "string", "title": "Email" } }, "type": "object", - "required": [ - "token", - "email" - ], + "required": ["token", "email"], "title": "Body_send_low_balance_email_api_v1_debug_send_low_balance_email_post" }, "Body_send_password_reset_email_api_v1_debug_send_password_reset_email_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "email": { - "type": "string", - "title": "Email" - } + "token": { "type": "string", "title": "Token" }, + "email": { "type": "string", "title": "Email" } }, "type": "object", - "required": [ - "token", - "email" - ], + "required": ["token", "email"], "title": "Body_send_password_reset_email_api_v1_debug_send_password_reset_email_post" }, "Body_send_payment_failed_email_api_v1_debug_send_payment_failed_email_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "email": { - "type": "string", - "title": "Email" - } + "token": { "type": "string", "title": "Token" }, + "email": { "type": "string", "title": "Email" } }, "type": "object", - "required": [ - "token", - "email" - ], + "required": ["token", "email"], "title": "Body_send_payment_failed_email_api_v1_debug_send_payment_failed_email_post" }, "Body_send_verification_email_api_v1_debug_send_verification_email_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "email": { - "type": "string", - "title": "Email" - } + "token": { "type": "string", "title": "Token" }, + "email": { "type": "string", "title": "Email" } }, "type": "object", - "required": [ - "token", - "email" - ], + "required": ["token", "email"], "title": "Body_send_verification_email_api_v1_debug_send_verification_email_post" }, "Body_send_welcome_email_api_v1_debug_send_welcome_email_post": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, - "email": { - "type": "string", - "title": "Email" - }, + "token": { "type": "string", "title": "Token" }, + "email": { "type": "string", "title": "Email" }, "template": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Template", "default": "welcome" } }, "type": "object", - "required": [ - "token", - "email" - ], + "required": ["token", "email"], "title": "Body_send_welcome_email_api_v1_debug_send_welcome_email_post" }, "Body_test_job_api_v1_debug_test_job_post": { - "properties": { - "token": { - "type": "string", - "title": "Token" - } - }, + "properties": { "token": { "type": "string", "title": "Token" } }, "type": "object", - "required": [ - "token" - ], + "required": ["token"], "title": "Body_test_job_api_v1_debug_test_job_post" }, "Body_unsubscribe_to_webhook_v1_api_v1_webhook_unsubscribe_delete": { @@ -11919,12 +9865,10 @@ } }, "type": "object", - "required": [ - "id" - ], + "required": ["id"], "title": "Body_unsubscribe_to_webhook_v1_api_v1_webhook_unsubscribe_delete" }, - "Body_unsubscribe_to_webhook_v3_api_v3_webhook_unsubscribe_delete": { + "Body_unsubscribe_to_webhook_v1_api_v3_webhook_unsubscribe_delete": { "properties": { "id": { "type": "string", @@ -11933,135 +9877,103 @@ } }, "type": "object", - "required": [ - "id" - ], - "title": "Body_unsubscribe_to_webhook_v3_api_v3_webhook_unsubscribe_delete" + "required": ["id"], + "title": "Body_unsubscribe_to_webhook_v1_api_v3_webhook_unsubscribe_delete" }, "Body_update_presentation_api_v1_ppt_presentation_update_patch": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title" }, "theme": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Theme" }, "slides": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/SlideModel" - }, + "items": { "$ref": "#/components/schemas/SlideModel" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Slides" } }, "type": "object", - "required": [ - "id" - ], + "required": ["id"], "title": "Body_update_presentation_api_v1_ppt_presentation_update_patch" }, "Body_update_theme_api_v1_ppt_themes_update__theme_id__patch": { "properties": { "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" + }, + "description": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Description" + }, + "company_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Company Name" + }, + "logo": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Logo" + }, + "data": { + "anyOf": [ + { "$ref": "#/components/schemas/PresentionThemeData-Input" }, + { "type": "null" } + ] + } + }, + "type": "object", + "title": "Body_update_theme_api_v1_ppt_themes_update__theme_id__patch" + }, + "Body_update_theme_api_v3_theme_update__theme_id__patch": { + "properties": { + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" }, "company_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Company Name" }, "logo": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Logo" }, "data": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Data" + { "$ref": "#/components/schemas/PresentionThemeData-Input" }, + { "type": "null" } + ] } }, "type": "object", - "title": "Body_update_theme_api_v1_ppt_themes_update__theme_id__patch" + "title": "Body_update_theme_api_v3_theme_update__theme_id__patch" }, "Body_upload_files_and_get_temporary_urls_api_v1_ppt_files_upload_and_get_temporary_urls_post": { "properties": { @@ -12070,21 +9982,17 @@ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Files" } }, "type": "object", - "required": [ - "files" - ], + "required": ["files"], "title": "Body_upload_files_and_get_temporary_urls_api_v1_ppt_files_upload_and_get_temporary_urls_post" }, "Body_upload_files_for_ui_api_v1_ppt_files_upload_ui_post": { @@ -12094,21 +10002,17 @@ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Files" } }, "type": "object", - "required": [ - "files" - ], + "required": ["files"], "title": "Body_upload_files_for_ui_api_v1_ppt_files_upload_ui_post" }, "Body_upload_files_v1_api_v1_ppt_files_upload_post": { @@ -12118,67 +10022,57 @@ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Files" } }, "type": "object", - "required": [ - "files" - ], + "required": ["files"], "title": "Body_upload_files_v1_api_v1_ppt_files_upload_post" }, - "Body_upload_files_v3_api_v3_files_upload_post": { + "Body_upload_files_v1_api_v3_files_upload_post": { "properties": { "files": { "anyOf": [ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Files" } }, "type": "object", - "required": [ - "files" - ], - "title": "Body_upload_files_v3_api_v3_files_upload_post" + "required": ["files"], + "title": "Body_upload_files_v1_api_v3_files_upload_post" }, "Body_upload_font_api_v1_ppt_fonts_upload_post": { "properties": { "file": { "type": "string", - "format": "binary", + "contentMediaType": "application/octet-stream", "title": "File", "description": "Font file to upload (.ttf, .otf, .woff, .woff2, .eot)" } }, "type": "object", - "required": [ - "file" - ], + "required": ["file"], "title": "Body_upload_font_api_v1_ppt_fonts_upload_post" }, "Body_upload_fonts_and_slides_preview_api_v1_ppt_template_fonts_upload_and_slides_preview_post": { "properties": { "pptx_file": { "type": "string", - "format": "binary", + "contentMediaType": "application/octet-stream", "title": "Pptx File", "description": "PPTX file to modify" }, @@ -12187,44 +10081,33 @@ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Font Files", "description": "Font files to upload" }, "original_font_names": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Original Font Names", "description": "Original font names to replace (same order as font_files)" } }, "type": "object", - "required": [ - "pptx_file" - ], + "required": ["pptx_file"], "title": "Body_upload_fonts_and_slides_preview_api_v1_ppt_template_fonts_upload_and_slides_preview_post" }, "Body_upload_fonts_and_slides_preview_api_v2_ppt_fonts_upload_and_preview_post": { "properties": { "pptx_file": { "type": "string", - "format": "binary", + "contentMediaType": "application/octet-stream", "title": "Pptx File", "description": "PPTX file to modify" }, @@ -12233,283 +10116,429 @@ { "items": { "type": "string", - "format": "binary" + "contentMediaType": "application/octet-stream" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Font Files", "description": "Font files to upload" }, "original_font_names": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Original Font Names", "description": "Original font names to replace (same order as font_files)" } }, "type": "object", - "required": [ - "pptx_file" - ], + "required": ["pptx_file"], "title": "Body_upload_fonts_and_slides_preview_api_v2_ppt_fonts_upload_and_preview_post" }, "Body_upload_image_for_ui_api_v1_ppt_images_upload_ui_post": { "properties": { "file": { "type": "string", - "format": "binary", + "contentMediaType": "application/octet-stream", "title": "File" } }, "type": "object", - "required": [ - "file" - ], + "required": ["file"], "title": "Body_upload_image_for_ui_api_v1_ppt_images_upload_ui_post" }, "Body_upload_image_v1_api_v1_ppt_images_upload_post": { "properties": { "file": { "type": "string", - "format": "binary", + "contentMediaType": "application/octet-stream", "title": "File" } }, "type": "object", - "required": [ - "file" - ], + "required": ["file"], "title": "Body_upload_image_v1_api_v1_ppt_images_upload_post" }, - "Body_upload_image_v3_api_v3_images_upload_post": { + "Body_upload_image_v1_api_v3_images_upload_post": { "properties": { "file": { "type": "string", - "format": "binary", + "contentMediaType": "application/octet-stream", "title": "File" } }, "type": "object", - "required": [ - "file" - ], - "title": "Body_upload_image_v3_api_v3_images_upload_post" + "required": ["file"], + "title": "Body_upload_image_v1_api_v3_images_upload_post" }, "Body_verify_request_token_api_v1_auth_request_verify_token_post": { "properties": { - "email": { - "type": "string", - "format": "email", - "title": "Email" - } + "email": { "type": "string", "format": "email", "title": "Email" } }, "type": "object", - "required": [ - "email" - ], + "required": ["email"], "title": "Body_verify_request_token_api_v1_auth_request_verify_token_post" }, "Body_verify_verify_api_v1_auth_verify_post": { + "properties": { "token": { "type": "string", "title": "Token" } }, + "type": "object", + "required": ["token"], + "title": "Body_verify_verify_api_v1_auth_verify_post" + }, + "ChangePasswordRequest": { "properties": { - "token": { + "current_password": { + "type": "string", + "maxLength": 128, + "minLength": 8, + "title": "Current Password" + }, + "new_password": { "type": "string", - "title": "Token" + "maxLength": 128, + "minLength": 8, + "title": "New Password" } }, "type": "object", - "required": [ - "token" - ], - "title": "Body_verify_verify_api_v1_auth_verify_post" + "required": ["current_password", "new_password"], + "title": "ChangePasswordRequest" }, - "CheckCreditBalanceResponse": { + "ChatConversationListItem": { "properties": { - "balance": { - "type": "number", - "title": "Balance" + "conversation_id": { + "type": "string", + "format": "uuid", + "title": "Conversation Id" + }, + "updated_at": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Updated At" + }, + "last_message_preview": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Last Message Preview" } }, + "additionalProperties": false, "type": "object", - "required": [ - "balance" - ], - "title": "CheckCreditBalanceResponse" + "required": ["conversation_id"], + "title": "ChatConversationListItem" }, - "CloneSlideLayoutRequest": { + "ChatEditMessageRequest": { "properties": { - "template_id": { + "presentation_id": { "type": "string", - "title": "Template Id" + "format": "uuid", + "title": "Presentation Id" }, - "layout_id": { + "presentation_type": { "type": "string", - "title": "Layout Id" + "enum": ["standard", "smart"], + "title": "Presentation Type", + "default": "standard" }, - "layout_name": { + "conversation_id": { + "type": "string", + "format": "uuid", + "title": "Conversation Id" + }, + "message": { + "type": "string", + "maxLength": 8000, + "minLength": 1, + "title": "Message" + }, + "message_id": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], - "title": "Layout Name" + "title": "Message Id" + }, + "position": { + "anyOf": [ + { "type": "integer", "minimum": 1.0 }, + { "type": "null" } + ], + "title": "Position" } }, + "additionalProperties": false, "type": "object", - "required": [ - "template_id", - "layout_id" - ], - "title": "CloneSlideLayoutRequest" + "required": ["presentation_id", "conversation_id", "message"], + "title": "ChatEditMessageRequest" }, - "CloneTemplateRequest": { + "ChatHistoryMessageItem": { "properties": { "id": { - "type": "string", + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], "title": "Id" }, - "name": { + "position": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Position" + }, + "role": { "type": "string", "title": "Role" }, + "content": { "type": "string", "title": "Content" }, + "created_at": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Created At" + }, + "tool_calls": { + "items": { "type": "string" }, + "type": "array", + "title": "Tool Calls" + } + }, + "additionalProperties": false, + "type": "object", + "required": ["role", "content"], + "title": "ChatHistoryMessageItem" + }, + "ChatHistoryResponse": { + "properties": { + "presentation_id": { "type": "string", - "title": "Name" + "format": "uuid", + "title": "Presentation Id" }, - "description": { + "presentation_type": { + "type": "string", + "enum": ["standard", "smart"], + "title": "Presentation Type", + "default": "standard" + }, + "conversation_id": { + "type": "string", + "format": "uuid", + "title": "Conversation Id" + }, + "messages": { + "items": { "$ref": "#/components/schemas/ChatHistoryMessageItem" }, + "type": "array", + "title": "Messages" + } + }, + "additionalProperties": false, + "type": "object", + "required": ["presentation_id", "conversation_id", "messages"], + "title": "ChatHistoryResponse" + }, + "ChatMessageRequest": { + "properties": { + "presentation_id": { + "type": "string", + "format": "uuid", + "title": "Presentation Id" + }, + "presentation_type": { + "type": "string", + "enum": ["standard", "smart"], + "title": "Presentation Type", + "default": "standard" + }, + "message": { + "type": "string", + "maxLength": 8000, + "minLength": 1, + "title": "Message" + }, + "conversation_id": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], + "title": "Conversation Id" + } + }, + "additionalProperties": false, + "type": "object", + "required": ["presentation_id", "message"], + "title": "ChatMessageRequest" + }, + "ChatMessageResponse": { + "properties": { + "conversation_id": { + "type": "string", + "format": "uuid", + "title": "Conversation Id" + }, + "response": { "type": "string", "title": "Response" }, + "tool_calls": { + "items": { "type": "string" }, + "type": "array", + "title": "Tool Calls" + } + }, + "additionalProperties": false, + "type": "object", + "required": ["conversation_id", "response"], + "title": "ChatMessageResponse" + }, + "CheckCreditBalanceResponse": { + "properties": { "balance": { "type": "number", "title": "Balance" } }, + "type": "object", + "required": ["balance"], + "title": "CheckCreditBalanceResponse" + }, + "CloneSlideLayoutRequest": { + "properties": { + "template_id": { "type": "string", "title": "Template Id" }, + "layout_id": { "type": "string", "title": "Layout Id" }, + "layout_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Layout Name" + } + }, + "type": "object", + "required": ["template_id", "layout_id"], + "title": "CloneSlideLayoutRequest" + }, + "CloneTemplateRequest": { + "properties": { + "id": { "type": "string", "title": "Id" }, + "name": { "type": "string", "title": "Name" }, + "description": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" } }, "type": "object", - "required": [ - "id", - "name" - ], + "required": ["id", "name"], "title": "CloneTemplateRequest" }, "ContentGenerationMode": { "type": "string", - "enum": [ - "preserve", - "enhance", - "condense" - ], + "enum": ["preserve", "enhance", "condense"], "title": "ContentGenerationMode" }, "CreateCheckoutSessionRequest": { "properties": { - "price_id": { - "type": "string", - "title": "Price Id" - }, + "price_id": { "type": "string", "title": "Price Id" }, "mode": { "type": "string", "const": "subscription", "title": "Mode", "default": "subscription" }, - "quantity": { - "type": "integer", - "title": "Quantity", - "default": 1 + "quantity": { "type": "integer", "title": "Quantity", "default": 1 }, + "success_url": { "type": "string", "title": "Success Url" }, + "cancel_url": { "type": "string", "title": "Cancel Url" } + }, + "type": "object", + "required": ["price_id", "success_url", "cancel_url"], + "title": "CreateCheckoutSessionRequest" + }, + "CreateCheckoutSessionResponse": { + "properties": { + "url": { "type": "string", "title": "Url" }, + "session_id": { "type": "string", "title": "Session Id" } + }, + "type": "object", + "required": ["url", "session_id"], + "title": "CreateCheckoutSessionResponse" + }, + "CreateDesignAsyncRequest": { + "properties": { + "pptx_url": { "type": "string", "title": "Pptx Url" }, + "slide_image_urls": { + "items": { "type": "string" }, + "type": "array", + "title": "Slide Image Urls" }, - "success_url": { - "type": "string", - "title": "Success Url" + "fonts": { + "anyOf": [ + { "additionalProperties": true, "type": "object" }, + { "type": "null" } + ], + "title": "Fonts" }, - "cancel_url": { - "type": "string", - "title": "Cancel Url" + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" } }, "type": "object", - "required": [ - "price_id", - "success_url", - "cancel_url" - ], - "title": "CreateCheckoutSessionRequest" + "required": ["pptx_url", "slide_image_urls"], + "title": "CreateDesignAsyncRequest" }, - "CreateCheckoutSessionResponse": { + "CreateDesignInitRequest": { "properties": { - "url": { - "type": "string", - "title": "Url" + "pptx_url": { "type": "string", "title": "Pptx Url" }, + "slide_image_urls": { + "items": { "type": "string" }, + "type": "array", + "title": "Slide Image Urls" }, - "session_id": { - "type": "string", - "title": "Session Id" + "fonts": { + "anyOf": [ + { "additionalProperties": true, "type": "object" }, + { "type": "null" } + ], + "title": "Fonts" } }, "type": "object", - "required": [ - "url", - "session_id" - ], - "title": "CreateCheckoutSessionResponse" + "required": ["pptx_url", "slide_image_urls"], + "title": "CreateDesignInitRequest" + }, + "CreateDesignReferenceRequest": { + "properties": { + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "index": { "type": "integer", "title": "Index" } + }, + "type": "object", + "required": ["id", "index"], + "title": "CreateDesignReferenceRequest" + }, + "CreateDesignReferenceResponse": { + "properties": { + "html": { "type": "string", "title": "Html" }, + "structure": { "type": "string", "title": "Structure" } + }, + "type": "object", + "required": ["html", "structure"], + "title": "CreateDesignReferenceResponse" }, - "CreateDesignSystemRequest": { + "CreateDesignRequest": { "properties": { "pptx_url": { - "type": "string", + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Pptx Url" }, + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" + }, "slide_image_urls": { - "items": { - "type": "string" - }, - "type": "array", + "anyOf": [ + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } + ], "title": "Slide Image Urls" }, "fonts": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Fonts" } }, "type": "object", - "required": [ - "slide_image_urls" - ], - "title": "CreateDesignSystemRequest" + "title": "CreateDesignRequest" }, "CreatePortalSessionResponse": { - "properties": { - "url": { - "type": "string", - "title": "Url" - } - }, + "properties": { "url": { "type": "string", "title": "Url" } }, "type": "object", - "required": [ - "url" - ], + "required": ["url"], "title": "CreatePortalSessionResponse" }, "CreatePresentationFromJsonRequestV1": { @@ -12521,14 +10550,7 @@ "default": "English" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title", "description": "The title of the presentation" }, @@ -12539,14 +10561,7 @@ "default": "general" }, "theme": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Theme", "description": "The theme to use for the presentation. Available themes: edge-yellow, light-rose, mint-blue, professional-blue, professional-dark and your custom themes" }, @@ -12561,11 +10576,7 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "The format to export the presentation as", "default": "pptx" @@ -12589,14 +10600,7 @@ "default": "English" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title", "description": "The title of the presentation" }, @@ -12607,14 +10611,7 @@ "default": "general" }, "theme": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Theme", "description": "The theme to use for the presentation. Available themes: edge-yellow, light-rose, mint-blue, professional-blue, professional-dark and your custom themes" }, @@ -12629,11 +10626,7 @@ }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "The format to export the presentation as", "default": "pptx" @@ -12652,13 +10645,8 @@ "properties": { "id": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Id", "description": "The id of the slide to use" @@ -12675,67 +10663,37 @@ "description": "The content of the slide" }, "speaker_note": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Speaker Note", "description": "The speaker note of the slide" } }, "type": "object", - "required": [ - "layout", - "content" - ], + "required": ["layout", "content"], "title": "CreateSlideFromJsonRequestV1" }, "CreateSlideLayoutRequest": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "index": { - "type": "integer", - "title": "Index" - } + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "index": { "type": "integer", "title": "Index" } }, "type": "object", - "required": [ - "id", - "index" - ], + "required": ["id", "index"], "title": "CreateSlideLayoutRequest" }, "CreateSlideLayoutResponse": { "properties": { - "react_component": { - "type": "string", - "title": "React Component" - } + "react_component": { "type": "string", "title": "React Component" } }, "type": "object", - "required": [ - "react_component" - ], + "required": ["react_component"], "title": "CreateSlideLayoutResponse" }, "CreateTemplateInitRequest": { "properties": { - "pptx_url": { - "type": "string", - "title": "Pptx Url" - }, + "pptx_url": { "type": "string", "title": "Pptx Url" }, "slide_image_urls": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Slide Image Urls" }, @@ -12746,20 +10704,12 @@ } }, "type": "object", - "required": [ - "pptx_url", - "slide_image_urls", - "fonts" - ], + "required": ["pptx_url", "slide_image_urls", "fonts"], "title": "CreateTemplateInitRequest" }, "CreditAccount": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "created_at": { "type": "string", "format": "date-time", @@ -12767,166 +10717,70 @@ }, "user": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "User" }, - "email": { - "type": "string", - "title": "Email" - }, + "email": { "type": "string", "title": "Email" }, "auto_topup_amount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Auto Topup Amount" }, "auto_topup_threshold": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Auto Topup Threshold" }, "auto_topup_enabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "boolean" }, { "type": "null" }], "title": "Auto Topup Enabled" }, "below_25_cost": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Below 25 Cost" }, "below_50_cost": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Below 50 Cost" }, "below_100_cost": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Below 100 Cost" }, "above_100_cost": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Above 100 Cost" } }, "type": "object", - "required": [ - "created_at", - "user", - "email" - ], + "required": ["created_at", "user", "email"], "title": "CreditAccount" }, "CreditAccountWithBalance": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, - "balance": { - "type": "number", - "title": "Balance" - } + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "user": { "type": "string", "format": "uuid", "title": "User" }, + "balance": { "type": "number", "title": "Balance" } }, "type": "object", - "required": [ - "id", - "user", - "balance" - ], + "required": ["id", "user", "balance"], "title": "CreditAccountWithBalance" }, "CreditAddTransactionRead": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "credit_account": { "type": "string", "format": "uuid", "title": "Credit Account" }, - "name": { - "type": "string", - "title": "Name" - }, + "name": { "type": "string", "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" }, - "total": { - "type": "number", - "title": "Total" - }, - "remaining": { - "type": "number", - "title": "Remaining" - }, + "total": { "type": "number", "title": "Total" }, + "remaining": { "type": "number", "title": "Remaining" }, "created_at": { "type": "string", "format": "date-time", @@ -12952,22 +10806,10 @@ }, "CreditsRate": { "properties": { - "below_25_cost": { - "type": "number", - "title": "Below 25 Cost" - }, - "below_50_cost": { - "type": "number", - "title": "Below 50 Cost" - }, - "below_100_cost": { - "type": "number", - "title": "Below 100 Cost" - }, - "above_100_cost": { - "type": "number", - "title": "Above 100 Cost" - } + "below_25_cost": { "type": "number", "title": "Below 25 Cost" }, + "below_50_cost": { "type": "number", "title": "Below 50 Cost" }, + "below_100_cost": { "type": "number", "title": "Below 100 Cost" }, + "above_100_cost": { "type": "number", "title": "Above 100 Cost" } }, "type": "object", "required": [ @@ -12980,94 +10822,44 @@ }, "CreditsRatesAndAutoTopupInfoResponse": { "properties": { - "rates": { - "$ref": "#/components/schemas/CreditsRate" - }, - "auto_topup": { - "$ref": "#/components/schemas/TopupInfo" - }, + "rates": { "$ref": "#/components/schemas/CreditsRate" }, + "auto_topup": { "$ref": "#/components/schemas/TopupInfo" }, "has_payment_method": { "type": "boolean", "title": "Has Payment Method" } }, "type": "object", - "required": [ - "rates", - "auto_topup", - "has_payment_method" - ], + "required": ["rates", "auto_topup", "has_payment_method"], "title": "CreditsRatesAndAutoTopupInfoResponse" }, "DecomposedFileInfo": { "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "file_key": { - "type": "string", - "title": "File Key" - }, - "file_path": { - "type": "string", - "title": "File Path" - } + "name": { "type": "string", "title": "Name" }, + "file_key": { "type": "string", "title": "File Key" }, + "file_path": { "type": "string", "title": "File Path" } }, "type": "object", - "required": [ - "name", - "file_key", - "file_path" - ], + "required": ["name", "file_key", "file_path"], "title": "DecomposedFileInfo" }, - "DefaultPresentationThemeModel": { + "DefaultPresentationThemeResponse": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, - "description": { - "type": "string", - "title": "Description" - }, + "name": { "type": "string", "title": "Name" }, + "description": { "type": "string", "title": "Description" }, "logo": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Logo" }, "logo_url": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Logo Url" }, "company_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Company Name" }, "created_at": { @@ -13080,63 +10872,44 @@ "format": "date-time", "title": "Updated At" }, - "data": { - "additionalProperties": true, - "type": "object", - "title": "Data" - } + "data": { "$ref": "#/components/schemas/PresentionThemeData-Output" }, + "id": { "type": "string", "title": "Id" } }, "type": "object", "required": [ - "id", "name", "description", + "logo", + "logo_url", + "company_name", "created_at", "updated_at", - "data" + "data", + "id" ], - "title": "DefaultPresentationThemeModel" + "title": "DefaultPresentationThemeResponse" }, - "DesignSystemExportInfo": { + "DesignExportInfo": { "properties": { "embedded_eot_fonts": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Embedded Eot Fonts" }, "embedded_fonts_info": { "anyOf": [ { - "items": { - "additionalProperties": true, - "type": "object" - }, + "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Embedded Fonts Info" }, "theme_archive_url": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Theme Archive Url" } }, @@ -13146,45 +10919,55 @@ "embedded_fonts_info", "theme_archive_url" ], - "title": "DesignSystemExportInfo" - }, - "DesignSystemSlideInput": { - "properties": { - "image": { - "type": "string", - "title": "Image" - }, - "markdown_content": { - "type": "string", - "title": "Markdown Content" - } - }, - "type": "object", - "required": [ - "image", - "markdown_content" - ], - "title": "DesignSystemSlideInput" + "title": "DesignExportInfo" }, "Device": { "type": "string", - "enum": [ - "linux", - "windows", - "macos" - ], + "enum": ["linux", "windows", "macos"], "title": "Device" }, "DownloadFormat": { "type": "string", - "enum": [ - "deb", - "appimage", - "exe", - "dmg" - ], + "enum": ["deb", "appimage", "exe", "dmg"], "title": "DownloadFormat" }, + "EditDesignReferenceRequest": { + "properties": { + "html": { "type": "string", "title": "Html" }, + "prompt": { "type": "string", "title": "Prompt" } + }, + "type": "object", + "required": ["html", "prompt"], + "title": "EditDesignReferenceRequest" + }, + "EditDesignReferenceResponse": { + "properties": { + "html": { "type": "string", "title": "Html" }, + "structure": { "type": "string", "title": "Structure" } + }, + "type": "object", + "required": ["html", "structure"], + "title": "EditDesignReferenceResponse" + }, + "EditDesignReferenceSectionRequest": { + "properties": { + "html": { "type": "string", "title": "Html" }, + "section": { "type": "string", "title": "Section" }, + "prompt": { "type": "string", "title": "Prompt" } + }, + "type": "object", + "required": ["html", "section", "prompt"], + "title": "EditDesignReferenceSectionRequest" + }, + "EditDesignReferenceSectionResponse": { + "properties": { + "html": { "type": "string", "title": "Html" }, + "structure": { "type": "string", "title": "Structure" } + }, + "type": "object", + "required": ["html", "structure"], + "title": "EditDesignReferenceSectionResponse" + }, "EditOutlineRequestV2": { "properties": { "presentation_id": { @@ -13193,18 +10976,13 @@ "title": "Presentation Id" }, "outlines": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Outlines" } }, "type": "object", - "required": [ - "presentation_id", - "outlines" - ], + "required": ["presentation_id", "outlines"], "title": "EditOutlineRequestV2" }, "EditPresentationRequest": { @@ -13216,30 +10994,21 @@ "description": "The id of the presentation to use" }, "slides": { - "items": { - "$ref": "#/components/schemas/SlideContentUpdate" - }, + "items": { "$ref": "#/components/schemas/SlideContentUpdate" }, "type": "array", "title": "Slides", "description": "The data to update the slides with" }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "The format to export the presentation as", "default": "pptx" } }, "type": "object", - "required": [ - "presentation_id", - "slides" - ], + "required": ["presentation_id", "slides"], "title": "EditPresentationRequest" }, "EditSectionHTMLRequestV2": { @@ -13249,18 +11018,9 @@ "format": "uuid", "title": "Slide Id" }, - "complete_code": { - "type": "string", - "title": "Complete Code" - }, - "section_code": { - "type": "string", - "title": "Section Code" - }, - "edit_prompt": { - "type": "string", - "title": "Edit Prompt" - } + "complete_code": { "type": "string", "title": "Complete Code" }, + "section_code": { "type": "string", "title": "Section Code" }, + "edit_prompt": { "type": "string", "title": "Edit Prompt" } }, "type": "object", "required": [ @@ -13272,16 +11032,9 @@ "title": "EditSectionHTMLRequestV2" }, "EditSectionHTMLResponseV2": { - "properties": { - "html": { - "type": "string", - "title": "Html" - } - }, + "properties": { "html": { "type": "string", "title": "Html" } }, "type": "object", - "required": [ - "html" - ], + "required": ["html"], "title": "EditSectionHTMLResponseV2" }, "EditSlideHTMLRequestV2": { @@ -13291,140 +11044,74 @@ "format": "uuid", "title": "Slide Id" }, - "html": { - "type": "string", - "title": "Html" - }, - "edit_prompt": { - "type": "string", - "title": "Edit Prompt" - } + "html": { "type": "string", "title": "Html" }, + "edit_prompt": { "type": "string", "title": "Edit Prompt" } }, "type": "object", - "required": [ - "slide_id", - "html", - "edit_prompt" - ], + "required": ["slide_id", "html", "edit_prompt"], "title": "EditSlideHTMLRequestV2" }, "EditSlideHTMLResponseV2": { - "properties": { - "html": { - "type": "string", - "title": "Html" - } - }, + "properties": { "html": { "type": "string", "title": "Html" } }, "type": "object", - "required": [ - "html" - ], + "required": ["html"], "title": "EditSlideHTMLResponseV2" }, "EditSlideLayoutRequest": { "properties": { - "react_component": { - "type": "string", - "title": "React Component" - }, - "prompt": { - "type": "string", - "title": "Prompt" - } + "react_component": { "type": "string", "title": "React Component" }, + "prompt": { "type": "string", "title": "Prompt" } }, "type": "object", - "required": [ - "react_component", - "prompt" - ], + "required": ["react_component", "prompt"], "title": "EditSlideLayoutRequest" }, "EditSlideLayoutResponse": { "properties": { - "react_component": { - "type": "string", - "title": "React Component" - } + "react_component": { "type": "string", "title": "React Component" } }, "type": "object", - "required": [ - "react_component" - ], + "required": ["react_component"], "title": "EditSlideLayoutResponse" }, "EditSlideLayoutSectionRequest": { "properties": { - "react_component": { - "type": "string", - "title": "React Component" - }, - "section": { - "type": "string", - "title": "Section" - }, - "prompt": { - "type": "string", - "title": "Prompt" - } + "react_component": { "type": "string", "title": "React Component" }, + "section": { "type": "string", "title": "Section" }, + "prompt": { "type": "string", "title": "Prompt" } }, "type": "object", - "required": [ - "react_component", - "section", - "prompt" - ], + "required": ["react_component", "section", "prompt"], "title": "EditSlideLayoutSectionRequest" }, "EditSlideLayoutSectionResponse": { "properties": { - "react_component": { - "type": "string", - "title": "React Component" - } + "react_component": { "type": "string", "title": "React Component" } }, "type": "object", - "required": [ - "react_component" - ], + "required": ["react_component"], "title": "EditSlideLayoutSectionResponse" }, "EditSlideRequest": { "properties": { "id": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Id", "description": "The id of the slide to edit" }, "presentation_id": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Presentation Id", "description": "The id of the presentation to edit" }, "slide_index": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Slide Index", "description": "The index of the slide to edit" }, @@ -13435,16 +11122,8 @@ }, "export_as": { "anyOf": [ - { - "type": "string", - "enum": [ - "pptx", - "pdf" - ] - }, - { - "type": "null" - } + { "type": "string", "enum": ["pptx", "pdf"] }, + { "type": "null" } ], "title": "Export As", "description": "The format to export the presentation as", @@ -13452,24 +11131,14 @@ } }, "type": "object", - "required": [ - "prompt" - ], + "required": ["prompt"], "title": "EditSlideRequest" }, "EnterpriseCreditsAddResponse": { "properties": { - "user": { - "$ref": "#/components/schemas/UserRead" - }, - "credits_added": { - "type": "number", - "title": "Credits Added" - }, - "balance": { - "type": "number", - "title": "Balance" - }, + "user": { "$ref": "#/components/schemas/UserRead" }, + "credits_added": { "type": "number", "title": "Credits Added" }, + "balance": { "type": "number", "title": "Balance" }, "credit_transaction_id": { "type": "string", "format": "uuid", @@ -13500,75 +11169,36 @@ "type": "array", "title": "Items" }, - "total": { - "type": "integer", - "title": "Total" - }, - "page": { - "type": "integer", - "title": "Page" - }, - "page_size": { - "type": "integer", - "title": "Page Size" - } + "total": { "type": "integer", "title": "Total" }, + "page": { "type": "integer", "title": "Page" }, + "page_size": { "type": "integer", "title": "Page Size" } }, "type": "object", - "required": [ - "items", - "total", - "page", - "page_size" - ], + "required": ["items", "total", "page", "page_size"], "title": "EnterpriseCreditsAddsResponse" }, "EnterpriseCreditsInfoResponse": { "properties": { - "total_added": { - "type": "number", - "title": "Total Added" - }, - "total_used": { - "type": "number", - "title": "Total Used" - }, - "total_remaining": { - "type": "number", - "title": "Total Remaining" - } + "total_added": { "type": "number", "title": "Total Added" }, + "total_used": { "type": "number", "title": "Total Used" }, + "total_remaining": { "type": "number", "title": "Total Remaining" } }, "type": "object", - "required": [ - "total_added", - "total_used", - "total_remaining" - ], + "required": ["total_added", "total_used", "total_remaining"], "title": "EnterpriseCreditsInfoResponse" }, "EnterpriseLoginResponse": { "properties": { - "user": { - "$ref": "#/components/schemas/UserRead" - }, - "token": { - "type": "string", - "title": "Token" - } + "user": { "$ref": "#/components/schemas/UserRead" }, + "token": { "type": "string", "title": "Token" } }, "type": "object", - "required": [ - "user", - "token" - ], + "required": ["user", "token"], "title": "EnterpriseLoginResponse" }, "EnterprisePresentationRead": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "presentation_id": { "type": "string", "format": "uuid", @@ -13576,36 +11206,16 @@ }, "user": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "User" }, - "enterprise": { - "type": "string", - "title": "Enterprise" - }, - "title": { - "type": "string", - "title": "Title" - }, - "n_slides": { - "type": "integer", - "title": "N Slides" - }, - "version": { - "type": "integer", - "title": "Version" - }, - "from_api": { - "type": "boolean", - "title": "From Api" - }, + "enterprise": { "type": "string", "title": "Enterprise" }, + "title": { "type": "string", "title": "Title" }, + "n_slides": { "type": "integer", "title": "N Slides" }, + "version": { "type": "integer", "title": "Version" }, + "from_api": { "type": "boolean", "title": "From Api" }, "created_at": { "type": "string", "format": "date-time", @@ -13628,25 +11238,12 @@ }, "EnterprisePresentationsInfoResponse": { "properties": { - "total": { - "type": "integer", - "title": "Total" - }, - "v1": { - "type": "integer", - "title": "V1" - }, - "api": { - "type": "integer", - "title": "Api" - } + "total": { "type": "integer", "title": "Total" }, + "v1": { "type": "integer", "title": "V1" }, + "api": { "type": "integer", "title": "Api" } }, "type": "object", - "required": [ - "total", - "v1", - "api" - ], + "required": ["total", "v1", "api"], "title": "EnterprisePresentationsInfoResponse" }, "EnterprisePresentationsResponse": { @@ -13658,38 +11255,18 @@ "type": "array", "title": "Items" }, - "total": { - "type": "integer", - "title": "Total" - }, - "page": { - "type": "integer", - "title": "Page" - }, - "page_size": { - "type": "integer", - "title": "Page Size" - } + "total": { "type": "integer", "title": "Total" }, + "page": { "type": "integer", "title": "Page" }, + "page_size": { "type": "integer", "title": "Page Size" } }, "type": "object", - "required": [ - "items", - "total", - "page", - "page_size" - ], + "required": ["items", "total", "page", "page_size"], "title": "EnterprisePresentationsResponse" }, "EnterpriseRead": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, + "id": { "type": "string", "title": "Id" }, + "name": { "type": "string", "title": "Name" }, "created_at": { "type": "string", "format": "date-time", @@ -13701,13 +11278,8 @@ }, "last_cleanup_at": { "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } + { "type": "string", "format": "date-time" }, + { "type": "null" } ], "title": "Last Cleanup At" } @@ -13724,10 +11296,7 @@ }, "EnterpriseUserAccessTokenRead": { "properties": { - "token": { - "type": "string", - "title": "Token" - }, + "token": { "type": "string", "title": "Token" }, "created_at": { "type": "string", "format": "date-time", @@ -13735,10 +11304,7 @@ } }, "type": "object", - "required": [ - "token", - "created_at" - ], + "required": ["token", "created_at"], "title": "EnterpriseUserAccessTokenRead" }, "EnterpriseUserAccessTokensResponse": { @@ -13750,67 +11316,33 @@ "type": "array", "title": "Items" }, - "total": { - "type": "integer", - "title": "Total" - } + "total": { "type": "integer", "title": "Total" } }, "type": "object", - "required": [ - "items", - "total" - ], + "required": ["items", "total"], "title": "EnterpriseUserAccessTokensResponse" - }, - "EnterpriseUserAddRequest": { - "properties": { - "enterprise": { - "type": "string", - "title": "Enterprise" - }, - "email": { - "type": "string", - "format": "email", - "title": "Email" - }, - "password": { - "type": "string", - "title": "Password" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + }, + "EnterpriseUserAddRequest": { + "properties": { + "enterprise": { "type": "string", "title": "Enterprise" }, + "email": { "type": "string", "format": "email", "title": "Email" }, + "password": { "type": "string", "title": "Password" }, + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" } }, "type": "object", - "required": [ - "enterprise", - "email", - "password" - ], + "required": ["enterprise", "email", "password"], "title": "EnterpriseUserAddRequest" }, "EnterpriseUserCreditsAddRequest": { "properties": { - "enterprise": { - "type": "string", - "title": "Enterprise" - }, - "user_id": { - "type": "string", - "format": "uuid", - "title": "User Id" - }, + "enterprise": { "type": "string", "title": "Enterprise" }, + "user_id": { "type": "string", "format": "uuid", "title": "User Id" }, "credits": { "type": "number", - "exclusiveMinimum": 0, + "exclusiveMinimum": 0.0, "title": "Credits" }, "expires_at": { @@ -13824,349 +11356,156 @@ "default": "Enterprise Credits" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" } }, "type": "object", - "required": [ - "enterprise", - "user_id", - "credits", - "expires_at" - ], + "required": ["enterprise", "user_id", "credits", "expires_at"], "title": "EnterpriseUserCreditsAddRequest" }, "EnterpriseUserCreditsInfoResponse": { "properties": { - "total_added": { - "type": "number", - "title": "Total Added" - }, - "total_used": { - "type": "number", - "title": "Total Used" - }, - "balance": { - "type": "number", - "title": "Balance" - } + "total_added": { "type": "number", "title": "Total Added" }, + "total_used": { "type": "number", "title": "Total Used" }, + "balance": { "type": "number", "title": "Balance" } }, "type": "object", - "required": [ - "total_added", - "total_used", - "balance" - ], + "required": ["total_added", "total_used", "balance"], "title": "EnterpriseUserCreditsInfoResponse" }, "EnterpriseUserPasswordResetRequest": { "properties": { - "enterprise": { - "type": "string", - "title": "Enterprise" - }, - "password": { - "type": "string", - "title": "Password" - } + "enterprise": { "type": "string", "title": "Enterprise" }, + "password": { "type": "string", "title": "Password" } }, "type": "object", - "required": [ - "enterprise", - "password" - ], + "required": ["enterprise", "password"], "title": "EnterpriseUserPasswordResetRequest" }, "EnterpriseUserPresentationsInfoResponse": { "properties": { - "total": { - "type": "integer", - "title": "Total" - }, - "v1": { - "type": "integer", - "title": "V1" - }, - "api": { - "type": "integer", - "title": "Api" - } + "total": { "type": "integer", "title": "Total" }, + "v1": { "type": "integer", "title": "V1" }, + "api": { "type": "integer", "title": "Api" } }, "type": "object", - "required": [ - "total", - "v1", - "api" - ], + "required": ["total", "v1", "api"], "title": "EnterpriseUserPresentationsInfoResponse" }, "EnterpriseUsersInfoResponse": { - "properties": { - "total": { - "type": "integer", - "title": "Total" - } - }, + "properties": { "total": { "type": "integer", "title": "Total" } }, "type": "object", - "required": [ - "total" - ], + "required": ["total"], "title": "EnterpriseUsersInfoResponse" }, "EnterpriseUsersResponse": { "properties": { "items": { - "items": { - "$ref": "#/components/schemas/UserRead" - }, + "items": { "$ref": "#/components/schemas/UserRead" }, "type": "array", "title": "Items" }, - "total": { - "type": "integer", - "title": "Total" - }, - "page": { - "type": "integer", - "title": "Page" - }, - "page_size": { - "type": "integer", - "title": "Page Size" - } + "total": { "type": "integer", "title": "Total" }, + "page": { "type": "integer", "title": "Page" }, + "page_size": { "type": "integer", "title": "Page Size" } }, "type": "object", - "required": [ - "items", - "total", - "page", - "page_size" - ], + "required": ["items", "total", "page", "page_size"], "title": "EnterpriseUsersResponse" }, "ErrorModel": { "properties": { "detail": { "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } + { "type": "string" }, + { "additionalProperties": { "type": "string" }, "type": "object" } ], "title": "Detail" } }, "type": "object", - "required": [ - "detail" - ], + "required": ["detail"], "title": "ErrorModel" }, - "ErrorResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success", - "default": false - }, - "detail": { - "type": "string", - "title": "Detail" - }, - "error_code": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error Code" - } - }, - "type": "object", - "required": [ - "detail" - ], - "title": "ErrorResponse" - }, - "ExtractDesignSystemRequest": { - "properties": { - "slides": { - "items": { - "$ref": "#/components/schemas/DesignSystemSlideInput" - }, - "type": "array", - "title": "Slides" - } - }, - "type": "object", - "required": [ - "slides" - ], - "title": "ExtractDesignSystemRequest" - }, - "ExtractDesignSystemResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "design_system": { - "additionalProperties": true, - "type": "object", - "title": "Design System" - } - }, - "type": "object", - "required": [ - "success", - "design_system" - ], - "title": "ExtractDesignSystemResponse" - }, - "FontAnalysisResult": { - "properties": { - "internally_supported_fonts": { - "items": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, - "type": "array", - "title": "Internally Supported Fonts" - }, - "not_supported_fonts": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Not Supported Fonts" - } - }, - "type": "object", - "required": [ - "internally_supported_fonts", - "not_supported_fonts" - ], - "title": "FontAnalysisResult" - }, "FontCheckResponse": { "properties": { "available_fonts": { - "items": { - "$ref": "#/components/schemas/FontInfo" - }, + "items": { "$ref": "#/components/schemas/FontInfo" }, "type": "array", "title": "Available Fonts" }, "unavailable_fonts": { - "items": { - "$ref": "#/components/schemas/FontInfo" - }, + "items": { "$ref": "#/components/schemas/FontInfo" }, "type": "array", "title": "Unavailable Fonts" } }, "type": "object", - "required": [ - "available_fonts", - "unavailable_fonts" - ], + "required": ["available_fonts", "unavailable_fonts"], "title": "FontCheckResponse" }, "FontDetail": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, - "url": { - "type": "string", - "title": "Url" - } + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "name": { "type": "string", "title": "Name" }, + "url": { "type": "string", "title": "Url" } }, "type": "object", - "required": [ - "id", - "name", - "url" - ], + "required": ["id", "name", "url"], "title": "FontDetail" }, "FontInfo": { "properties": { - "name": { - "type": "string", - "title": "Name" - }, + "name": { "type": "string", "title": "Name" }, "url": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Url" + }, + "original_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Original Name" + }, + "family_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Family Name" + }, + "variant": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Variant" + }, + "variants": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], - "title": "Url" + "title": "Variants" } }, "type": "object", - "required": [ - "name" - ], + "required": ["name"], "title": "FontInfo" }, "FontListResponse": { "properties": { "fonts": { - "items": { - "$ref": "#/components/schemas/FontDetail" - }, + "items": { "$ref": "#/components/schemas/FontDetail" }, "type": "array", "title": "Fonts" } }, "type": "object", - "required": [ - "fonts" - ], + "required": ["fonts"], "title": "FontListResponse" }, "FontsUploadAndSlidesPreviewResponse": { "properties": { "slide_image_urls": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Slide Image Urls" }, - "pptx_url": { - "type": "string", - "title": "Pptx Url" - }, + "pptx_url": { "type": "string", "title": "Pptx Url" }, "modified_pptx_url": { "type": "string", "title": "Modified Pptx Url" @@ -14186,29 +11525,6 @@ ], "title": "FontsUploadAndSlidesPreviewResponse" }, - "GenerateContentForSchemaRequest": { - "properties": { - "schema": { - "additionalProperties": true, - "type": "object", - "title": "Schema" - }, - "mode": { - "type": "string", - "enum": [ - "min", - "normal", - "max" - ], - "title": "Mode" - } - }, - "type": "object", - "required": [ - "mode" - ], - "title": "GenerateContentForSchemaRequest" - }, "GenerateContentForSchemaResponse": { "properties": { "content": { @@ -14218,63 +11534,30 @@ } }, "type": "object", - "required": [ - "content" - ], + "required": ["content"], "title": "GenerateContentForSchemaResponse" }, "GenerateHTMLPresentationRequestV2": { "properties": { "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, - "tone": { - "$ref": "#/components/schemas/Tone", - "default": "default" - }, + "tone": { "$ref": "#/components/schemas/Tone", "default": "default" }, "verbosity": { "$ref": "#/components/schemas/Verbosity", "default": "standard" }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions" }, "web_search": { @@ -14289,32 +11572,20 @@ }, "image_type": { "type": "string", - "enum": [ - "stock", - "ai-generated" - ], + "enum": ["stock", "ai-generated"], "title": "Image Type", "default": "ai-generated" }, "file_paths": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "File Paths" } }, "type": "object", - "required": [ - "design_id" - ], + "required": ["design_id"], "title": "GenerateHTMLPresentationRequestV2" }, "GenerateHTMLPresentationResponseV2": { @@ -14331,62 +11602,39 @@ } }, "type": "object", - "required": [ - "presentation_id", - "fonts" - ], - "title": "GenerateHTMLPresentationResponseV2" - }, - "GenerateOutlinesRequest": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "required": ["presentation_id", "fonts"], + "title": "GenerateHTMLPresentationResponseV2" + }, + "GenerateOutlinesRequest": { + "properties": { + "content": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content", "description": "The content for generating the presentation" }, "files": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Files", "description": "The files to use for the presentation" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides", "description": "The number of slides to generate" }, - "language": { + "design": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], + "title": "Design", + "description": "Optional design ID to use for outline generation" + }, + "language": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language", "description": "The language for the presentation" }, @@ -14402,12 +11650,8 @@ }, "content_generation": { "anyOf": [ - { - "$ref": "#/components/schemas/ContentGenerationMode" - }, - { - "type": "null" - } + { "$ref": "#/components/schemas/ContentGenerationMode" }, + { "type": "null" } ], "description": "The content generation mode for the presentation" }, @@ -14424,14 +11668,7 @@ "default": true }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions", "description": "The instructions for the presentation" } @@ -14442,28 +11679,14 @@ "GeneratePresentationRequestV1": { "properties": { "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content", "description": "The content for generating the presentation" }, "slides_markdown": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Slides Markdown", "description": "The markdown for the slides" @@ -14472,45 +11695,22 @@ "anyOf": [ { "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "anyOf": [{ "type": "string" }, { "type": "null" }] }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Slides Layout", "description": "The layout for each slides" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides", "description": "Number of slides to generate" }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions", "description": "The instruction for generating the presentation" }, @@ -14526,12 +11726,8 @@ }, "content_generation": { "anyOf": [ - { - "$ref": "#/components/schemas/ContentGenerationMode" - }, - { - "type": "null" - } + { "$ref": "#/components/schemas/ContentGenerationMode" }, + { "type": "null" } ], "description": "How to generate the content for each slide" }, @@ -14549,35 +11745,18 @@ }, "image_type": { "type": "string", - "enum": [ - "stock", - "ai-generated" - ], + "enum": ["stock", "ai-generated"], "title": "Image Type", "description": "Type of image to generate", "default": "stock" }, "theme": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Theme", "description": "Theme to use for the presentation. Available themes: edge-yellow, light-rose, mint-blue, professional-blue, professional-dark and your custom themes" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language", "description": "Language for the presentation" }, @@ -14607,26 +11786,15 @@ }, "files": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Files", "description": "Files to use for the presentation. Use /api/v1/ppt/files/upload to upload files." }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "Export format", "default": "pptx" @@ -14644,53 +11812,28 @@ "GeneratePresentationRequestV2": { "properties": { "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content", "description": "The content for generating the presentation" }, "slides": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/SlideContentLayout" - }, + "items": { "$ref": "#/components/schemas/SlideContentLayout" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Slides", "description": "The content for the each slide" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides", "description": "Number of slides to generate" }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions", "description": "The instruction for generating the presentation" }, @@ -14706,19 +11849,15 @@ }, "content_generation": { "anyOf": [ - { - "$ref": "#/components/schemas/ContentGenerationMode" - }, - { - "type": "null" - } + { "$ref": "#/components/schemas/ContentGenerationMode" }, + { "type": "null" } ], "description": "How to generate the content for each slide" }, "smart_design": { "type": "string", "title": "Smart Design", - "description": "Smart design to use for the presentation" + "description": "Design V2 id to use for the smart presentation" }, "markdown_emphasis": { "type": "boolean", @@ -14734,23 +11873,13 @@ }, "image_type": { "type": "string", - "enum": [ - "stock", - "ai-generated" - ], + "enum": ["stock", "ai-generated"], "title": "Image Type", "description": "Type of image to generate", "default": "stock" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language", "description": "Language for the presentation" }, @@ -14774,26 +11903,15 @@ }, "files": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Files", "description": "Files to use for the presentation. Use /api/v1/ppt/files/upload to upload files." }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "Export format", "default": "pptx" @@ -14806,61 +11924,34 @@ } }, "type": "object", - "required": [ - "smart_design" - ], + "required": ["smart_design"], "title": "GeneratePresentationRequestV2" }, "GeneratePresentationRequestV3": { "properties": { "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content", "description": "The content for generating the presentation" }, "slides": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/SlideContentLayout" - }, + "items": { "$ref": "#/components/schemas/SlideContentLayout" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Slides", "description": "The content and layout for each slide" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides", "description": "Number of slides to generate" }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions", "description": "The instruction for generating the presentation" }, @@ -14876,12 +11967,8 @@ }, "content_generation": { "anyOf": [ - { - "$ref": "#/components/schemas/ContentGenerationMode" - }, - { - "type": "null" - } + { "$ref": "#/components/schemas/ContentGenerationMode" }, + { "type": "null" } ], "description": "How to generate the content for each slide" }, @@ -14899,61 +11986,30 @@ }, "image_type": { "type": "string", - "enum": [ - "stock", - "ai-generated" - ], + "enum": ["stock", "ai-generated"], "title": "Image Type", "description": "Type of image to generate", "default": "stock" }, "theme": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Theme", "description": "Theme to use for the presentation. Available themes: edge-yellow, light-rose, mint-blue, professional-blue, professional-dark and your custom themes" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language", "description": "Language for the presentation" }, "standard_template": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Standard Template", "description": "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": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Smart Design", - "description": "Smart design to use for the presentation" + "description": "Design V2 id to use for the smart presentation" }, "include_table_of_contents": { "type": "boolean", @@ -14975,26 +12031,15 @@ }, "files": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "Files", "description": "Files to use for the presentation. Use /api/v3/files/upload to upload files." }, "export_as": { "type": "string", - "enum": [ - "pptx", - "pdf", - "png" - ], + "enum": ["pptx", "pdf", "png"], "title": "Export As", "description": "Export format", "default": "pptx" @@ -15016,107 +12061,42 @@ "format": "uuid", "title": "Presentation Id" }, - "prompt": { - "type": "string", - "title": "Prompt" - }, - "qualitativechart": { - "anyOf": [ - { - "$ref": "#/components/schemas/QualitativeChart" - }, - { - "type": "null" - } - ] - } + "prompt": { "type": "string", "title": "Prompt" } }, "type": "object", - "required": [ - "presentation_id", - "prompt" - ], + "required": ["presentation_id", "prompt"], "title": "GenerateSlideRequest" }, "GenerateSlideResponse": { - "properties": { - "html": { - "type": "string", - "title": "Html" - } - }, + "properties": { "html": { "type": "string", "title": "Html" } }, "type": "object", - "required": [ - "html" - ], + "required": ["html"], "title": "GenerateSlideResponse" }, "GenerateThemeRequestV3": { "properties": { "primary": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Primary" }, "background": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Background" }, "accent_1": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Accent 1" }, "accent_2": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Accent 2" - }, - "text_1": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Text 1" - }, - "text_2": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + }, + "text_1": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Text 1" + }, + "text_2": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Text 2" } }, @@ -15125,305 +12105,126 @@ }, "GetJwtTokenResponse": { "properties": { - "user": { - "$ref": "#/components/schemas/UserRead" - }, - "token": { - "type": "string", - "title": "Token" - } + "user": { "$ref": "#/components/schemas/UserRead" }, + "token": { "type": "string", "title": "Token" } }, "type": "object", - "required": [ - "user", - "token" - ], + "required": ["user", "token"], "title": "GetJwtTokenResponse" }, - "GetLayoutsResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "layouts": { - "items": { - "$ref": "#/components/schemas/LayoutData" - }, - "type": "array", - "title": "Layouts" - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - }, - "template": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Template" - }, - "fonts": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Fonts" - } - }, - "type": "object", - "required": [ - "success", - "layouts" - ], - "title": "GetLayoutsResponse" - }, "GetMeResponse": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "is_active": { - "type": "boolean", - "title": "Is Active" - }, - "is_verified": { - "type": "boolean", - "title": "Is Verified" - }, - "is_onboarded": { - "type": "boolean", - "title": "Is Onboarded" - }, - "email": { - "type": "string", - "title": "Email" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "is_active": { "type": "boolean", "title": "Is Active" }, + "is_verified": { "type": "boolean", "title": "Is Verified" }, + "is_onboarded": { "type": "boolean", "title": "Is Onboarded" }, + "email": { "type": "string", "title": "Email" }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" }, "profile_picture": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Profile Picture" } }, "type": "object", - "required": [ - "id", - "is_active", - "is_verified", - "is_onboarded", - "email" - ], + "required": ["id", "is_active", "is_verified", "is_onboarded", "email"], "title": "GetMeResponse" }, - "GetPresentationStatusResponseV2": { + "GetMultipleTemplateLayoutsRequest": { "properties": { - "status": { - "type": "string", - "title": "Status" - }, - "slides": { - "type": "integer", - "title": "Slides" + "template_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Template Ids" } }, "type": "object", - "required": [ - "status", - "slides" - ], - "title": "GetPresentationStatusResponseV2" + "required": ["template_ids"], + "title": "GetMultipleTemplateLayoutsRequest" }, - "GetPresentationSummaryResponse": { + "GetPresentationStatusResponseV2": { "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "presentations": { - "items": { - "$ref": "#/components/schemas/PresentationSummary" - }, - "type": "array", - "title": "Presentations" - }, - "total_presentations": { - "type": "integer", - "title": "Total Presentations" - }, - "total_layouts": { - "type": "integer", - "title": "Total Layouts" - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - } + "status": { "type": "string", "title": "Status" }, + "slides": { "type": "integer", "title": "Slides" } }, "type": "object", - "required": [ - "success", - "presentations", - "total_presentations", - "total_layouts" - ], - "title": "GetPresentationSummaryResponse" + "required": ["status", "slides"], + "title": "GetPresentationStatusResponseV2" }, "GetTemplateLayoutsResponse": { "properties": { "layouts": { - "items": { - "$ref": "#/components/schemas/TemplateLayoutData" - }, + "items": { "$ref": "#/components/schemas/TemplateLayoutData" }, "type": "array", "title": "Layouts" }, "template": { "anyOf": [ - { - "$ref": "#/components/schemas/TemplateData" - }, - { - "type": "null" - } + { "$ref": "#/components/schemas/TemplateData" }, + { "type": "null" } ] }, "fonts": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Fonts" } }, "type": "object", - "required": [ - "layouts" - ], + "required": ["layouts"], "title": "GetTemplateLayoutsResponse" }, - "HTMLSlideV2": { + "HTMLDesignV2Detail": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" }, - "presentation_id": { - "type": "string", - "format": "uuid", - "title": "Presentation Id" + "thumbnail_url": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Thumbnail Url" }, - "index": { - "type": "integer", - "title": "Index" + "default": { + "type": "boolean", + "title": "Default", + "default": false }, - "html": { + "design_info_id": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], - "title": "Html" + "title": "Design Info Id" }, - "speaker_note": { + "design": { "anyOf": [ { - "type": "string" + "items": { "additionalProperties": true, "type": "object" }, + "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], - "title": "Speaker Note" + "title": "Design" }, - "variations": { + "chart_references": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], - "title": "Variations" + "title": "Chart References" }, - "qualitative_chart": { + "fonts": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], - "title": "Qualitative Chart" + "title": "Fonts" }, "created_at": { "type": "string", @@ -15438,167 +12239,84 @@ }, "type": "object", "required": [ - "presentation_id", - "index", + "id", + "name", + "thumbnail_url", + "design", + "chart_references", + "fonts", "created_at", "updated_at" ], - "title": "HTMLSlideV2" - }, - "HTTPValidationError": { - "properties": { - "detail": { - "items": { - "$ref": "#/components/schemas/ValidationError" - }, - "type": "array", - "title": "Detail" - } - }, - "type": "object", - "title": "HTTPValidationError" - }, - "HealthResponse": { - "properties": { - "status": { - "type": "string", - "title": "Status" - } - }, - "type": "object", - "required": [ - "status" - ], - "title": "HealthResponse" + "title": "HTMLDesignV2Detail" }, - "HtmlEditInitResponse": { + "HTMLSlideV2": { "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "id": { + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "presentation_id": { "type": "string", "format": "uuid", - "title": "Id" - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - } - }, - "type": "object", - "required": [ - "success", - "id" - ], - "title": "HtmlEditInitResponse" - }, - "HtmlEditResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "edited_html": { - "type": "string", - "title": "Edited Html" + "title": "Presentation Id" }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - } - }, - "type": "object", - "required": [ - "success", - "edited_html" - ], - "title": "HtmlEditResponse" - }, - "HtmlToReactRequest": { - "properties": { + "index": { "type": "integer", "title": "Index" }, "html": { - "type": "string", + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Html" }, - "image": { + "speaker_note": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Speaker Note" + }, + "variations": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], - "title": "Image" + "title": "Variations" + }, + "qualitative_chart": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Qualitative Chart" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At" } }, "type": "object", - "required": [ - "html" - ], - "title": "HtmlToReactRequest" + "required": ["presentation_id", "index", "created_at", "updated_at"], + "title": "HTMLSlideV2" }, - "HtmlToReactResponse": { + "HTTPValidationError": { "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "react_component": { - "type": "string", - "title": "React Component" - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" + "detail": { + "items": { "$ref": "#/components/schemas/ValidationError" }, + "type": "array", + "title": "Detail" } }, "type": "object", - "required": [ - "success", - "react_component" - ], - "title": "HtmlToReactResponse" + "title": "HTTPValidationError" + }, + "HealthResponse": { + "properties": { "status": { "type": "string", "title": "Status" } }, + "type": "object", + "required": ["status"], + "title": "HealthResponse" }, "ImageAsset": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "user": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "User" }, @@ -15607,10 +12325,7 @@ "format": "date-time", "title": "Created At" }, - "path": { - "type": "string", - "title": "Path" - }, + "path": { "type": "string", "title": "Path" }, "is_uploaded": { "type": "boolean", "title": "Is Uploaded", @@ -15618,99 +12333,27 @@ }, "extras": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Extras" }, "url": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Url" } }, "type": "object", - "required": [ - "user", - "created_at", - "path" - ], + "required": ["user", "created_at", "path"], "title": "ImageAsset" }, - "LayoutData": { - "properties": { - "presentation": { - "type": "string", - "format": "uuid", - "title": "Presentation" - }, - "layout_id": { - "type": "string", - "title": "Layout Id" - }, - "layout_name": { - "type": "string", - "title": "Layout Name" - }, - "layout_code": { - "type": "string", - "title": "Layout Code" - }, - "fonts": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Fonts" - } - }, - "type": "object", - "required": [ - "presentation", - "layout_id", - "layout_name", - "layout_code" - ], - "title": "LayoutData" - }, "ModifySubscriptionResponse": { "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "message": { - "type": "string", - "title": "Message" - } + "success": { "type": "boolean", "title": "Success" }, + "message": { "type": "string", "title": "Message" } }, "type": "object", - "required": [ - "success", - "message" - ], + "required": ["success", "message"], "title": "ModifySubscriptionResponse" }, "OAuth2AuthorizeResponse": { @@ -15721,108 +12364,49 @@ } }, "type": "object", - "required": [ - "authorization_url" - ], + "required": ["authorization_url"], "title": "OAuth2AuthorizeResponse" }, "OnboardingQuestion": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "question": { - "type": "string", - "title": "Question" - }, - "question_type": { - "type": "string", - "title": "Question Type" - }, - "order": { - "type": "integer", - "title": "Order" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "question": { "type": "string", "title": "Question" }, + "question_type": { "type": "string", "title": "Question Type" }, + "order": { "type": "integer", "title": "Order" }, "options": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Options" } }, "type": "object", - "required": [ - "question", - "question_type", - "order" - ], + "required": ["question", "question_type", "order"], "title": "OnboardingQuestion" }, "PaginatedResponse": { "properties": { - "total_pages": { - "type": "integer", - "title": "Total Pages" - }, - "page": { - "type": "integer", - "title": "Page" - }, - "page_size": { - "type": "integer", - "title": "Page Size" - }, - "results": { - "items": {}, - "type": "array", - "title": "Results" - } + "total_pages": { "type": "integer", "title": "Total Pages" }, + "page": { "type": "integer", "title": "Page" }, + "page_size": { "type": "integer", "title": "Page Size" }, + "results": { "items": {}, "type": "array", "title": "Results" } }, "type": "object", - "required": [ - "total_pages", - "page", - "page_size", - "results" - ], + "required": ["total_pages", "page", "page_size", "results"], "title": "PaginatedResponse" }, "PaginatedVariationsResponse": { "properties": { "variations": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Variations" }, - "total": { - "type": "integer", - "title": "Total" - }, - "page": { - "type": "integer", - "title": "Page" - }, - "count": { - "type": "integer", - "title": "Count" - }, - "total_pages": { - "type": "integer", - "title": "Total Pages" - }, - "has_next": { - "type": "boolean", - "title": "Has Next" - }, - "has_prev": { - "type": "boolean", - "title": "Has Prev" - } + "total": { "type": "integer", "title": "Total" }, + "page": { "type": "integer", "title": "Page" }, + "count": { "type": "integer", "title": "Count" }, + "total_pages": { "type": "integer", "title": "Total Pages" }, + "has_next": { "type": "boolean", "title": "Has Next" }, + "has_prev": { "type": "boolean", "title": "Has Prev" } }, "type": "object", "required": [ @@ -15836,226 +12420,61 @@ ], "title": "PaginatedVariationsResponse" }, - "PdfSlideData": { - "properties": { - "slide_number": { - "type": "integer", - "title": "Slide Number" - }, - "screenshot_url": { - "type": "string", - "title": "Screenshot Url" - }, - "markdown_content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Markdown Content" - } - }, - "type": "object", - "required": [ - "slide_number", - "screenshot_url" - ], - "title": "PdfSlideData" - }, - "PdfSlidesResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "slides": { - "items": { - "$ref": "#/components/schemas/PdfSlideData" - }, - "type": "array", - "title": "Slides" - }, - "total_slides": { - "type": "integer", - "title": "Total Slides" - } - }, - "type": "object", - "required": [ - "success", - "slides", - "total_slides" - ], - "title": "PdfSlidesResponse" - }, - "PptxFontsResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "fonts": { - "$ref": "#/components/schemas/FontAnalysisResult" - } - }, - "type": "object", - "required": [ - "success", - "fonts" - ], - "title": "PptxFontsResponse" - }, - "PptxSlidesResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "slides": { - "items": { - "$ref": "#/components/schemas/SlideData" - }, - "type": "array", - "title": "Slides" - }, - "total_slides": { - "type": "integer", - "title": "Total Slides" - }, - "fonts": { - "anyOf": [ - { - "$ref": "#/components/schemas/FontAnalysisResult" - }, - { - "type": "null" - } - ] - } - }, - "type": "object", - "required": [ - "success", - "slides", - "total_slides" - ], - "title": "PptxSlidesResponse" - }, "PresentationLayoutModel": { "properties": { - "name": { - "type": "string", - "title": "Name" - }, + "name": { "type": "string", "title": "Name" }, "ordered": { "type": "boolean", "title": "Ordered", "default": false }, "slides": { - "items": { - "$ref": "#/components/schemas/SlideLayoutModel" - }, + "items": { "$ref": "#/components/schemas/SlideLayoutModel" }, "type": "array", "title": "Slides" } }, "type": "object", - "required": [ - "name", - "slides" - ], + "required": ["name", "slides"], "title": "PresentationLayoutModel" }, "PresentationModel": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "user": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "User" - }, - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "user": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } ], + "title": "User" + }, + "content": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title" }, "file_paths": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "type": "null" } ], "title": "File Paths" }, "outlines": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Outlines" }, @@ -16071,59 +12490,28 @@ }, "layout": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Layout" }, "structure": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Structure" }, "instructions": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Instructions" }, "tone": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Tone" }, "verbosity": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Verbosity" }, "include_table_of_contents": { @@ -16148,34 +12536,18 @@ }, "theme": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Theme" }, "from_playground": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "boolean" }, { "type": "null" }], "title": "From Playground" } }, "type": "object", - "required": [ - "user", - "created_at", - "updated_at" - ], + "required": ["user", "created_at", "updated_at"], "title": "PresentationModel" }, "PresentationPathAndEditPath": { @@ -16185,18 +12557,9 @@ "format": "uuid", "title": "Presentation Id" }, - "path": { - "type": "string", - "title": "Path" - }, - "edit_path": { - "type": "string", - "title": "Edit Path" - }, - "credits_consumed": { - "type": "number", - "title": "Credits Consumed" - } + "path": { "type": "string", "title": "Path" }, + "edit_path": { "type": "string", "title": "Edit Path" }, + "credits_consumed": { "type": "number", "title": "Credits Consumed" } }, "type": "object", "required": [ @@ -16207,108 +12570,23 @@ ], "title": "PresentationPathAndEditPath" }, - "PresentationSummary": { - "properties": { - "presentation": { - "type": "string", - "format": "uuid", - "title": "Presentation" - }, - "layout_count": { - "type": "integer", - "title": "Layout Count" - }, - "last_updated_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Last Updated At" - }, - "template": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Template" - } - }, - "type": "object", - "required": [ - "presentation", - "layout_count" - ], - "title": "PresentationSummary" - }, - "PresentationThemeModel": { + "PresentationThemeResponse": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "user": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "User" - }, - "name": { - "type": "string", - "title": "Name" - }, - "description": { - "type": "string", - "title": "Description" - }, + "name": { "type": "string", "title": "Name" }, + "description": { "type": "string", "title": "Description" }, "logo": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Logo" }, "logo_url": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Logo Url" }, "company_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Company Name" }, "created_at": { @@ -16321,77 +12599,49 @@ "format": "date-time", "title": "Updated At" }, - "data": { - "additionalProperties": true, - "type": "object", - "title": "Data" + "data": { "$ref": "#/components/schemas/PresentionThemeData-Output" }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "user": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "User" } }, "type": "object", "required": [ - "user", "name", "description", + "logo", + "logo_url", + "company_name", "created_at", "updated_at", - "data" + "data", + "id", + "user" ], - "title": "PresentationThemeModel" + "title": "PresentationThemeResponse" }, "PresentationWithSlidesV1": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "user": { "type": "string", "format": "uuid", "title": "User" }, "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Content" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title" }, "created_at": { @@ -16405,203 +12655,172 @@ "title": "Updated At" }, "tone": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Tone" }, "verbosity": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Verbosity" }, "theme": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Theme" }, "slides": { - "items": { - "$ref": "#/components/schemas/SlideModel" - }, + "items": { "$ref": "#/components/schemas/SlideModel" }, "type": "array", "title": "Slides" } }, "type": "object", - "required": [ - "id", - "user", - "created_at", - "updated_at", - "slides" - ], + "required": ["id", "user", "created_at", "updated_at", "slides"], "title": "PresentationWithSlidesV1" }, "PresentationWithSlidesV2": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "user": { - "type": "string", - "format": "uuid", - "title": "User" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "user": { "type": "string", "format": "uuid", "title": "User" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "tone": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Tone" }, - "verbosity": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "verbosity": { + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Verbosity" }, "language": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, "design_system_id": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Design System Id" }, + "design_v2_id": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Design V2 Id" + }, "fonts": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Fonts" }, "slides": { - "items": { - "$ref": "#/components/schemas/HTMLSlideV2" - }, + "items": { "$ref": "#/components/schemas/HTMLSlideV2" }, "type": "array", "title": "Slides" } }, "type": "object", + "required": ["id", "user", "title", "slides"], + "title": "PresentationWithSlidesV2" + }, + "PresentionThemeColors": { + "properties": { + "primary": { "type": "string", "title": "Primary" }, + "background": { "type": "string", "title": "Background" }, + "card": { "type": "string", "title": "Card" }, + "stroke": { "type": "string", "title": "Stroke" }, + "primary_text": { "type": "string", "title": "Primary Text" }, + "background_text": { "type": "string", "title": "Background Text" }, + "graph_0": { "type": "string", "title": "Graph 0" }, + "graph_1": { "type": "string", "title": "Graph 1" }, + "graph_2": { "type": "string", "title": "Graph 2" }, + "graph_3": { "type": "string", "title": "Graph 3" }, + "graph_4": { "type": "string", "title": "Graph 4" }, + "graph_5": { "type": "string", "title": "Graph 5" }, + "graph_6": { "type": "string", "title": "Graph 6" }, + "graph_7": { "type": "string", "title": "Graph 7" }, + "graph_8": { "type": "string", "title": "Graph 8" }, + "graph_9": { "type": "string", "title": "Graph 9" } + }, + "type": "object", "required": [ - "id", - "user", - "title", - "slides" + "primary", + "background", + "card", + "stroke", + "primary_text", + "background_text", + "graph_0", + "graph_1", + "graph_2", + "graph_3", + "graph_4", + "graph_5", + "graph_6", + "graph_7", + "graph_8", + "graph_9" ], - "title": "PresentationWithSlidesV2" + "title": "PresentionThemeColors" + }, + "PresentionThemeData-Input": { + "properties": { + "colors": { "$ref": "#/components/schemas/PresentionThemeColors" }, + "fonts": { "$ref": "#/components/schemas/PresentionThemeFonts" } + }, + "type": "object", + "required": ["colors", "fonts"], + "title": "PresentionThemeData" + }, + "PresentionThemeData-Output": { + "properties": { + "colors": { "$ref": "#/components/schemas/PresentionThemeColors" }, + "fonts": { "$ref": "#/components/schemas/PresentionThemeFonts" } + }, + "type": "object", + "required": ["colors", "fonts"], + "title": "PresentionThemeData" + }, + "PresentionThemeFonts": { + "properties": { + "textFont": { "$ref": "#/components/schemas/PresentionThemeTextFont" } + }, + "type": "object", + "required": ["textFont"], + "title": "PresentionThemeFonts" + }, + "PresentionThemeTextFont": { + "properties": { + "name": { "type": "string", "title": "Name" }, + "url": { "type": "string", "title": "Url" } + }, + "type": "object", + "required": ["name", "url"], + "title": "PresentionThemeTextFont" }, "PriceItem": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "product_id": { - "type": "string", - "title": "Product Id" - }, - "product_name": { - "type": "string", - "title": "Product Name" - }, + "id": { "type": "string", "title": "Id" }, + "product_id": { "type": "string", "title": "Product Id" }, + "product_name": { "type": "string", "title": "Product Name" }, "unit_amount": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Unit Amount" }, - "currency": { - "type": "string", - "title": "Currency" - }, + "currency": { "type": "string", "title": "Currency" }, "interval": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Interval" }, "metadata": { @@ -16624,110 +12843,82 @@ }, "PurchaseCreditsRequest": { "properties": { - "amount": { - "type": "integer", - "title": "Amount" - }, - "success_url": { - "type": "string", - "title": "Success Url" - }, - "cancel_url": { - "type": "string", - "title": "Cancel Url" - } + "amount": { "type": "integer", "title": "Amount" }, + "success_url": { "type": "string", "title": "Success Url" }, + "cancel_url": { "type": "string", "title": "Cancel Url" } }, "type": "object", - "required": [ - "amount", - "success_url", - "cancel_url" - ], + "required": ["amount", "success_url", "cancel_url"], "title": "PurchaseCreditsRequest" }, - "QualitativeChart": { - "type": "string", - "enum": [ - "comparison", - "funnel", - "gantt_chart", - "infographics", - "journey_map", - "ladder_chart", - "matrix_chart", - "organization_chart", - "pyramid_chart", - "roadmap", - "sequence_diagram", - "stats_chart", - "steps", - "swot_chart", - "timeline" - ], - "title": "QualitativeChart" - }, "ReactivateSubscriptionResponse": { "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "message": { - "type": "string", - "title": "Message" - } + "success": { "type": "boolean", "title": "Success" }, + "message": { "type": "string", "title": "Message" } }, "type": "object", - "required": [ - "success", - "message" - ], + "required": ["success", "message"], "title": "ReactivateSubscriptionResponse" }, - "SaveLayoutsRequest": { + "SaveDesignReferenceData": { "properties": { - "layouts": { - "items": { - "$ref": "#/components/schemas/LayoutData" - }, - "type": "array", - "title": "Layouts" + "html": { "type": "string", "title": "Html" }, + "structure": { "type": "string", "title": "Structure" }, + "slide": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Slide" } }, "type": "object", - "required": [ - "layouts" - ], - "title": "SaveLayoutsRequest" + "required": ["html", "structure"], + "title": "SaveDesignReferenceData" }, - "SaveLayoutsResponse": { + "SaveDesignRequest": { "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "saved_count": { - "type": "integer", - "title": "Saved Count" + "design_id": { + "anyOf": [ + { "type": "string", "format": "uuid" }, + { "type": "null" } + ], + "title": "Design Id" }, - "message": { + "design_info_id": { "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], - "title": "Message" + "title": "Design Info Id" + }, + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" + }, + "references": { + "items": { "$ref": "#/components/schemas/SaveDesignReferenceData" }, + "type": "array", + "title": "References" } }, "type": "object", - "required": [ - "success", - "saved_count" - ], - "title": "SaveLayoutsResponse" + "required": ["references"], + "title": "SaveDesignRequest" + }, + "SaveDesignResponse": { + "properties": { + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + } + }, + "type": "object", + "required": ["id", "name", "created_at"], + "title": "SaveDesignResponse" }, "SaveSlideLayoutRequest": { "properties": { @@ -16736,44 +12927,21 @@ "format": "uuid", "title": "Template Id" }, - "layout_id": { - "type": "string", - "title": "Layout Id" - }, - "layout_code": { - "type": "string", - "title": "Layout Code" - } + "layout_id": { "type": "string", "title": "Layout Id" }, + "layout_code": { "type": "string", "title": "Layout Code" } }, "type": "object", - "required": [ - "template_id", - "layout_id", - "layout_code" - ], + "required": ["template_id", "layout_id", "layout_code"], "title": "SaveSlideLayoutRequest" }, "SaveTemplateLayoutData": { "properties": { - "layout_id": { - "type": "string", - "title": "Layout Id" - }, - "layout_name": { - "type": "string", - "title": "Layout Name" - }, - "layout_code": { - "type": "string", - "title": "Layout Code" - } + "layout_id": { "type": "string", "title": "Layout Id" }, + "layout_name": { "type": "string", "title": "Layout Name" }, + "layout_code": { "type": "string", "title": "Layout Code" } }, "type": "object", - "required": [ - "layout_id", - "layout_name", - "layout_code" - ], + "required": ["layout_id", "layout_name", "layout_code"], "title": "SaveTemplateLayoutData" }, "SaveTemplateRequest": { @@ -16783,57 +12951,27 @@ "format": "uuid", "title": "Template Info Id" }, - "name": { - "type": "string", - "title": "Name" - }, + "name": { "type": "string", "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" }, "layouts": { - "items": { - "$ref": "#/components/schemas/SaveTemplateLayoutData" - }, + "items": { "$ref": "#/components/schemas/SaveTemplateLayoutData" }, "type": "array", "title": "Layouts" } }, "type": "object", - "required": [ - "template_info_id", - "name", - "layouts" - ], + "required": ["template_info_id", "name", "layouts"], "title": "SaveTemplateRequest" }, "SaveTemplateResponse": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "name": { "type": "string", "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" }, "created_at": { @@ -16843,58 +12981,32 @@ } }, "type": "object", - "required": [ - "id", - "name", - "created_at" - ], + "required": ["id", "name", "created_at"], "title": "SaveTemplateResponse" }, "SegmentVariationsRequest": { "properties": { - "segment_code": { - "type": "string", - "title": "Segment Code" - } + "segment_code": { "type": "string", "title": "Segment Code" } }, "type": "object", - "required": [ - "segment_code" - ], + "required": ["segment_code"], "title": "SegmentVariationsRequest" }, "SlideContentLayout": { "properties": { - "content": { - "type": "string", - "title": "Content", - "description": "The content for the slide" - }, + "content": { "type": "string", "title": "Content" }, "layout": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Layout", - "description": "The layout for the slide" + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Layout" } }, "type": "object", - "required": [ - "content" - ], + "required": ["content"], "title": "SlideContentLayout" }, "SlideContentUpdate": { "properties": { - "index": { - "type": "integer", - "title": "Index" - }, + "index": { "type": "integer", "title": "Index" }, "content": { "additionalProperties": true, "type": "object", @@ -16902,60 +13014,12 @@ } }, "type": "object", - "required": [ - "index", - "content" - ], + "required": ["index", "content"], "title": "SlideContentUpdate" }, - "SlideData": { - "properties": { - "slide_number": { - "type": "integer", - "title": "Slide Number" - }, - "screenshot_url": { - "type": "string", - "title": "Screenshot Url" - }, - "xml_content": { - "type": "string", - "title": "Xml Content" - }, - "normalized_fonts": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Normalized Fonts" - }, - "markdown_content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Markdown Content" - } - }, - "type": "object", - "required": [ - "slide_number", - "screenshot_url", - "xml_content", - "normalized_fonts" - ], - "title": "SlideData" - }, "SlideExample": { "properties": { - "layout": { - "type": "string", - "title": "Layout" - }, + "layout": { "type": "string", "title": "Layout" }, "content": { "additionalProperties": true, "type": "object", @@ -16963,38 +13027,18 @@ } }, "type": "object", - "required": [ - "layout", - "content" - ], + "required": ["layout", "content"], "title": "SlideExample" }, - "SlideLayoutModel": { - "properties": { - "id": { - "type": "string", - "title": "Id" - }, + "SlideLayoutModel": { + "properties": { + "id": { "type": "string", "title": "Id" }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" }, "json_schema": { @@ -17004,72 +13048,37 @@ } }, "type": "object", - "required": [ - "id", - "json_schema" - ], + "required": ["id", "json_schema"], "title": "SlideLayoutModel" }, "SlideModel": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "presentation": { "type": "string", "format": "uuid", "title": "Presentation" }, - "layout_group": { - "type": "string", - "title": "Layout Group" - }, - "layout": { - "type": "string", - "title": "Layout" - }, - "index": { - "type": "integer", - "title": "Index" - }, + "layout_group": { "type": "string", "title": "Layout Group" }, + "layout": { "type": "string", "title": "Layout" }, + "index": { "type": "integer", "title": "Index" }, "content": { "additionalProperties": true, "type": "object", "title": "Content" }, "html_content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Html Content" }, "speaker_note": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Speaker Note" }, "properties": { "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Properties" } @@ -17088,134 +13097,16 @@ }, "SlideOutlineModel": { "properties": { - "content": { - "type": "string", - "title": "Content" + "content": { "type": "string", "title": "Content" }, + "layout": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Layout" } }, "type": "object", - "required": [ - "content" - ], + "required": ["content"], "title": "SlideOutlineModel" }, - "SlideToHtmlRequest": { - "properties": { - "image": { - "type": "string", - "title": "Image" - }, - "xml": { - "type": "string", - "title": "Xml" - }, - "fonts": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Fonts" - } - }, - "type": "object", - "required": [ - "image", - "xml" - ], - "title": "SlideToHtmlRequest" - }, - "SlideToHtmlResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "html": { - "type": "string", - "title": "Html" - } - }, - "type": "object", - "required": [ - "success", - "html" - ], - "title": "SlideToHtmlResponse" - }, - "SlideToReactRequest": { - "properties": { - "image": { - "type": "string", - "title": "Image" - }, - "markdown_content": { - "type": "string", - "title": "Markdown Content" - }, - "design_system": { - "additionalProperties": true, - "type": "object", - "title": "Design System" - }, - "fonts": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Fonts" - } - }, - "type": "object", - "required": [ - "image", - "markdown_content", - "design_system" - ], - "title": "SlideToReactRequest" - }, - "SlideToReactResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "react_component": { - "type": "string", - "title": "React Component" - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - } - }, - "type": "object", - "required": [ - "success", - "react_component" - ], - "title": "SlideToReactResponse" - }, "SubscribeToWebhookRequestV1": { "properties": { "url": { @@ -17224,14 +13115,7 @@ "description": "The URL to send the webhook to" }, "secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Secret", "description": "The secret to use for the webhook" }, @@ -17241,25 +13125,14 @@ } }, "type": "object", - "required": [ - "url", - "event" - ], + "required": ["url", "event"], "title": "SubscribeToWebhookRequestV1" }, "SubscribeToWebhookResponseV1": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "url": { - "type": "string", - "title": "Url" - }, - "event": { - "$ref": "#/components/schemas/WebhookEvent" - }, + "id": { "type": "string", "title": "Id" }, + "url": { "type": "string", "title": "Url" }, + "event": { "$ref": "#/components/schemas/WebhookEvent" }, "created_at": { "type": "string", "format": "date-time", @@ -17267,38 +13140,23 @@ } }, "type": "object", - "required": [ - "id", - "url", - "event", - "created_at" - ], + "required": ["id", "url", "event", "created_at"], "title": "SubscribeToWebhookResponseV1" }, "Subscription": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" }, - "stripe_customer": { - "type": "string", - "title": "Stripe Customer" - }, + "stripe_customer": { "type": "string", "title": "Stripe Customer" }, "stripe_subscription_id": { "type": "string", "title": "Stripe Subscription Id" }, - "status": { - "type": "string", - "title": "Status" - }, + "status": { "type": "string", "title": "Status" }, "created_at": { "type": "string", "format": "date-time", @@ -17311,25 +13169,15 @@ }, "canceled_at": { "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } + { "type": "string", "format": "date-time" }, + { "type": "null" } ], "title": "Canceled At" }, "cancel_at": { "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } + { "type": "string", "format": "date-time" }, + { "type": "null" } ], "title": "Cancel At" }, @@ -17337,30 +13185,12 @@ "type": "boolean", "title": "Cancel At Period End" }, - "amount": { - "type": "number", - "title": "Amount" - }, - "currency": { - "type": "string", - "title": "Currency" - }, - "price_id": { - "type": "string", - "title": "Price Id" - }, - "product_id": { - "type": "string", - "title": "Product Id" - }, - "product_name": { - "type": "string", - "title": "Product Name" - }, - "item_id": { - "type": "string", - "title": "Item Id" - } + "amount": { "type": "number", "title": "Amount" }, + "currency": { "type": "string", "title": "Currency" }, + "price_id": { "type": "string", "title": "Price Id" }, + "product_id": { "type": "string", "title": "Product Id" }, + "product_name": { "type": "string", "title": "Product Name" }, + "item_id": { "type": "string", "title": "Item Id" } }, "type": "object", "required": [ @@ -17370,132 +13200,29 @@ "status", "created_at", "ending_at", - "cancel_at_period_end", - "amount", - "currency", - "price_id", - "product_id", - "product_name", - "item_id" - ], - "title": "Subscription" - }, - "TemplateCreateRequest": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Description" - }, - "design_system": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Design System" - }, - "design_sysetm": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Design Sysetm" - } - }, - "type": "object", - "required": [ - "id", - "name" - ], - "title": "TemplateCreateRequest" - }, - "TemplateCreateResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "template": { - "additionalProperties": true, - "type": "object", - "title": "Template" - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - } - }, - "type": "object", - "required": [ - "success", - "template" + "cancel_at_period_end", + "amount", + "currency", + "price_id", + "product_id", + "product_name", + "item_id" ], - "title": "TemplateCreateResponse" + "title": "Subscription" }, "TemplateData": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "init_id": { "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } + { "type": "string", "format": "uuid" }, + { "type": "null" } ], "title": "Init Id" }, - "name": { - "type": "string", - "title": "Name" - }, + "name": { "type": "string", "title": "Name" }, "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Description" }, "created_at": { @@ -17505,61 +13232,33 @@ } }, "type": "object", - "required": [ - "id", - "name", - "created_at" - ], + "required": ["id", "name", "created_at"], "title": "TemplateData" }, "TemplateDetail": { "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, + "id": { "type": "string", "title": "Id" }, + "name": { "type": "string", "title": "Name" }, "total_layouts": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Total Layouts" } }, "type": "object", - "required": [ - "id", - "name" - ], + "required": ["id", "name"], "title": "TemplateDetail" }, "TemplateExample": { "properties": { - "template": { - "type": "string", - "title": "Template" - }, + "template": { "type": "string", "title": "Template" }, "slides": { - "items": { - "$ref": "#/components/schemas/SlideExample" - }, + "items": { "$ref": "#/components/schemas/SlideExample" }, "type": "array", "title": "Slides" } }, "type": "object", - "required": [ - "template", - "slides" - ], + "required": ["template", "slides"], "title": "TemplateExample" }, "TemplateExampleV3": { @@ -17569,18 +13268,13 @@ "title": "Standard Template" }, "slides": { - "items": { - "$ref": "#/components/schemas/SlideExample" - }, + "items": { "$ref": "#/components/schemas/SlideExample" }, "type": "array", "title": "Slides" } }, "type": "object", - "required": [ - "standard_template", - "slides" - ], + "required": ["standard_template", "slides"], "title": "TemplateExampleV3" }, "TemplateLayoutData": { @@ -17590,112 +13284,40 @@ "format": "uuid", "title": "Template" }, - "layout_id": { - "type": "string", - "title": "Layout Id" - }, - "layout_name": { - "type": "string", - "title": "Layout Name" - }, - "layout_code": { - "type": "string", - "title": "Layout Code" - }, + "layout_id": { "type": "string", "title": "Layout Id" }, + "layout_name": { "type": "string", "title": "Layout Name" }, + "layout_code": { "type": "string", "title": "Layout Code" }, "fonts": { "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } + { "items": { "type": "string" }, "type": "array" }, + { "additionalProperties": true, "type": "object" }, + { "type": "null" } ], "title": "Fonts" } }, "type": "object", - "required": [ - "template", - "layout_id", - "layout_name", - "layout_code" - ], + "required": ["template", "layout_id", "layout_name", "layout_code"], "title": "TemplateLayoutData" }, "ThemeData": { "properties": { - "primary": { - "type": "string", - "title": "Primary" - }, - "background": { - "type": "string", - "title": "Background" - }, - "card": { - "type": "string", - "title": "Card" - }, - "stroke": { - "type": "string", - "title": "Stroke" - }, - "primary_text": { - "type": "string", - "title": "Primary Text" - }, - "background_text": { - "type": "string", - "title": "Background Text" - }, - "graph_0": { - "type": "string", - "title": "Graph 0" - }, - "graph_1": { - "type": "string", - "title": "Graph 1" - }, - "graph_2": { - "type": "string", - "title": "Graph 2" - }, - "graph_3": { - "type": "string", - "title": "Graph 3" - }, - "graph_4": { - "type": "string", - "title": "Graph 4" - }, - "graph_5": { - "type": "string", - "title": "Graph 5" - }, - "graph_6": { - "type": "string", - "title": "Graph 6" - }, - "graph_7": { - "type": "string", - "title": "Graph 7" - }, - "graph_8": { - "type": "string", - "title": "Graph 8" - }, - "graph_9": { - "type": "string", - "title": "Graph 9" - } + "primary": { "type": "string", "title": "Primary" }, + "background": { "type": "string", "title": "Background" }, + "card": { "type": "string", "title": "Card" }, + "stroke": { "type": "string", "title": "Stroke" }, + "primary_text": { "type": "string", "title": "Primary Text" }, + "background_text": { "type": "string", "title": "Background Text" }, + "graph_0": { "type": "string", "title": "Graph 0" }, + "graph_1": { "type": "string", "title": "Graph 1" }, + "graph_2": { "type": "string", "title": "Graph 2" }, + "graph_3": { "type": "string", "title": "Graph 3" }, + "graph_4": { "type": "string", "title": "Graph 4" }, + "graph_5": { "type": "string", "title": "Graph 5" }, + "graph_6": { "type": "string", "title": "Graph 6" }, + "graph_7": { "type": "string", "title": "Graph 7" }, + "graph_8": { "type": "string", "title": "Graph 8" }, + "graph_9": { "type": "string", "title": "Graph 9" } }, "type": "object", "required": [ @@ -17732,119 +13354,63 @@ }, "TopupInfo": { "properties": { - "enabled": { - "type": "boolean", - "title": "Enabled" - }, + "enabled": { "type": "boolean", "title": "Enabled" }, "amount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Amount" }, "threshold": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "number" }, { "type": "null" }], "title": "Threshold" } }, "additionalProperties": true, "type": "object", - "required": [ - "enabled" - ], + "required": ["enabled"], "title": "TopupInfo" }, "UpdatePresentationRequestV2": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "n_slides": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "N Slides" }, "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Title" }, "slides": { "anyOf": [ { - "items": { - "$ref": "#/components/schemas/HTMLSlideV2" - }, + "items": { "$ref": "#/components/schemas/HTMLSlideV2" }, "type": "array" }, - { - "type": "null" - } + { "type": "null" } ], "title": "Slides" } }, "type": "object", - "required": [ - "id" - ], + "required": ["id"], "title": "UpdatePresentationRequestV2" }, "UpdateTemplateRequest": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, "layouts": { - "items": { - "$ref": "#/components/schemas/SaveTemplateLayoutData" - }, + "items": { "$ref": "#/components/schemas/SaveTemplateLayoutData" }, "type": "array", "title": "Layouts" } }, "type": "object", - "required": [ - "id", - "layouts" - ], + "required": ["id", "layouts"], "title": "UpdateTemplateRequest" }, "UserCreate": { "properties": { - "email": { - "type": "string", - "format": "email", - "title": "Email" - }, + "email": { "type": "string", "format": "email", "title": "Email" }, "password": { "type": "string", "maxLength": 128, @@ -17852,138 +13418,57 @@ "title": "Password" }, "is_active": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "boolean" }, { "type": "null" }], "title": "Is Active", "default": true }, "is_superuser": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "boolean" }, { "type": "null" }], "title": "Is Superuser", "default": false }, "is_verified": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "boolean" }, { "type": "null" }], "title": "Is Verified", "default": false }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" }, "enterprise": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Enterprise" } }, "type": "object", - "required": [ - "email", - "password" - ], + "required": ["email", "password"], "title": "UserCreate" }, "UserRead": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "email": { - "type": "string", - "title": "Email" - }, - "is_active": { - "type": "boolean", - "title": "Is Active" - }, - "is_verified": { - "type": "boolean", - "title": "Is Verified" - }, - "is_onboarded": { - "type": "boolean", - "title": "Is Onboarded" - }, + "id": { "type": "string", "format": "uuid", "title": "Id" }, + "email": { "type": "string", "title": "Email" }, + "is_active": { "type": "boolean", "title": "Is Active" }, + "is_verified": { "type": "boolean", "title": "Is Verified" }, + "is_onboarded": { "type": "boolean", "title": "Is Onboarded" }, "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" }, "profile_picture": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Profile Picture" } }, "type": "object", - "required": [ - "id", - "email", - "is_active", - "is_verified", - "is_onboarded" - ], + "required": ["id", "email", "is_active", "is_verified", "is_onboarded"], "title": "UserRead" }, "UserUpdate": { "properties": { "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Name" } }, @@ -17993,59 +13478,34 @@ "ValidationError": { "properties": { "loc": { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ] - }, + "items": { "anyOf": [{ "type": "string" }, { "type": "integer" }] }, "type": "array", "title": "Location" }, - "msg": { - "type": "string", - "title": "Message" - }, - "type": { - "type": "string", - "title": "Error Type" - } + "msg": { "type": "string", "title": "Message" }, + "type": { "type": "string", "title": "Error Type" }, + "input": { "title": "Input" }, + "ctx": { "type": "object", "title": "Context" } }, "type": "object", - "required": [ - "loc", - "msg", - "type" - ], + "required": ["loc", "msg", "type"], "title": "ValidationError" }, "VariationsResponse": { "properties": { "variations": { - "items": { - "type": "string" - }, + "items": { "type": "string" }, "type": "array", "title": "Variations" } }, "type": "object", - "required": [ - "variations" - ], + "required": ["variations"], "title": "VariationsResponse" }, "Verbosity": { "type": "string", - "enum": [ - "concise", - "standard", - "text-heavy" - ], + "enum": ["concise", "standard", "text-heavy"], "title": "Verbosity" }, "WebhookEvent": { @@ -18061,12 +13521,9 @@ "OAuth2PasswordBearer": { "type": "oauth2", "flows": { - "password": { - "scopes": {}, - "tokenUrl": "api/v1/auth/jwt/login" - } + "password": { "scopes": {}, "tokenUrl": "api/v1/auth/jwt/login" } } } } } -} \ No newline at end of file +}