diff --git a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.HealthHealthGet.g.cs b/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.HealthHealthGet.g.cs deleted file mode 100644 index 23a9dfd..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.HealthHealthGet.g.cs +++ /dev/null @@ -1,415 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - public partial class ExcludedClient - { - - - private static readonly global::Nixtla.EndPointSecurityRequirement s_HealthHealthGetSecurityRequirement0 = - new global::Nixtla.EndPointSecurityRequirement - { - Authorizations = new global::Nixtla.EndPointAuthorizationRequirement[] - { new global::Nixtla.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HTTPBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Nixtla.EndPointSecurityRequirement[] s_HealthHealthGetSecurityRequirements = - new global::Nixtla.EndPointSecurityRequirement[] - { s_HealthHealthGetSecurityRequirement0, - }; - partial void PrepareHealthHealthGetArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareHealthHealthGetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessHealthHealthGetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessHealthHealthGetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Health
- /// Check if server is healthy.
- /// Used by the readiness probe to check server is healthy. - ///
- /// 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 HealthHealthGetAsync( - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await HealthHealthGetAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Health
- /// Check if server is healthy.
- /// Used by the readiness probe to check server is healthy. - ///
- /// 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> HealthHealthGetAsResponseAsync( - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareHealthHealthGetArguments( - httpClient: HttpClient); - - - var __authorizations = global::Nixtla.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_HealthHealthGetSecurityRequirements, - operationName: "HealthHealthGetAsync"); - - using var __timeoutCancellationTokenSource = global::Nixtla.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Nixtla.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Nixtla.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Nixtla.PathBuilder( - path: "/health", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Nixtla.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::Nixtla.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareHealthHealthGetRequest( - 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::Nixtla.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "HealthHealthGet", - methodName: "HealthHealthGetAsync", - pathTemplate: "\"/health\"", - 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::Nixtla.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Nixtla.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "HealthHealthGet", - methodName: "HealthHealthGetAsync", - pathTemplate: "\"/health\"", - 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::Nixtla.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Nixtla.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Nixtla.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Nixtla.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "HealthHealthGet", - methodName: "HealthHealthGetAsync", - pathTemplate: "\"/health\"", - 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::Nixtla.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); - ProcessHealthHealthGetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Nixtla.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "HealthHealthGet", - methodName: "HealthHealthGetAsync", - pathTemplate: "\"/health\"", - 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::Nixtla.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "HealthHealthGet", - methodName: "HealthHealthGetAsync", - pathTemplate: "\"/health\"", - 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 (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessHealthHealthGetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Nixtla.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Nixtla.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - throw global::Nixtla.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::Nixtla.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Nixtla.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::Nixtla.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/Nixtla/Generated/Nixtla.ExcludedClient.ModelParams.g.cs b/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.ModelParams.g.cs deleted file mode 100644 index 2ef8424..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.ModelParams.g.cs +++ /dev/null @@ -1,541 +0,0 @@ - -#nullable enable - -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Nixtla -{ - public partial class ExcludedClient - { - - - private static readonly global::Nixtla.EndPointSecurityRequirement s_ModelParamsSecurityRequirement0 = - new global::Nixtla.EndPointSecurityRequirement - { - Authorizations = new global::Nixtla.EndPointAuthorizationRequirement[] - { new global::Nixtla.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HTTPBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Nixtla.EndPointSecurityRequirement[] s_ModelParamsSecurityRequirements = - new global::Nixtla.EndPointSecurityRequirement[] - { s_ModelParamsSecurityRequirement0, - }; - partial void PrepareModelParamsArguments( - global::System.Net.Http.HttpClient httpClient, - global::Nixtla.SingleSeriesForecast request); - partial void PrepareModelParamsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Nixtla.SingleSeriesForecast request); - partial void ProcessModelParamsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessModelParamsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Model Params - /// - /// - /// 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 ModelParamsAsync( - - global::Nixtla.SingleSeriesForecast request, - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ModelParamsAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Model Params - /// - /// - /// 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> ModelParamsAsResponseAsync( - - global::Nixtla.SingleSeriesForecast request, - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareModelParamsArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Nixtla.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ModelParamsSecurityRequirements, - operationName: "ModelParamsAsync"); - - using var __timeoutCancellationTokenSource = global::Nixtla.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Nixtla.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Nixtla.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Nixtla.PathBuilder( - path: "/model_params", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Nixtla.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::Nixtla.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareModelParamsRequest( - 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::Nixtla.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ModelParams", - methodName: "ModelParamsAsync", - pathTemplate: "\"/model_params\"", - 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::Nixtla.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Nixtla.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ModelParams", - methodName: "ModelParamsAsync", - pathTemplate: "\"/model_params\"", - 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::Nixtla.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Nixtla.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Nixtla.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Nixtla.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ModelParams", - methodName: "ModelParamsAsync", - pathTemplate: "\"/model_params\"", - 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::Nixtla.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); - ProcessModelParamsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Nixtla.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ModelParams", - methodName: "ModelParamsAsync", - pathTemplate: "\"/model_params\"", - 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::Nixtla.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Nixtla.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ModelParams", - methodName: "ModelParamsAsync", - pathTemplate: "\"/model_params\"", - 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::Nixtla.HTTPValidationError? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Nixtla.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::Nixtla.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::Nixtla.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); - ProcessModelParamsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Nixtla.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Nixtla.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - throw global::Nixtla.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::Nixtla.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Nixtla.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::Nixtla.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(); - } - } - /// - /// Model Params - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - /// - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - /// - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - /// - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - /// - /// 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 ModelParamsAsync( - object? model = default, - string? freq = default, - global::System.Collections.Generic.IList>? level = default, - int? fh = default, - object? y = default, - global::System.Collections.Generic.Dictionary>? x = default, - bool? cleanExFirst = default, - int? finetuneSteps = default, - global::Nixtla.SingleSeriesForecastFinetuneLoss? finetuneLoss = default, - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Nixtla.SingleSeriesForecast - { - Model = model, - Freq = freq, - Level = level, - Fh = fh, - Y = y, - X = x, - CleanExFirst = cleanExFirst, - FinetuneSteps = finetuneSteps, - FinetuneLoss = finetuneLoss, - }; - - return await ModelParamsAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.g.cs b/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.g.cs deleted file mode 100644 index c607d55..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.g.cs +++ /dev/null @@ -1,136 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// 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 ExcludedClient : global::Nixtla.IExcludedClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://api.nixtla.io/"; - - 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::Nixtla.AutoSDKClientOptions Options { get; } - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Nixtla.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the ExcludedClient. - /// 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 ExcludedClient( - 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 ExcludedClient 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 ExcludedClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Nixtla.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the ExcludedClient. - /// 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 ExcludedClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Nixtla.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::Nixtla.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/Nixtla/Generated/Nixtla.IExcludedClient.HealthHealthGet.g.cs b/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.HealthHealthGet.g.cs deleted file mode 100644 index 2fd0fd0..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.HealthHealthGet.g.cs +++ /dev/null @@ -1,30 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public partial interface IExcludedClient - { - /// - /// Health
- /// Check if server is healthy.
- /// Used by the readiness probe to check server is healthy. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task HealthHealthGetAsync( - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Health
- /// Check if server is healthy.
- /// Used by the readiness probe to check server is healthy. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> HealthHealthGetAsResponseAsync( - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.ModelParams.g.cs b/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.ModelParams.g.cs deleted file mode 100644 index e06c3f2..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.ModelParams.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -#nullable enable - -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Nixtla -{ - public partial interface IExcludedClient - { - /// - /// Model Params - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ModelParamsAsync( - - global::Nixtla.SingleSeriesForecast request, - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Model Params - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> ModelParamsAsResponseAsync( - - global::Nixtla.SingleSeriesForecast request, - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Model Params - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - /// - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - /// - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - /// - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task ModelParamsAsync( - object? model = default, - string? freq = default, - global::System.Collections.Generic.IList>? level = default, - int? fh = default, - object? y = default, - global::System.Collections.Generic.Dictionary>? x = default, - bool? cleanExFirst = default, - int? finetuneSteps = default, - global::Nixtla.SingleSeriesForecastFinetuneLoss? finetuneLoss = default, - global::Nixtla.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.g.cs b/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.g.cs deleted file mode 100644 index 53282cf..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// 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 IExcludedClient : 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::Nixtla.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.GetModelParamsModelParamsGet.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.GetModelParamsModelParamsGet.g.cs similarity index 94% rename from src/libs/Nixtla/Generated/Nixtla.IExcludedClient.GetModelParamsModelParamsGet.g.cs rename to src/libs/Nixtla/Generated/Nixtla.INixtlaClient.GetModelParamsModelParamsGet.g.cs index 130a950..c634ff6 100644 --- a/src/libs/Nixtla/Generated/Nixtla.IExcludedClient.GetModelParamsModelParamsGet.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.GetModelParamsModelParamsGet.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public partial interface IExcludedClient + public partial interface INixtlaClient { /// /// Get Model Params @@ -13,7 +13,7 @@ public partial interface IExcludedClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task GetModelParamsModelParamsGetAsync( - object model, + string model, string freq, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -26,7 +26,7 @@ public partial interface IExcludedClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> GetModelParamsModelParamsGetAsResponseAsync( - object model, + string model, string freq, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2AnomalyDetection.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2AnomalyDetection.g.cs index 5d857e5..cee4e2c 100644 --- a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2AnomalyDetection.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2AnomalyDetection.g.cs @@ -6,7 +6,7 @@ public partial interface INixtlaClient { /// /// Foundational Time Series Model Multi Series Anomaly Detector
- /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Multi Series Anomaly Detector
- /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Multi Series Anomaly Detector
- /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -49,20 +49,38 @@ public partial interface INixtlaClient /// /// ID of previously finetuned model /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// /// /// Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.
/// Default Value: 99 /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// 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 V2AnomalyDetectionAsync( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - object? model = default, + string? model = default, bool? cleanExFirst = default, string? finetunedModelId = default, + bool? multivariate = default, + object? modelParameters = default, + global::System.Collections.Generic.IList? histExog = default, global::Nixtla.AnyOf? level = default, + bool? featureContributions = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2CrossValidation.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2CrossValidation.g.cs index fe73584..3bd6672 100644 --- a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2CrossValidation.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2CrossValidation.g.cs @@ -39,11 +39,16 @@ public partial interface INixtlaClient /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. /// /// - /// Number of windows to evaluate. + /// Number of windows to evaluate.
+ /// Default Value: 1 /// /// /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict. /// + /// + /// Forecast across the entire series history (the `add_history` use case). The horizon and number of windows are derived server-side (any supplied `h` / `n_windows` are ignored), and the exogenous model is refit a bounded number of times to keep whole-history requests fast. Has no effect without exogenous features.
+ /// Default Value: false + /// /// /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
/// Default Value: timegpt-1 @@ -60,11 +65,11 @@ public partial interface INixtlaClient /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -80,15 +85,27 @@ public partial interface INixtlaClient /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
/// Default Value: true /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// 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 V2CrossValidationAsync( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - int nWindows, int h, - object? model = default, + int? nWindows = default, + bool? fullHistory = default, + string? model = default, bool? cleanExFirst = default, global::System.Collections.Generic.IList>? level = default, int? finetuneSteps = default, @@ -98,6 +115,9 @@ public partial interface INixtlaClient int? stepSize = default, global::System.Collections.Generic.IList? histExog = default, bool? refit = default, + bool? multivariate = default, + object? modelParameters = default, + bool? featureContributions = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Finetune.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Finetune.g.cs index a58216d..88445f0 100644 --- a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Finetune.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Finetune.g.cs @@ -6,7 +6,7 @@ public partial interface INixtlaClient { /// /// Foundational Time Series Model Multi Series Finetuning
- /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Multi Series Finetuning
- /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Multi Series Finetuning
- /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -47,11 +47,11 @@ public partial interface INixtlaClient /// Default Value: 10 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -60,18 +60,31 @@ public partial interface INixtlaClient /// /// ID of previously finetuned model /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V2FinetuneAsync( - global::Nixtla.Series series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - object? model = default, + string? model = default, int? finetuneSteps = default, global::Nixtla.FinetuneInputFinetuneLoss? finetuneLoss = default, int? finetuneDepth = default, string? outputModelId = default, string? finetunedModelId = default, + global::System.Collections.Generic.IList? histExog = default, + bool? multivariate = default, + object? modelParameters = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Forecast.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Forecast.g.cs index 1f0efd8..f5cef1b 100644 --- a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Forecast.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2Forecast.g.cs @@ -6,7 +6,7 @@ public partial interface INixtlaClient { /// /// Foundational Time Series Model Multi Series
- /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Multi Series
- /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Multi Series
- /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -57,11 +57,11 @@ public partial interface INixtlaClient /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -71,6 +71,13 @@ public partial interface INixtlaClient /// Compute the exogenous features contributions to the forecast.
/// Default Value: false /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -78,7 +85,7 @@ public partial interface INixtlaClient global::Nixtla.SeriesWithFutureExogenous series, string freq, int h, - object? model = default, + string? model = default, bool? cleanExFirst = default, global::System.Collections.Generic.IList>? level = default, int? finetuneSteps = default, @@ -86,6 +93,8 @@ public partial interface INixtlaClient int? finetuneDepth = default, string? finetunedModelId = default, bool? featureContributions = default, + bool? multivariate = default, + object? modelParameters = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2OnlineAnomalyDetection.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2OnlineAnomalyDetection.g.cs index 9ca60b3..a694c6f 100644 --- a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2OnlineAnomalyDetection.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.V2OnlineAnomalyDetection.g.cs @@ -6,7 +6,7 @@ public partial interface INixtlaClient { /// /// Foundational Time Series Model Online Multi Series Anomaly Detector
- /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Online Multi Series Anomaly Detector
- /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface INixtlaClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Foundational Time Series Model Online Multi Series Anomaly Detector
- /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -65,11 +65,11 @@ public partial interface INixtlaClient /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -78,16 +78,34 @@ public partial interface INixtlaClient /// /// Step size between each cross validation window. If None it will be equal to the forecasting horizon. /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + /// + /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
+ /// Default Value: true + /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// 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 V2OnlineAnomalyDetectionAsync( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, int detectionSize, int h, global::Nixtla.OnlineAnomalyInputThresholdMethod? thresholdMethod = default, - object? model = default, + string? model = default, bool? cleanExFirst = default, global::Nixtla.AnyOf? level = default, int? finetuneSteps = default, @@ -95,6 +113,11 @@ public partial interface INixtlaClient int? finetuneDepth = default, string? finetunedModelId = default, int? stepSize = default, + global::System.Collections.Generic.IList? histExog = default, + bool? refit = default, + bool? multivariate = default, + object? modelParameters = default, + bool? featureContributions = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.g.cs b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.g.cs index deee6e2..acefb3c 100644 --- a/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.INixtlaClient.g.cs @@ -45,10 +45,5 @@ public partial interface INixtlaClient : global::System.IDisposable global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - /// - /// - /// - public ExcludedClient Excluded { get; } - } } \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2.g.cs deleted file mode 100644 index 14dd6cf..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesCrossValidationFewshotLoss2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesCrossValidationFewshotLoss2 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::Nixtla.MultiSeriesCrossValidationFewshotLoss2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesCrossValidationFewshotLoss2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesCrossValidationFewshotLoss2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesCrossValidationFewshotLoss2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Nixtla.MultiSeriesCrossValidationFewshotLoss2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2Nullable.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2Nullable.g.cs deleted file mode 100644 index 6e89ec9..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesCrossValidationFewshotLoss2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesCrossValidationFewshotLoss2? 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::Nixtla.MultiSeriesCrossValidationFewshotLoss2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesCrossValidationFewshotLoss2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesCrossValidationFewshotLoss2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesCrossValidationFewshotLoss2? 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::Nixtla.MultiSeriesCrossValidationFewshotLoss2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLoss.g.cs deleted file mode 100644 index 93168c1..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLoss.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesCrossValidationFinetuneLossJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesCrossValidationFinetuneLoss 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::Nixtla.MultiSeriesCrossValidationFinetuneLossExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesCrossValidationFinetuneLoss)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesCrossValidationFinetuneLoss); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesCrossValidationFinetuneLoss value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Nixtla.MultiSeriesCrossValidationFinetuneLossExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLossNullable.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLossNullable.g.cs deleted file mode 100644 index 5cc77e9..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLossNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesCrossValidationFinetuneLossNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesCrossValidationFinetuneLoss? 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::Nixtla.MultiSeriesCrossValidationFinetuneLossExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesCrossValidationFinetuneLoss)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesCrossValidationFinetuneLoss?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesCrossValidationFinetuneLoss? 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::Nixtla.MultiSeriesCrossValidationFinetuneLossExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2.g.cs deleted file mode 100644 index dd65eeb..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesForecastFewshotLoss2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesForecastFewshotLoss2 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::Nixtla.MultiSeriesForecastFewshotLoss2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesForecastFewshotLoss2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesForecastFewshotLoss2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesForecastFewshotLoss2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Nixtla.MultiSeriesForecastFewshotLoss2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2Nullable.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2Nullable.g.cs deleted file mode 100644 index c295b78..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesForecastFewshotLoss2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesForecastFewshotLoss2? 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::Nixtla.MultiSeriesForecastFewshotLoss2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesForecastFewshotLoss2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesForecastFewshotLoss2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesForecastFewshotLoss2? 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::Nixtla.MultiSeriesForecastFewshotLoss2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFinetuneLoss.g.cs deleted file mode 100644 index 2efcd81..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFinetuneLoss.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesForecastFinetuneLossJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesForecastFinetuneLoss 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::Nixtla.MultiSeriesForecastFinetuneLossExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesForecastFinetuneLoss)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesForecastFinetuneLoss); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesForecastFinetuneLoss value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Nixtla.MultiSeriesForecastFinetuneLossExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFinetuneLossNullable.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFinetuneLossNullable.g.cs deleted file mode 100644 index ee64230..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.MultiSeriesForecastFinetuneLossNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class MultiSeriesForecastFinetuneLossNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.MultiSeriesForecastFinetuneLoss? 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::Nixtla.MultiSeriesForecastFinetuneLossExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.MultiSeriesForecastFinetuneLoss)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.MultiSeriesForecastFinetuneLoss?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.MultiSeriesForecastFinetuneLoss? 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::Nixtla.MultiSeriesForecastFinetuneLossExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2.g.cs deleted file mode 100644 index e99ced1..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class SingleSeriesForecastFewshotLoss2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.SingleSeriesForecastFewshotLoss2 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::Nixtla.SingleSeriesForecastFewshotLoss2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.SingleSeriesForecastFewshotLoss2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.SingleSeriesForecastFewshotLoss2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.SingleSeriesForecastFewshotLoss2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Nixtla.SingleSeriesForecastFewshotLoss2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2Nullable.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2Nullable.g.cs deleted file mode 100644 index b2e1c67..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class SingleSeriesForecastFewshotLoss2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.SingleSeriesForecastFewshotLoss2? 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::Nixtla.SingleSeriesForecastFewshotLoss2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.SingleSeriesForecastFewshotLoss2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.SingleSeriesForecastFewshotLoss2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.SingleSeriesForecastFewshotLoss2? 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::Nixtla.SingleSeriesForecastFewshotLoss2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFinetuneLoss.g.cs deleted file mode 100644 index 8b27202..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFinetuneLoss.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class SingleSeriesForecastFinetuneLossJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.SingleSeriesForecastFinetuneLoss 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::Nixtla.SingleSeriesForecastFinetuneLossExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.SingleSeriesForecastFinetuneLoss)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.SingleSeriesForecastFinetuneLoss); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.SingleSeriesForecastFinetuneLoss value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Nixtla.SingleSeriesForecastFinetuneLossExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFinetuneLossNullable.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFinetuneLossNullable.g.cs deleted file mode 100644 index 5946f4a..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.JsonConverters.SingleSeriesForecastFinetuneLossNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Nixtla.JsonConverters -{ - /// - public sealed class SingleSeriesForecastFinetuneLossNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Nixtla.SingleSeriesForecastFinetuneLoss? 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::Nixtla.SingleSeriesForecastFinetuneLossExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Nixtla.SingleSeriesForecastFinetuneLoss)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Nixtla.SingleSeriesForecastFinetuneLoss?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Nixtla.SingleSeriesForecastFinetuneLoss? 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::Nixtla.SingleSeriesForecastFinetuneLossExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContext.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContext.g.cs index 9b6b390..0df174b 100644 --- a/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContext.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContext.g.cs @@ -29,22 +29,6 @@ namespace Nixtla typeof(global::Nixtla.JsonConverters.ForecastInputFinetuneLossNullableJsonConverter), - typeof(global::Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2JsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesCrossValidationFewshotLoss2NullableJsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLossJsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLossNullableJsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2JsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesForecastFewshotLoss2NullableJsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesForecastFinetuneLossJsonConverter), - - typeof(global::Nixtla.JsonConverters.MultiSeriesForecastFinetuneLossNullableJsonConverter), - typeof(global::Nixtla.JsonConverters.OnlineAnomalyInputThresholdMethodJsonConverter), typeof(global::Nixtla.JsonConverters.OnlineAnomalyInputThresholdMethodNullableJsonConverter), @@ -53,18 +37,6 @@ namespace Nixtla typeof(global::Nixtla.JsonConverters.OnlineAnomalyInputFinetuneLossNullableJsonConverter), - typeof(global::Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2JsonConverter), - - typeof(global::Nixtla.JsonConverters.SingleSeriesForecastFewshotLoss2NullableJsonConverter), - - typeof(global::Nixtla.JsonConverters.SingleSeriesForecastFinetuneLossJsonConverter), - - typeof(global::Nixtla.JsonConverters.SingleSeriesForecastFinetuneLossNullableJsonConverter), - - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), - - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), @@ -73,13 +45,9 @@ namespace Nixtla typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), - - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), - - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), + typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), - typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), + typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter), @@ -87,16 +55,16 @@ namespace Nixtla })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.AnomalyDetectionInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SeriesWithExogenous))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SeriesWithFutureExogenous))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.AnyOf), TypeInfoPropertyName = "AnyOfInt32Double2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.AnyOf), TypeInfoPropertyName = "AnyOfInt32Double2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.AnomalyDetectionOutput))] [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.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -105,7 +73,6 @@ namespace Nixtla [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.CrossValidationInputFinetuneLoss), TypeInfoPropertyName = "CrossValidationInputFinetuneLoss2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.CrossValidationOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.FinetuneInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.Series))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.FinetuneInputFinetuneLoss), TypeInfoPropertyName = "FinetuneInputFinetuneLoss2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.FinetuneOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.FinetunedModel))] @@ -113,45 +80,30 @@ namespace Nixtla [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.FinetunedModelsOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.ForecastInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SeriesWithFutureExogenous))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.ForecastInputFinetuneLoss), TypeInfoPropertyName = "ForecastInputFinetuneLoss2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.ForecastOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.HTTPValidationError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.ValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.InSampleInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.InSampleOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesAnomaly))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesCrossValidation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesCrossValidationFewshotLoss2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesCrossValidationFinetuneLoss), TypeInfoPropertyName = "MultiSeriesCrossValidationFinetuneLoss2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesForecast))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesForecastFewshotLoss2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesForecastFinetuneLoss), TypeInfoPropertyName = "MultiSeriesForecastFinetuneLoss2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.MultiSeriesInsampleForecast))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.OnlineAnomalyInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.OnlineAnomalyInputThresholdMethod), TypeInfoPropertyName = "OnlineAnomalyInputThresholdMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.OnlineAnomalyInputFinetuneLoss), TypeInfoPropertyName = "OnlineAnomalyInputFinetuneLoss2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.OnlineAnomalyOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SingleSeriesForecast))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SingleSeriesForecastFewshotLoss2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SingleSeriesForecastFinetuneLoss), TypeInfoPropertyName = "SingleSeriesForecastFinetuneLoss2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.SingleSeriesInsampleForecast))] + [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::Nixtla.AnyOf), TypeInfoPropertyName = "AnyOfDoubleString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Nixtla.AnyOf), TypeInfoPropertyName = "AnyOfStringInt322")] - [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.Dictionary>))] [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/Nixtla/Generated/Nixtla.JsonSerializerContextTypes.g.cs b/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContextTypes.g.cs index 724db91..52cc8f6 100644 --- a/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContextTypes.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.JsonSerializerContextTypes.g.cs @@ -32,7 +32,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Nixtla.SeriesWithExogenous? Type1 { get; set; } + public global::Nixtla.SeriesWithFutureExogenous? Type1 { get; set; } /// /// /// @@ -40,15 +40,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public object? Type3 { get; set; } + public bool? Type3 { get; set; } /// /// /// - public bool? Type4 { get; set; } + public object? Type4 { get; set; } /// /// /// - public global::Nixtla.AnyOf? Type5 { get; set; } + public global::System.Collections.Generic.IList? Type5 { get; set; } /// /// /// @@ -56,19 +56,19 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public double? Type7 { get; set; } + public global::Nixtla.AnyOf? Type7 { get; set; } /// /// /// - public global::Nixtla.AnomalyDetectionOutput? Type8 { get; set; } + public double? Type8 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type9 { get; set; } + public global::Nixtla.AnomalyDetectionOutput? Type9 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type10 { get; set; } + public global::System.Collections.Generic.IList? Type10 { get; set; } /// /// /// @@ -104,160 +104,96 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Nixtla.Series? Type19 { get; set; } + public global::Nixtla.FinetuneInputFinetuneLoss? Type19 { get; set; } /// /// /// - public global::Nixtla.FinetuneInputFinetuneLoss? Type20 { get; set; } + public global::Nixtla.FinetuneOutput? Type20 { get; set; } /// /// /// - public global::Nixtla.FinetuneOutput? Type21 { get; set; } + public global::Nixtla.FinetunedModel? Type21 { get; set; } /// /// /// - public global::Nixtla.FinetunedModel? Type22 { get; set; } + public global::Nixtla.FinetunedModelLoss? Type22 { get; set; } /// /// /// - public global::Nixtla.FinetunedModelLoss? Type23 { get; set; } + public global::Nixtla.FinetunedModelsOutput? Type23 { get; set; } /// /// /// - public global::Nixtla.FinetunedModelsOutput? Type24 { get; set; } + public global::System.Collections.Generic.IList? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type25 { get; set; } + public global::Nixtla.ForecastInput? Type25 { get; set; } /// /// /// - public global::Nixtla.ForecastInput? Type26 { get; set; } + public global::Nixtla.ForecastInputFinetuneLoss? Type26 { get; set; } /// /// /// - public global::Nixtla.SeriesWithFutureExogenous? Type27 { get; set; } + public global::Nixtla.ForecastOutput? Type27 { get; set; } /// /// /// - public global::Nixtla.ForecastInputFinetuneLoss? Type28 { get; set; } + public global::Nixtla.HTTPValidationError? Type28 { get; set; } /// /// /// - public global::Nixtla.ForecastOutput? Type29 { get; set; } + public global::System.Collections.Generic.IList? Type29 { get; set; } /// /// /// - public global::Nixtla.HTTPValidationError? Type30 { get; set; } + public global::Nixtla.ValidationError? Type30 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type31 { get; set; } + public global::Nixtla.OnlineAnomalyInput? Type31 { get; set; } /// /// /// - public global::Nixtla.ValidationError? Type32 { get; set; } + public global::Nixtla.OnlineAnomalyInputThresholdMethod? Type32 { get; set; } /// /// /// - public global::Nixtla.InSampleInput? Type33 { get; set; } + public global::Nixtla.OnlineAnomalyInputFinetuneLoss? Type33 { get; set; } /// /// /// - public global::Nixtla.InSampleOutput? Type34 { get; set; } + public global::Nixtla.OnlineAnomalyOutput? Type34 { get; set; } /// /// /// - public global::Nixtla.MultiSeriesAnomaly? Type35 { get; set; } + public global::System.Collections.Generic.IList>>? Type35 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type36 { get; set; } + public global::System.Collections.Generic.IList>? Type36 { get; set; } /// /// /// - public global::Nixtla.MultiSeriesInput? Type37 { get; set; } + public global::Nixtla.AnyOf? Type37 { get; set; } /// /// /// - public global::Nixtla.MultiSeriesCrossValidation? Type38 { get; set; } + public global::System.Collections.Generic.IList>? Type38 { get; set; } /// /// /// - public global::Nixtla.MultiSeriesCrossValidationFewshotLoss2? Type39 { get; set; } - /// - /// - /// - public global::Nixtla.MultiSeriesCrossValidationFinetuneLoss? Type40 { get; set; } - /// - /// - /// - public global::Nixtla.MultiSeriesForecast? Type41 { get; set; } - /// - /// - /// - public global::Nixtla.MultiSeriesForecastFewshotLoss2? Type42 { get; set; } - /// - /// - /// - public global::Nixtla.MultiSeriesForecastFinetuneLoss? Type43 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type44 { get; set; } - /// - /// - /// - public global::Nixtla.MultiSeriesInsampleForecast? Type45 { get; set; } - /// - /// - /// - public global::Nixtla.OnlineAnomalyInput? Type46 { get; set; } - /// - /// - /// - public global::Nixtla.OnlineAnomalyInputThresholdMethod? Type47 { get; set; } - /// - /// - /// - public global::Nixtla.OnlineAnomalyInputFinetuneLoss? Type48 { get; set; } - /// - /// - /// - public global::Nixtla.OnlineAnomalyOutput? Type49 { get; set; } - /// - /// - /// - public global::Nixtla.SingleSeriesForecast? Type50 { get; set; } - /// - /// - /// - public global::Nixtla.SingleSeriesForecastFewshotLoss2? Type51 { get; set; } - /// - /// - /// - public global::Nixtla.SingleSeriesForecastFinetuneLoss? Type52 { get; set; } - /// - /// - /// - public global::Nixtla.SingleSeriesInsampleForecast? Type53 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type54 { get; set; } - /// - /// - /// - public global::Nixtla.AnyOf? Type55 { get; set; } + public global::Nixtla.AnyOf? Type39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// @@ -285,11 +221,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List>>? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List>? ListType9 { get; set; } /// /// /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInput.g.cs index 0f7e874..b11e9be 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInput.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInput.g.cs @@ -13,7 +13,7 @@ public sealed partial class AnomalyDetectionInput /// [global::System.Text.Json.Serialization.JsonPropertyName("series")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Nixtla.SeriesWithExogenous Series { get; set; } + public required global::Nixtla.SeriesWithFutureExogenous Series { get; set; } /// /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. @@ -27,7 +27,7 @@ public sealed partial class AnomalyDetectionInput /// Default Value: timegpt-1 /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } + public string? Model { get; set; } /// /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
@@ -42,6 +42,25 @@ public sealed partial class AnomalyDetectionInput [global::System.Text.Json.Serialization.JsonPropertyName("finetuned_model_id")] public string? FinetunedModelId { get; set; } + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("multivariate")] + public bool? Multivariate { get; set; } + + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_parameters")] + public object? ModelParameters { get; set; } + + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hist_exog")] + public global::System.Collections.Generic.IList? HistExog { get; set; } + /// /// Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.
/// Default Value: 99 @@ -50,6 +69,13 @@ public sealed partial class AnomalyDetectionInput [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Nixtla.JsonConverters.AnyOfJsonConverter))] public global::Nixtla.AnyOf? Level { get; set; } + /// + /// Compute the exogenous features contributions to the forecast.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] + public bool? FeatureContributions { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -74,27 +100,49 @@ public sealed partial class AnomalyDetectionInput /// /// ID of previously finetuned model /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// /// /// Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.
/// Default Value: 99 /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// Default Value: false + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AnomalyDetectionInput( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - object? model, + string? model, bool? cleanExFirst, string? finetunedModelId, - global::Nixtla.AnyOf? level) + bool? multivariate, + object? modelParameters, + global::System.Collections.Generic.IList? histExog, + global::Nixtla.AnyOf? level, + bool? featureContributions) { this.Series = series ?? throw new global::System.ArgumentNullException(nameof(series)); this.Freq = freq ?? throw new global::System.ArgumentNullException(nameof(freq)); this.Model = model; this.CleanExFirst = cleanExFirst; this.FinetunedModelId = finetunedModelId; + this.Multivariate = multivariate; + this.ModelParameters = modelParameters; + this.HistExog = histExog; this.Level = level; + this.FeatureContributions = featureContributions; } /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputHistExog.Json.g.cs similarity index 87% rename from src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastX.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputHistExog.Json.g.cs index 7c94b58..4437952 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastX.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputHistExog.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class SingleSeriesInsampleForecastX + public sealed partial class AnomalyDetectionInputHistExog { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.SingleSeriesInsampleForecastX? FromJson( + public static global::Nixtla.AnomalyDetectionInputHistExog? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.SingleSeriesInsampleForecastX), - jsonSerializerContext) as global::Nixtla.SingleSeriesInsampleForecastX; + typeof(global::Nixtla.AnomalyDetectionInputHistExog), + jsonSerializerContext) as global::Nixtla.AnomalyDetectionInputHistExog; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.SingleSeriesInsampleForecastX? FromJson( + public static global::Nixtla.AnomalyDetectionInputHistExog? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.SingleSeriesInsampleForecastX? FromJson( + public static global::Nixtla.AnomalyDetectionInputHistExog? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.SingleSeriesInsampleForecastX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesInsampleForecastX; + typeof(global::Nixtla.AnomalyDetectionInputHistExog), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.AnomalyDetectionInputHistExog; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputHistExog.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputHistExog.g.cs new file mode 100644 index 0000000..edd6721 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputHistExog.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + public sealed partial class AnomalyDetectionInputHistExog + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModel.g.cs deleted file mode 100644 index 0eefb03..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class AnomalyDetectionInputModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters.Json.g.cs similarity index 88% rename from src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters.Json.g.cs index 85d0bba..99d659b 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class AnomalyDetectionInputModel + public sealed partial class AnomalyDetectionInputModelParameters { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.AnomalyDetectionInputModel? FromJson( + public static global::Nixtla.AnomalyDetectionInputModelParameters? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.AnomalyDetectionInputModel), - jsonSerializerContext) as global::Nixtla.AnomalyDetectionInputModel; + typeof(global::Nixtla.AnomalyDetectionInputModelParameters), + jsonSerializerContext) as global::Nixtla.AnomalyDetectionInputModelParameters; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.AnomalyDetectionInputModel? FromJson( + public static global::Nixtla.AnomalyDetectionInputModelParameters? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.AnomalyDetectionInputModel? FromJson( + public static global::Nixtla.AnomalyDetectionInputModelParameters? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.AnomalyDetectionInputModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.AnomalyDetectionInputModel; + typeof(global::Nixtla.AnomalyDetectionInputModelParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.AnomalyDetectionInputModelParameters; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters.g.cs new file mode 100644 index 0000000..75b6119 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + public sealed partial class AnomalyDetectionInputModelParameters + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters2.Json.g.cs similarity index 86% rename from src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters2.Json.g.cs index 4a4cf85..1423aba 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters2.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class MultiSeriesCrossValidationFewshotLoss + public sealed partial class AnomalyDetectionInputModelParameters2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.MultiSeriesCrossValidationFewshotLoss? FromJson( + public static global::Nixtla.AnomalyDetectionInputModelParameters2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.MultiSeriesCrossValidationFewshotLoss), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationFewshotLoss; + typeof(global::Nixtla.AnomalyDetectionInputModelParameters2), + jsonSerializerContext) as global::Nixtla.AnomalyDetectionInputModelParameters2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.MultiSeriesCrossValidationFewshotLoss? FromJson( + public static global::Nixtla.AnomalyDetectionInputModelParameters2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.MultiSeriesCrossValidationFewshotLoss? FromJson( + public static global::Nixtla.AnomalyDetectionInputModelParameters2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.MultiSeriesCrossValidationFewshotLoss), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationFewshotLoss; + typeof(global::Nixtla.AnomalyDetectionInputModelParameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.AnomalyDetectionInputModelParameters2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters2.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters2.g.cs new file mode 100644 index 0000000..a66a496 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.AnomalyDetectionInputModelParameters2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// + /// + public sealed partial class AnomalyDetectionInputModelParameters2 + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.CrossValidationInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInput.g.cs index 453ced3..0490432 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInput.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInput.g.cs @@ -13,7 +13,7 @@ public sealed partial class CrossValidationInput /// [global::System.Text.Json.Serialization.JsonPropertyName("series")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Nixtla.SeriesWithExogenous Series { get; set; } + public required global::Nixtla.SeriesWithFutureExogenous Series { get; set; } /// /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. @@ -23,11 +23,11 @@ public sealed partial class CrossValidationInput public required string Freq { get; set; } /// - /// Number of windows to evaluate. + /// Number of windows to evaluate.
+ /// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("n_windows")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int NWindows { get; set; } + public int? NWindows { get; set; } /// /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict. @@ -36,12 +36,19 @@ public sealed partial class CrossValidationInput [global::System.Text.Json.Serialization.JsonRequired] public required int H { get; set; } + /// + /// Forecast across the entire series history (the `add_history` use case). The horizon and number of windows are derived server-side (any supplied `h` / `n_windows` are ignored), and the exogenous model is refit a bounded number of times to keep whole-history requests fast. Has no effect without exogenous features.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("full_history")] + public bool? FullHistory { get; set; } + /// /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
/// Default Value: timegpt-1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } + public string? Model { get; set; } /// /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
@@ -64,7 +71,7 @@ public sealed partial class CrossValidationInput public int? FinetuneSteps { get; set; } /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] @@ -72,7 +79,7 @@ public sealed partial class CrossValidationInput public global::Nixtla.CrossValidationInputFinetuneLoss? FinetuneLoss { get; set; } /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_depth")] @@ -103,6 +110,26 @@ public sealed partial class CrossValidationInput [global::System.Text.Json.Serialization.JsonPropertyName("refit")] public bool? Refit { get; set; } + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("multivariate")] + public bool? Multivariate { get; set; } + + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_parameters")] + public object? ModelParameters { get; set; } + + /// + /// Compute the exogenous features contributions to the forecast.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] + public bool? FeatureContributions { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -116,12 +143,17 @@ public sealed partial class CrossValidationInput /// /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. /// - /// - /// Number of windows to evaluate. - /// /// /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict. /// + /// + /// Number of windows to evaluate.
+ /// Default Value: 1 + /// + /// + /// Forecast across the entire series history (the `add_history` use case). The horizon and number of windows are derived server-side (any supplied `h` / `n_windows` are ignored), and the exogenous model is refit a bounded number of times to keep whole-history requests fast. Has no effect without exogenous features.
+ /// Default Value: false + /// /// /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
/// Default Value: timegpt-1 @@ -138,11 +170,11 @@ public sealed partial class CrossValidationInput /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -158,15 +190,27 @@ public sealed partial class CrossValidationInput /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
/// Default Value: true /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// Default Value: false + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CrossValidationInput( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - int nWindows, int h, - object? model, + int? nWindows, + bool? fullHistory, + string? model, bool? cleanExFirst, global::System.Collections.Generic.IList>? level, int? finetuneSteps, @@ -175,12 +219,16 @@ public CrossValidationInput( string? finetunedModelId, int? stepSize, global::System.Collections.Generic.IList? histExog, - bool? refit) + bool? refit, + bool? multivariate, + object? modelParameters, + bool? featureContributions) { this.Series = series ?? throw new global::System.ArgumentNullException(nameof(series)); this.Freq = freq ?? throw new global::System.ArgumentNullException(nameof(freq)); this.NWindows = nWindows; this.H = h; + this.FullHistory = fullHistory; this.Model = model; this.CleanExFirst = cleanExFirst; this.Level = level; @@ -191,6 +239,9 @@ public CrossValidationInput( this.StepSize = stepSize; this.HistExog = histExog; this.Refit = refit; + this.Multivariate = multivariate; + this.ModelParameters = modelParameters; + this.FeatureContributions = featureContributions; } /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputFinetuneLoss.g.cs index 5f003ca..9a1f74a 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputFinetuneLoss.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputFinetuneLoss.g.cs @@ -4,7 +4,7 @@ namespace Nixtla { /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
public enum CrossValidationInputFinetuneLoss diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModel.g.cs deleted file mode 100644 index 60482c7..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class CrossValidationInputModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters.Json.g.cs new file mode 100644 index 0000000..6be9dfe --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Nixtla +{ + public sealed partial class CrossValidationInputModelParameters + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Nixtla.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Nixtla.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Nixtla.CrossValidationInputModelParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Nixtla.CrossValidationInputModelParameters), + jsonSerializerContext) as global::Nixtla.CrossValidationInputModelParameters; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Nixtla.CrossValidationInputModelParameters? FromJson( + string json) + { + return FromJson( + json, + global::Nixtla.SourceGenerationContext.Default); + } + + /// + /// 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::Nixtla.CrossValidationInputModelParameters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Nixtla.SourceGenerationContext.Default); + } + + 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::Nixtla.CrossValidationInputModelParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.CrossValidationInputModelParameters; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Nixtla.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Nixtla.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters.g.cs new file mode 100644 index 0000000..0a23d93 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + public sealed partial class CrossValidationInputModelParameters + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters2.Json.g.cs similarity index 86% rename from src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters2.Json.g.cs index 2fec1f5..bc5bc54 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters2.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class MultiSeriesForecastFewshotLoss + public sealed partial class CrossValidationInputModelParameters2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.MultiSeriesForecastFewshotLoss? FromJson( + public static global::Nixtla.CrossValidationInputModelParameters2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.MultiSeriesForecastFewshotLoss), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecastFewshotLoss; + typeof(global::Nixtla.CrossValidationInputModelParameters2), + jsonSerializerContext) as global::Nixtla.CrossValidationInputModelParameters2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.MultiSeriesForecastFewshotLoss? FromJson( + public static global::Nixtla.CrossValidationInputModelParameters2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.MultiSeriesForecastFewshotLoss? FromJson( + public static global::Nixtla.CrossValidationInputModelParameters2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.MultiSeriesForecastFewshotLoss), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecastFewshotLoss; + typeof(global::Nixtla.CrossValidationInputModelParameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.CrossValidationInputModelParameters2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputFeatureContributions.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters2.g.cs similarity index 87% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputFeatureContributions.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters2.g.cs index 36e620d..98ba9f6 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputFeatureContributions.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModelParameters2.g.cs @@ -6,7 +6,7 @@ namespace Nixtla /// /// /// - public sealed partial class InSampleOutputFeatureContributions + public sealed partial class CrossValidationInputModelParameters2 { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutput.g.cs index d23a168..eda847a 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutput.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutput.g.cs @@ -56,6 +56,12 @@ public sealed partial class CrossValidationOutput [global::System.Text.Json.Serialization.JsonPropertyName("intervals")] public global::System.Collections.Generic.Dictionary>? Intervals { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] + public global::System.Collections.Generic.IList>? FeatureContributions { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -72,6 +78,7 @@ public sealed partial class CrossValidationOutput /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -82,7 +89,8 @@ public CrossValidationOutput( global::System.Collections.Generic.IList mean, global::System.Collections.Generic.IList sizes, global::System.Collections.Generic.IList idxs, - global::System.Collections.Generic.Dictionary>? intervals) + global::System.Collections.Generic.Dictionary>? intervals, + global::System.Collections.Generic.IList>? featureContributions) { this.InputTokens = inputTokens; this.OutputTokens = outputTokens; @@ -91,6 +99,7 @@ public CrossValidationOutput( this.Sizes = sizes ?? throw new global::System.ArgumentNullException(nameof(sizes)); this.Idxs = idxs ?? throw new global::System.ArgumentNullException(nameof(idxs)); this.Intervals = intervals; + this.FeatureContributions = featureContributions; } /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutputFeatureContributions.Json.g.cs similarity index 85% rename from src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutputFeatureContributions.Json.g.cs index 0bc1cf9..1c2554c 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutputFeatureContributions.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class SingleSeriesForecastX + public sealed partial class CrossValidationOutputFeatureContributions { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.SingleSeriesForecastX? FromJson( + public static global::Nixtla.CrossValidationOutputFeatureContributions? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.SingleSeriesForecastX), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastX; + typeof(global::Nixtla.CrossValidationOutputFeatureContributions), + jsonSerializerContext) as global::Nixtla.CrossValidationOutputFeatureContributions; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.SingleSeriesForecastX? FromJson( + public static global::Nixtla.CrossValidationOutputFeatureContributions? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.SingleSeriesForecastX? FromJson( + public static global::Nixtla.CrossValidationOutputFeatureContributions? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.SingleSeriesForecastX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastX; + typeof(global::Nixtla.CrossValidationOutputFeatureContributions), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.CrossValidationOutputFeatureContributions; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutputFeatureContributions.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutputFeatureContributions.g.cs new file mode 100644 index 0000000..bd3aaaf --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationOutputFeatureContributions.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// + /// + public sealed partial class CrossValidationOutputFeatureContributions + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.FinetuneInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInput.g.cs index f20d6c7..312faa0 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInput.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInput.g.cs @@ -13,7 +13,7 @@ public sealed partial class FinetuneInput /// [global::System.Text.Json.Serialization.JsonPropertyName("series")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Nixtla.Series Series { get; set; } + public required global::Nixtla.SeriesWithFutureExogenous Series { get; set; } /// /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. @@ -27,7 +27,7 @@ public sealed partial class FinetuneInput /// Default Value: timegpt-1 /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } + public string? Model { get; set; } /// /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
@@ -37,7 +37,7 @@ public sealed partial class FinetuneInput public int? FinetuneSteps { get; set; } /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] @@ -45,7 +45,7 @@ public sealed partial class FinetuneInput public global::Nixtla.FinetuneInputFinetuneLoss? FinetuneLoss { get; set; } /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_depth")] @@ -63,6 +63,25 @@ public sealed partial class FinetuneInput [global::System.Text.Json.Serialization.JsonPropertyName("finetuned_model_id")] public string? FinetunedModelId { get; set; } + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hist_exog")] + public global::System.Collections.Generic.IList? HistExog { get; set; } + + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("multivariate")] + public bool? Multivariate { get; set; } + + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_parameters")] + public object? ModelParameters { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -85,11 +104,11 @@ public sealed partial class FinetuneInput /// Default Value: 10 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -98,18 +117,31 @@ public sealed partial class FinetuneInput /// /// ID of previously finetuned model /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FinetuneInput( - global::Nixtla.Series series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - object? model, + string? model, int? finetuneSteps, global::Nixtla.FinetuneInputFinetuneLoss? finetuneLoss, int? finetuneDepth, string? outputModelId, - string? finetunedModelId) + string? finetunedModelId, + global::System.Collections.Generic.IList? histExog, + bool? multivariate, + object? modelParameters) { this.Series = series ?? throw new global::System.ArgumentNullException(nameof(series)); this.Freq = freq ?? throw new global::System.ArgumentNullException(nameof(freq)); @@ -119,6 +151,9 @@ public FinetuneInput( this.FinetuneDepth = finetuneDepth; this.OutputModelId = outputModelId; this.FinetunedModelId = finetunedModelId; + this.HistExog = histExog; + this.Multivariate = multivariate; + this.ModelParameters = modelParameters; } /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputFinetuneLoss.g.cs index 78a8777..c665b52 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputFinetuneLoss.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputFinetuneLoss.g.cs @@ -4,7 +4,7 @@ namespace Nixtla { /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
public enum FinetuneInputFinetuneLoss diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputHistExog.Json.g.cs similarity index 89% rename from src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputHistExog.Json.g.cs index af467b6..0ef2ed0 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputHistExog.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class FinetuneInputModel + public sealed partial class FinetuneInputHistExog { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.FinetuneInputModel? FromJson( + public static global::Nixtla.FinetuneInputHistExog? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.FinetuneInputModel), - jsonSerializerContext) as global::Nixtla.FinetuneInputModel; + typeof(global::Nixtla.FinetuneInputHistExog), + jsonSerializerContext) as global::Nixtla.FinetuneInputHistExog; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.FinetuneInputModel? FromJson( + public static global::Nixtla.FinetuneInputHistExog? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.FinetuneInputModel? FromJson( + public static global::Nixtla.FinetuneInputHistExog? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.FinetuneInputModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.FinetuneInputModel; + typeof(global::Nixtla.FinetuneInputHistExog), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.FinetuneInputHistExog; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputFinetunedModelId.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputHistExog.g.cs similarity index 78% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputFinetunedModelId.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputHistExog.g.cs index 3ef5085..60a0558 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputFinetunedModelId.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputHistExog.g.cs @@ -4,9 +4,9 @@ namespace Nixtla { /// - /// ID of previously finetuned model + /// Zero-based indices of the exogenous features to treat as historical. /// - public sealed partial class InSampleInputFinetunedModelId + public sealed partial class FinetuneInputHistExog { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModel.g.cs deleted file mode 100644 index 5eb7843..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class FinetuneInputModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.CrossValidationInputModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters.Json.g.cs similarity index 87% rename from src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters.Json.g.cs index 948effb..e8e122c 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.CrossValidationInputModel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class CrossValidationInputModel + public sealed partial class FinetuneInputModelParameters { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.CrossValidationInputModel? FromJson( + public static global::Nixtla.FinetuneInputModelParameters? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.CrossValidationInputModel), - jsonSerializerContext) as global::Nixtla.CrossValidationInputModel; + typeof(global::Nixtla.FinetuneInputModelParameters), + jsonSerializerContext) as global::Nixtla.FinetuneInputModelParameters; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.CrossValidationInputModel? FromJson( + public static global::Nixtla.FinetuneInputModelParameters? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.CrossValidationInputModel? FromJson( + public static global::Nixtla.FinetuneInputModelParameters? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.CrossValidationInputModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.CrossValidationInputModel; + typeof(global::Nixtla.FinetuneInputModelParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.FinetuneInputModelParameters; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters.g.cs new file mode 100644 index 0000000..2377a46 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + public sealed partial class FinetuneInputModelParameters + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.InSampleInputFinetunedModelId.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters2.Json.g.cs similarity index 87% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputFinetunedModelId.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters2.Json.g.cs index 6d7ea6d..542ed1a 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputFinetunedModelId.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters2.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class InSampleInputFinetunedModelId + public sealed partial class FinetuneInputModelParameters2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.InSampleInputFinetunedModelId? FromJson( + public static global::Nixtla.FinetuneInputModelParameters2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.InSampleInputFinetunedModelId), - jsonSerializerContext) as global::Nixtla.InSampleInputFinetunedModelId; + typeof(global::Nixtla.FinetuneInputModelParameters2), + jsonSerializerContext) as global::Nixtla.FinetuneInputModelParameters2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.InSampleInputFinetunedModelId? FromJson( + public static global::Nixtla.FinetuneInputModelParameters2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.InSampleInputFinetunedModelId? FromJson( + public static global::Nixtla.FinetuneInputModelParameters2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.InSampleInputFinetunedModelId), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleInputFinetunedModelId; + typeof(global::Nixtla.FinetuneInputModelParameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.FinetuneInputModelParameters2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.HealthHealthGetResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters2.g.cs similarity index 88% rename from src/libs/Nixtla/Generated/Nixtla.Models.HealthHealthGetResponse.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters2.g.cs index 7a60a7d..e2d618a 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.HealthHealthGetResponse.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.FinetuneInputModelParameters2.g.cs @@ -6,7 +6,7 @@ namespace Nixtla /// /// /// - public sealed partial class HealthHealthGetResponse + public sealed partial class FinetuneInputModelParameters2 { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInput.g.cs index 31fc9fd..6da278c 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInput.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInput.g.cs @@ -34,7 +34,7 @@ public sealed partial class ForecastInput /// Default Value: timegpt-1 /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } + public string? Model { get; set; } /// /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
@@ -57,7 +57,7 @@ public sealed partial class ForecastInput public int? FinetuneSteps { get; set; } /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] @@ -65,7 +65,7 @@ public sealed partial class ForecastInput public global::Nixtla.ForecastInputFinetuneLoss? FinetuneLoss { get; set; } /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_depth")] @@ -84,6 +84,19 @@ public sealed partial class ForecastInput [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] public bool? FeatureContributions { get; set; } + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("multivariate")] + public bool? Multivariate { get; set; } + + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_parameters")] + public object? ModelParameters { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -116,11 +129,11 @@ public sealed partial class ForecastInput /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -130,6 +143,13 @@ public sealed partial class ForecastInput /// Compute the exogenous features contributions to the forecast.
/// Default Value: false /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -137,14 +157,16 @@ public ForecastInput( global::Nixtla.SeriesWithFutureExogenous series, string freq, int h, - object? model, + string? model, bool? cleanExFirst, global::System.Collections.Generic.IList>? level, int? finetuneSteps, global::Nixtla.ForecastInputFinetuneLoss? finetuneLoss, int? finetuneDepth, string? finetunedModelId, - bool? featureContributions) + bool? featureContributions, + bool? multivariate, + object? modelParameters) { this.Series = series ?? throw new global::System.ArgumentNullException(nameof(series)); this.Freq = freq ?? throw new global::System.ArgumentNullException(nameof(freq)); @@ -157,6 +179,8 @@ public ForecastInput( this.FinetuneDepth = finetuneDepth; this.FinetunedModelId = finetunedModelId; this.FeatureContributions = featureContributions; + this.Multivariate = multivariate; + this.ModelParameters = modelParameters; } /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputFinetuneLoss.g.cs index cbcb437..be623da 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputFinetuneLoss.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputFinetuneLoss.g.cs @@ -4,7 +4,7 @@ namespace Nixtla { /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
public enum ForecastInputFinetuneLoss diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModel.g.cs deleted file mode 100644 index 2e14290..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class ForecastInputModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.ForecastInputModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters.Json.g.cs similarity index 88% rename from src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters.Json.g.cs index 4669aba..823f878 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class ForecastInputModel + public sealed partial class ForecastInputModelParameters { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.ForecastInputModel? FromJson( + public static global::Nixtla.ForecastInputModelParameters? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.ForecastInputModel), - jsonSerializerContext) as global::Nixtla.ForecastInputModel; + typeof(global::Nixtla.ForecastInputModelParameters), + jsonSerializerContext) as global::Nixtla.ForecastInputModelParameters; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.ForecastInputModel? FromJson( + public static global::Nixtla.ForecastInputModelParameters? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.ForecastInputModel? FromJson( + public static global::Nixtla.ForecastInputModelParameters? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.ForecastInputModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.ForecastInputModel; + typeof(global::Nixtla.ForecastInputModelParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.ForecastInputModelParameters; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters.g.cs new file mode 100644 index 0000000..9219165 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + public sealed partial class ForecastInputModelParameters + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastY.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters2.Json.g.cs similarity index 87% rename from src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastY.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters2.Json.g.cs index 6e11a34..f1f6eb7 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastY.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters2.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class SingleSeriesInsampleForecastY + public sealed partial class ForecastInputModelParameters2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.SingleSeriesInsampleForecastY? FromJson( + public static global::Nixtla.ForecastInputModelParameters2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.SingleSeriesInsampleForecastY), - jsonSerializerContext) as global::Nixtla.SingleSeriesInsampleForecastY; + typeof(global::Nixtla.ForecastInputModelParameters2), + jsonSerializerContext) as global::Nixtla.ForecastInputModelParameters2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.SingleSeriesInsampleForecastY? FromJson( + public static global::Nixtla.ForecastInputModelParameters2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.SingleSeriesInsampleForecastY? FromJson( + public static global::Nixtla.ForecastInputModelParameters2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.SingleSeriesInsampleForecastY), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesInsampleForecastY; + typeof(global::Nixtla.ForecastInputModelParameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.ForecastInputModelParameters2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters2.g.cs similarity index 88% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters2.g.cs index d9f826d..3205b13 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ForecastInputModelParameters2.g.cs @@ -6,7 +6,7 @@ namespace Nixtla /// /// /// - public sealed partial class InSampleOutputIntervals + public sealed partial class ForecastInputModelParameters2 { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.HealthHealthGetResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.HealthHealthGetResponse.Json.g.cs deleted file mode 100644 index 0f7726e..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.HealthHealthGetResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class HealthHealthGetResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.HealthHealthGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.HealthHealthGetResponse), - jsonSerializerContext) as global::Nixtla.HealthHealthGetResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.HealthHealthGetResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.HealthHealthGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.HealthHealthGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.HealthHealthGetResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInput.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInput.Json.g.cs deleted file mode 100644 index 6870e2d..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class InSampleInput - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.InSampleInput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.InSampleInput), - jsonSerializerContext) as global::Nixtla.InSampleInput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.InSampleInput? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.InSampleInput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.InSampleInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleInput; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInput.g.cs deleted file mode 100644 index b809444..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInput.g.cs +++ /dev/null @@ -1,118 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class InSampleInput - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("series")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Nixtla.SeriesWithExogenous Series { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Freq { get; set; } - - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { get; set; } - - /// - /// ID of previously finetuned model - /// - [global::System.Text.Json.Serialization.JsonPropertyName("finetuned_model_id")] - public string? FinetunedModelId { get; set; } - - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList>? Level { get; set; } - - /// - /// Compute the exogenous features contributions to the forecast.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] - public bool? FeatureContributions { 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. - /// - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// - /// - /// ID of previously finetuned model - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// Compute the exogenous features contributions to the forecast.
- /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public InSampleInput( - global::Nixtla.SeriesWithExogenous series, - string freq, - object? model, - bool? cleanExFirst, - string? finetunedModelId, - global::System.Collections.Generic.IList>? level, - bool? featureContributions) - { - this.Series = series ?? throw new global::System.ArgumentNullException(nameof(series)); - this.Freq = freq ?? throw new global::System.ArgumentNullException(nameof(freq)); - this.Model = model; - this.CleanExFirst = cleanExFirst; - this.FinetunedModelId = finetunedModelId; - this.Level = level; - this.FeatureContributions = featureContributions; - } - - /// - /// Initializes a new instance of the class. - /// - public InSampleInput() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputLevel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputLevel.g.cs deleted file mode 100644 index c0795b0..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputLevel.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - public sealed partial class InSampleInputLevel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.InSampleInputModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputModel.Json.g.cs deleted file mode 100644 index ce5fc1b..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class InSampleInputModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.InSampleInputModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.InSampleInputModel), - jsonSerializerContext) as global::Nixtla.InSampleInputModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.InSampleInputModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.InSampleInputModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.InSampleInputModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleInputModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputModel.g.cs deleted file mode 100644 index 909fbf8..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class InSampleInputModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.InSampleOutput.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutput.Json.g.cs deleted file mode 100644 index 7ac4490..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class InSampleOutput - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.InSampleOutput), - jsonSerializerContext) as global::Nixtla.InSampleOutput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutput? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.InSampleOutput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.InSampleOutput), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleOutput; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutput.g.cs deleted file mode 100644 index 635e9a0..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutput.g.cs +++ /dev/null @@ -1,112 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class InSampleOutput - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int InputTokens { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int OutputTokens { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("finetune_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int FinetuneTokens { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mean")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Mean { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sizes")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Sizes { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("intervals")] - public global::System.Collections.Generic.Dictionary>? Intervals { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("weights_x")] - public global::System.Collections.Generic.IList? WeightsX { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] - public global::System.Collections.Generic.IList>? FeatureContributions { 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 InSampleOutput( - int inputTokens, - int outputTokens, - int finetuneTokens, - global::System.Collections.Generic.IList mean, - global::System.Collections.Generic.IList sizes, - global::System.Collections.Generic.Dictionary>? intervals, - global::System.Collections.Generic.IList? weightsX, - global::System.Collections.Generic.IList>? featureContributions) - { - this.InputTokens = inputTokens; - this.OutputTokens = outputTokens; - this.FinetuneTokens = finetuneTokens; - this.Mean = mean ?? throw new global::System.ArgumentNullException(nameof(mean)); - this.Sizes = sizes ?? throw new global::System.ArgumentNullException(nameof(sizes)); - this.Intervals = intervals; - this.WeightsX = weightsX; - this.FeatureContributions = featureContributions; - } - - /// - /// Initializes a new instance of the class. - /// - public InSampleOutput() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals.Json.g.cs deleted file mode 100644 index e97d3f2..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class InSampleOutputIntervals - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutputIntervals? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.InSampleOutputIntervals), - jsonSerializerContext) as global::Nixtla.InSampleOutputIntervals; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutputIntervals? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.InSampleOutputIntervals? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.InSampleOutputIntervals), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleOutputIntervals; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals2.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals2.Json.g.cs deleted file mode 100644 index a4528f3..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class InSampleOutputIntervals2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutputIntervals2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.InSampleOutputIntervals2), - jsonSerializerContext) as global::Nixtla.InSampleOutputIntervals2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutputIntervals2? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.InSampleOutputIntervals2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.InSampleOutputIntervals2), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleOutputIntervals2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals2.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals2.g.cs deleted file mode 100644 index 8d79155..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputIntervals2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class InSampleOutputIntervals2 - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.InSampleOutputWeightsX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputWeightsX.Json.g.cs deleted file mode 100644 index c21b476..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputWeightsX.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class InSampleOutputWeightsX - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutputWeightsX? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.InSampleOutputWeightsX), - jsonSerializerContext) as global::Nixtla.InSampleOutputWeightsX; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.InSampleOutputWeightsX? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.InSampleOutputWeightsX? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.InSampleOutputWeightsX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleOutputWeightsX; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.ModelParamsModelParamsPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ModelParamsModelParamsPostResponse.Json.g.cs deleted file mode 100644 index 24a0d8d..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ModelParamsModelParamsPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class ModelParamsModelParamsPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.ModelParamsModelParamsPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.ModelParamsModelParamsPostResponse), - jsonSerializerContext) as global::Nixtla.ModelParamsModelParamsPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.ModelParamsModelParamsPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.ModelParamsModelParamsPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.ModelParamsModelParamsPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.ModelParamsModelParamsPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.ModelParamsModelParamsPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ModelParamsModelParamsPostResponse.g.cs deleted file mode 100644 index ca70012..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ModelParamsModelParamsPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class ModelParamsModelParamsPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomaly.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomaly.Json.g.cs deleted file mode 100644 index 3dced7f..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomaly.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesAnomaly - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomaly? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesAnomaly), - jsonSerializerContext) as global::Nixtla.MultiSeriesAnomaly; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomaly? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesAnomaly? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesAnomaly), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesAnomaly; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomaly.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomaly.g.cs deleted file mode 100644 index d709224..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomaly.g.cs +++ /dev/null @@ -1,111 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesAnomaly - { - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - public string? Freq { get; set; } - - /// - /// Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.
- /// Default Value: [99] - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList? Level { get; set; } - - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("y")] - public object? Y { get; set; } - - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("x")] - public global::Nixtla.MultiSeriesInput? X { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { 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. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.
- /// Default Value: [99] - /// - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - /// - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MultiSeriesAnomaly( - object? model, - string? freq, - global::System.Collections.Generic.IList? level, - object? y, - global::Nixtla.MultiSeriesInput? x, - bool? cleanExFirst) - { - this.Model = model; - this.Freq = freq; - this.Level = level; - this.Y = y; - this.X = x; - this.CleanExFirst = cleanExFirst; - } - - /// - /// Initializes a new instance of the class. - /// - public MultiSeriesAnomaly() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyLevelItem.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyLevelItem.Json.g.cs deleted file mode 100644 index 18e8705..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyLevelItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesAnomalyLevelItem - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyLevelItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesAnomalyLevelItem), - jsonSerializerContext) as global::Nixtla.MultiSeriesAnomalyLevelItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyLevelItem? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesAnomalyLevelItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesAnomalyLevelItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesAnomalyLevelItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyLevelItem.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyLevelItem.g.cs deleted file mode 100644 index 478b910..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyLevelItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesAnomalyLevelItem - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyModel.Json.g.cs deleted file mode 100644 index 46c2cf5..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesAnomalyModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesAnomalyModel), - jsonSerializerContext) as global::Nixtla.MultiSeriesAnomalyModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesAnomalyModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesAnomalyModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesAnomalyModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyModel.g.cs deleted file mode 100644 index cd5480a..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class MultiSeriesAnomalyModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyX.Json.g.cs deleted file mode 100644 index aecf4ff..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyX.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesAnomalyX - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyX? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesAnomalyX), - jsonSerializerContext) as global::Nixtla.MultiSeriesAnomalyX; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyX? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesAnomalyX? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesAnomalyX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesAnomalyX; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyX.g.cs deleted file mode 100644 index 38362db..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - public sealed partial class MultiSeriesAnomalyX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyY.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyY.Json.g.cs deleted file mode 100644 index b5038a1..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyY.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesAnomalyY - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyY? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesAnomalyY), - jsonSerializerContext) as global::Nixtla.MultiSeriesAnomalyY; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesAnomalyY? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesAnomalyY? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesAnomalyY), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesAnomalyY; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyY.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyY.g.cs deleted file mode 100644 index 948720c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesAnomalyY.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- public sealed partial class MultiSeriesAnomalyY - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidation.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidation.Json.g.cs deleted file mode 100644 index c6df810..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidation - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidation), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidation? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidation), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidation; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidation.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidation.g.cs deleted file mode 100644 index fd14948..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidation.g.cs +++ /dev/null @@ -1,189 +0,0 @@ - -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesCrossValidation - { - /// - /// Deprecated. Please use finetune_steps instead. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fewshot_steps")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? FewshotSteps { get; set; } - - /// - /// Deprecated. Please use finetune_loss instead. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fewshot_loss")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Nixtla.MultiSeriesCrossValidationFewshotLoss2? FewshotLoss { get; set; } - - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - public string? Freq { get; set; } - - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList>? Level { get; set; } - - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fh")] - public int? Fh { get; set; } - - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("y")] - public object? Y { get; set; } - - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("x")] - public global::Nixtla.MultiSeriesInput? X { get; set; } - - /// - /// Number of windows to evaluate.
- /// Default Value: 1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("n_windows")] - public int? NWindows { get; set; } - - /// - /// Step size between each cross validation window. If None it will be equal to the forecasting horizon. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step_size")] - public int? StepSize { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { get; set; } - - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finetune_steps")] - public int? FinetuneSteps { get; set; } - - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Nixtla.JsonConverters.MultiSeriesCrossValidationFinetuneLossJsonConverter))] - public global::Nixtla.MultiSeriesCrossValidationFinetuneLoss? FinetuneLoss { 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. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - /// - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - /// - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - /// - /// Number of windows to evaluate.
- /// Default Value: 1 - /// - /// - /// Step size between each cross validation window. If None it will be equal to the forecasting horizon. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - /// - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MultiSeriesCrossValidation( - object? model, - string? freq, - global::System.Collections.Generic.IList>? level, - int? fh, - object? y, - global::Nixtla.MultiSeriesInput? x, - int? nWindows, - int? stepSize, - bool? cleanExFirst, - int? finetuneSteps, - global::Nixtla.MultiSeriesCrossValidationFinetuneLoss? finetuneLoss) - { - this.Model = model; - this.Freq = freq; - this.Level = level; - this.Fh = fh; - this.Y = y; - this.X = x; - this.NWindows = nWindows; - this.StepSize = stepSize; - this.CleanExFirst = cleanExFirst; - this.FinetuneSteps = finetuneSteps; - this.FinetuneLoss = finetuneLoss; - } - - /// - /// Initializes a new instance of the class. - /// - public MultiSeriesCrossValidation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss.g.cs deleted file mode 100644 index 3fe311b..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Deprecated. Please use finetune_loss instead. - /// - [global::System.Obsolete("This model marked as deprecated.")] - public sealed partial class MultiSeriesCrossValidationFewshotLoss - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss2.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss2.g.cs deleted file mode 100644 index f6f4c22..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotLoss2.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public enum MultiSeriesCrossValidationFewshotLoss2 - { - /// - /// - /// - Default, - /// - /// - /// - Mae, - /// - /// - /// - Mape, - /// - /// - /// - Mse, - /// - /// - /// - Rmse, - /// - /// - /// - Smape, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MultiSeriesCrossValidationFewshotLoss2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MultiSeriesCrossValidationFewshotLoss2 value) - { - return value switch - { - MultiSeriesCrossValidationFewshotLoss2.Default => "default", - MultiSeriesCrossValidationFewshotLoss2.Mae => "mae", - MultiSeriesCrossValidationFewshotLoss2.Mape => "mape", - MultiSeriesCrossValidationFewshotLoss2.Mse => "mse", - MultiSeriesCrossValidationFewshotLoss2.Rmse => "rmse", - MultiSeriesCrossValidationFewshotLoss2.Smape => "smape", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MultiSeriesCrossValidationFewshotLoss2? ToEnum(string value) - { - return value switch - { - "default" => MultiSeriesCrossValidationFewshotLoss2.Default, - "mae" => MultiSeriesCrossValidationFewshotLoss2.Mae, - "mape" => MultiSeriesCrossValidationFewshotLoss2.Mape, - "mse" => MultiSeriesCrossValidationFewshotLoss2.Mse, - "rmse" => MultiSeriesCrossValidationFewshotLoss2.Rmse, - "smape" => MultiSeriesCrossValidationFewshotLoss2.Smape, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotSteps.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotSteps.Json.g.cs deleted file mode 100644 index efe3e6a..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotSteps.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidationFewshotSteps - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationFewshotSteps? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidationFewshotSteps), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationFewshotSteps; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationFewshotSteps? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidationFewshotSteps? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidationFewshotSteps), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationFewshotSteps; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotSteps.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotSteps.g.cs deleted file mode 100644 index 71315cc..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFewshotSteps.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Deprecated. Please use finetune_steps instead. - /// - [global::System.Obsolete("This model marked as deprecated.")] - public sealed partial class MultiSeriesCrossValidationFewshotSteps - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFinetuneLoss.g.cs deleted file mode 100644 index 30096a5..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationFinetuneLoss.g.cs +++ /dev/null @@ -1,76 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - ///
- public enum MultiSeriesCrossValidationFinetuneLoss - { - /// - /// - /// - Default, - /// - /// - /// - Mae, - /// - /// - /// - Mape, - /// - /// - /// - Mse, - /// - /// - /// - Rmse, - /// - /// - /// - Smape, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MultiSeriesCrossValidationFinetuneLossExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MultiSeriesCrossValidationFinetuneLoss value) - { - return value switch - { - MultiSeriesCrossValidationFinetuneLoss.Default => "default", - MultiSeriesCrossValidationFinetuneLoss.Mae => "mae", - MultiSeriesCrossValidationFinetuneLoss.Mape => "mape", - MultiSeriesCrossValidationFinetuneLoss.Mse => "mse", - MultiSeriesCrossValidationFinetuneLoss.Rmse => "rmse", - MultiSeriesCrossValidationFinetuneLoss.Smape => "smape", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MultiSeriesCrossValidationFinetuneLoss? ToEnum(string value) - { - return value switch - { - "default" => MultiSeriesCrossValidationFinetuneLoss.Default, - "mae" => MultiSeriesCrossValidationFinetuneLoss.Mae, - "mape" => MultiSeriesCrossValidationFinetuneLoss.Mape, - "mse" => MultiSeriesCrossValidationFinetuneLoss.Mse, - "rmse" => MultiSeriesCrossValidationFinetuneLoss.Rmse, - "smape" => MultiSeriesCrossValidationFinetuneLoss.Smape, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationLevel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationLevel.Json.g.cs deleted file mode 100644 index 1745083..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationLevel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidationLevel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationLevel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidationLevel), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationLevel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationLevel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidationLevel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidationLevel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationLevel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationLevel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationLevel.g.cs deleted file mode 100644 index c64bc78..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationLevel.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - public sealed partial class MultiSeriesCrossValidationLevel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationModel.Json.g.cs deleted file mode 100644 index 54ed0de..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidationModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidationModel), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidationModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidationModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationModel.g.cs deleted file mode 100644 index edb0d3b..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class MultiSeriesCrossValidationModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationStepSize.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationStepSize.Json.g.cs deleted file mode 100644 index 83a22fd..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationStepSize.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidationStepSize - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationStepSize? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidationStepSize), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationStepSize; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationStepSize? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidationStepSize? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidationStepSize), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationStepSize; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationStepSize.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationStepSize.g.cs deleted file mode 100644 index b249925..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationStepSize.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Step size between each cross validation window. If None it will be equal to the forecasting horizon. - /// - public sealed partial class MultiSeriesCrossValidationStepSize - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationX.Json.g.cs deleted file mode 100644 index 4a6189c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationX.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidationX - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationX? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidationX), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationX; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationX? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidationX? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidationX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationX; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationX.g.cs deleted file mode 100644 index aae2830..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - public sealed partial class MultiSeriesCrossValidationX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationY.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationY.Json.g.cs deleted file mode 100644 index 55f500f..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationY.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesCrossValidationY - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationY? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesCrossValidationY), - jsonSerializerContext) as global::Nixtla.MultiSeriesCrossValidationY; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesCrossValidationY? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesCrossValidationY? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesCrossValidationY), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesCrossValidationY; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationY.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationY.g.cs deleted file mode 100644 index 7cbb58d..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesCrossValidationY.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- public sealed partial class MultiSeriesCrossValidationY - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecast.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecast.Json.g.cs deleted file mode 100644 index 45bb3e3..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecast.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesForecast - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecast? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesForecast), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecast; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecast? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesForecast? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesForecast), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecast; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecast.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecast.g.cs deleted file mode 100644 index ee37a89..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecast.g.cs +++ /dev/null @@ -1,165 +0,0 @@ - -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesForecast - { - /// - /// Deprecated. Please use finetune_steps instead. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fewshot_steps")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? FewshotSteps { get; set; } - - /// - /// Deprecated. Please use finetune_loss instead. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fewshot_loss")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Nixtla.MultiSeriesForecastFewshotLoss2? FewshotLoss { get; set; } - - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - public string? Freq { get; set; } - - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList>? Level { get; set; } - - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fh")] - public int? Fh { get; set; } - - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("y")] - public object? Y { get; set; } - - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("x")] - public global::Nixtla.MultiSeriesInput? X { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { get; set; } - - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finetune_steps")] - public int? FinetuneSteps { get; set; } - - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Nixtla.JsonConverters.MultiSeriesForecastFinetuneLossJsonConverter))] - public global::Nixtla.MultiSeriesForecastFinetuneLoss? FinetuneLoss { 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. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - /// - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - /// - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - /// - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MultiSeriesForecast( - object? model, - string? freq, - global::System.Collections.Generic.IList>? level, - int? fh, - object? y, - global::Nixtla.MultiSeriesInput? x, - bool? cleanExFirst, - int? finetuneSteps, - global::Nixtla.MultiSeriesForecastFinetuneLoss? finetuneLoss) - { - this.Model = model; - this.Freq = freq; - this.Level = level; - this.Fh = fh; - this.Y = y; - this.X = x; - this.CleanExFirst = cleanExFirst; - this.FinetuneSteps = finetuneSteps; - this.FinetuneLoss = finetuneLoss; - } - - /// - /// Initializes a new instance of the class. - /// - public MultiSeriesForecast() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss.g.cs deleted file mode 100644 index c1a82bb..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Deprecated. Please use finetune_loss instead. - /// - [global::System.Obsolete("This model marked as deprecated.")] - public sealed partial class MultiSeriesForecastFewshotLoss - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss2.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss2.g.cs deleted file mode 100644 index 03b0873..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotLoss2.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public enum MultiSeriesForecastFewshotLoss2 - { - /// - /// - /// - Default, - /// - /// - /// - Mae, - /// - /// - /// - Mape, - /// - /// - /// - Mse, - /// - /// - /// - Rmse, - /// - /// - /// - Smape, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MultiSeriesForecastFewshotLoss2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MultiSeriesForecastFewshotLoss2 value) - { - return value switch - { - MultiSeriesForecastFewshotLoss2.Default => "default", - MultiSeriesForecastFewshotLoss2.Mae => "mae", - MultiSeriesForecastFewshotLoss2.Mape => "mape", - MultiSeriesForecastFewshotLoss2.Mse => "mse", - MultiSeriesForecastFewshotLoss2.Rmse => "rmse", - MultiSeriesForecastFewshotLoss2.Smape => "smape", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MultiSeriesForecastFewshotLoss2? ToEnum(string value) - { - return value switch - { - "default" => MultiSeriesForecastFewshotLoss2.Default, - "mae" => MultiSeriesForecastFewshotLoss2.Mae, - "mape" => MultiSeriesForecastFewshotLoss2.Mape, - "mse" => MultiSeriesForecastFewshotLoss2.Mse, - "rmse" => MultiSeriesForecastFewshotLoss2.Rmse, - "smape" => MultiSeriesForecastFewshotLoss2.Smape, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotSteps.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotSteps.Json.g.cs deleted file mode 100644 index 3d3b9c5..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotSteps.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesForecastFewshotSteps - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastFewshotSteps? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesForecastFewshotSteps), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecastFewshotSteps; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastFewshotSteps? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesForecastFewshotSteps? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesForecastFewshotSteps), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecastFewshotSteps; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotSteps.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotSteps.g.cs deleted file mode 100644 index 4035f21..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFewshotSteps.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Deprecated. Please use finetune_steps instead. - /// - [global::System.Obsolete("This model marked as deprecated.")] - public sealed partial class MultiSeriesForecastFewshotSteps - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFinetuneLoss.g.cs deleted file mode 100644 index 1cfcdd5..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastFinetuneLoss.g.cs +++ /dev/null @@ -1,76 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - ///
- public enum MultiSeriesForecastFinetuneLoss - { - /// - /// - /// - Default, - /// - /// - /// - Mae, - /// - /// - /// - Mape, - /// - /// - /// - Mse, - /// - /// - /// - Rmse, - /// - /// - /// - Smape, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MultiSeriesForecastFinetuneLossExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MultiSeriesForecastFinetuneLoss value) - { - return value switch - { - MultiSeriesForecastFinetuneLoss.Default => "default", - MultiSeriesForecastFinetuneLoss.Mae => "mae", - MultiSeriesForecastFinetuneLoss.Mape => "mape", - MultiSeriesForecastFinetuneLoss.Mse => "mse", - MultiSeriesForecastFinetuneLoss.Rmse => "rmse", - MultiSeriesForecastFinetuneLoss.Smape => "smape", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MultiSeriesForecastFinetuneLoss? ToEnum(string value) - { - return value switch - { - "default" => MultiSeriesForecastFinetuneLoss.Default, - "mae" => MultiSeriesForecastFinetuneLoss.Mae, - "mape" => MultiSeriesForecastFinetuneLoss.Mape, - "mse" => MultiSeriesForecastFinetuneLoss.Mse, - "rmse" => MultiSeriesForecastFinetuneLoss.Rmse, - "smape" => MultiSeriesForecastFinetuneLoss.Smape, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastLevel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastLevel.Json.g.cs deleted file mode 100644 index 6bb40e3..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastLevel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesForecastLevel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastLevel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesForecastLevel), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecastLevel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastLevel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesForecastLevel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesForecastLevel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecastLevel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastLevel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastLevel.g.cs deleted file mode 100644 index 5c8c3ee..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastLevel.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - public sealed partial class MultiSeriesForecastLevel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastModel.Json.g.cs deleted file mode 100644 index 4c5ea2e..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesForecastModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesForecastModel), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecastModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesForecastModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesForecastModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecastModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastModel.g.cs deleted file mode 100644 index 705619f..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class MultiSeriesForecastModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastX.g.cs deleted file mode 100644 index 0f1f31d..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - public sealed partial class MultiSeriesForecastX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastY.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastY.Json.g.cs deleted file mode 100644 index c745218..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastY.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesForecastY - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastY? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesForecastY), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecastY; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesForecastY? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesForecastY? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesForecastY), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecastY; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastY.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastY.g.cs deleted file mode 100644 index bd44650..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastY.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- public sealed partial class MultiSeriesForecastY - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesInput.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInput.Json.g.cs deleted file mode 100644 index 4ef73d2..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInput - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInput), - jsonSerializerContext) as global::Nixtla.MultiSeriesInput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInput? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInput; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInput.g.cs deleted file mode 100644 index 84f29bc..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInput.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesInput - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("columns")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Columns { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { 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 MultiSeriesInput( - global::System.Collections.Generic.IList columns, - global::System.Collections.Generic.IList data) - { - this.Columns = columns ?? throw new global::System.ArgumentNullException(nameof(columns)); - this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); - } - - /// - /// Initializes a new instance of the class. - /// - public MultiSeriesInput() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInputDataItem.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInputDataItem.Json.g.cs deleted file mode 100644 index e24125c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInputDataItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInputDataItem - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInputDataItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInputDataItem), - jsonSerializerContext) as global::Nixtla.MultiSeriesInputDataItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInputDataItem? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInputDataItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInputDataItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInputDataItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInputDataItem.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInputDataItem.g.cs deleted file mode 100644 index b49ab8a..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInputDataItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesInputDataItem - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecast.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecast.Json.g.cs deleted file mode 100644 index 45e25d6..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecast.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInsampleForecast - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecast? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInsampleForecast), - jsonSerializerContext) as global::Nixtla.MultiSeriesInsampleForecast; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecast? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInsampleForecast? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInsampleForecast), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInsampleForecast; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecast.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecast.g.cs deleted file mode 100644 index afd1cb4..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecast.g.cs +++ /dev/null @@ -1,109 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class MultiSeriesInsampleForecast - { - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - public string? Freq { get; set; } - - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList>? Level { get; set; } - - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("y")] - public object? Y { get; set; } - - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("x")] - public global::Nixtla.MultiSeriesInput? X { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { 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. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - /// - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public MultiSeriesInsampleForecast( - object? model, - string? freq, - global::System.Collections.Generic.IList>? level, - object? y, - global::Nixtla.MultiSeriesInput? x, - bool? cleanExFirst) - { - this.Model = model; - this.Freq = freq; - this.Level = level; - this.Y = y; - this.X = x; - this.CleanExFirst = cleanExFirst; - } - - /// - /// Initializes a new instance of the class. - /// - public MultiSeriesInsampleForecast() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastLevel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastLevel.Json.g.cs deleted file mode 100644 index 3f77cb4..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastLevel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInsampleForecastLevel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastLevel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInsampleForecastLevel), - jsonSerializerContext) as global::Nixtla.MultiSeriesInsampleForecastLevel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastLevel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInsampleForecastLevel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInsampleForecastLevel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInsampleForecastLevel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastLevel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastLevel.g.cs deleted file mode 100644 index b1908a9..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastLevel.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - public sealed partial class MultiSeriesInsampleForecastLevel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastModel.Json.g.cs deleted file mode 100644 index 1617f8c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInsampleForecastModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInsampleForecastModel), - jsonSerializerContext) as global::Nixtla.MultiSeriesInsampleForecastModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInsampleForecastModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInsampleForecastModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInsampleForecastModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastModel.g.cs deleted file mode 100644 index a5cfd92..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class MultiSeriesInsampleForecastModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastX.Json.g.cs deleted file mode 100644 index 3b94616..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastX.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInsampleForecastX - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastX? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInsampleForecastX), - jsonSerializerContext) as global::Nixtla.MultiSeriesInsampleForecastX; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastX? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInsampleForecastX? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInsampleForecastX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInsampleForecastX; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastX.g.cs deleted file mode 100644 index 98ff396..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "ex_1", "ex_2"], "data": [["ts_0", "2021-01-01", 0.2, 0.67], ["ts_0", "2021-01-02", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values. - /// - public sealed partial class MultiSeriesInsampleForecastX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastY.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastY.Json.g.cs deleted file mode 100644 index 40b9d04..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastY.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class MultiSeriesInsampleForecastY - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastY? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.MultiSeriesInsampleForecastY), - jsonSerializerContext) as global::Nixtla.MultiSeriesInsampleForecastY; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.MultiSeriesInsampleForecastY? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.MultiSeriesInsampleForecastY? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.MultiSeriesInsampleForecastY), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesInsampleForecastY; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastY.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastY.g.cs deleted file mode 100644 index 243d2c9..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesInsampleForecastY.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {"columns": ["unique_id", "ds", "y"], "data": [["ts_0", "2021-01-01", 0.7], ["ts_0", "2021-01-02", 0.8]}.
- /// Default Value: {"columns":["unique_id","ds","y"],"data":[["PeytonManning","2015-12-02",4.390508031418598],["PeytonManning","2015-12-03",5.721514930979356],["PeytonManning","2015-12-04",4.822107008573151],["PeytonManning","2015-12-05",4.359065463975175],["PeytonManning","2015-12-06",3.3892383947112377],["PeytonManning","2015-12-07",5.167152904533249],["PeytonManning","2015-12-08",3.50069769010154],["PeytonManning","2015-12-09",7.134184006256638],["PeytonManning","2015-12-10",7.709302084008234],["PeytonManning","2015-12-11",3.0675321506062216],["PeytonManning","2015-12-12",6.333800304661317],["PeytonManning","2015-12-13",4.231159358023236],["PeytonManning","2015-12-14",4.5443564887514585],["PeytonManning","2015-12-15",7.404773106341288],["PeytonManning","2015-12-16",0.5682884655830955],["PeytonManning","2015-12-17",0.6970343976123257],["PeytonManning","2015-12-18",0.16174717952260576],["PeytonManning","2015-12-19",6.660958764383504],["PeytonManning","2015-12-20",6.225254007598804],["PeytonManning","2015-12-21",6.960097185974553],["PeytonManning","2015-12-22",7.828946737862112],["PeytonManning","2015-12-23",6.393268513733789],["PeytonManning","2015-12-24",3.6918348980234548],["PeytonManning","2015-12-25",6.244233410291644],["PeytonManning","2015-12-26",0.9461954069514658],["PeytonManning","2015-12-27",5.119368170620191],["PeytonManning","2015-12-28",1.1468262992723712],["PeytonManning","2015-12-29",7.557351336396671],["PeytonManning","2015-12-30",4.174786574000573],["PeytonManning","2015-12-31",3.3172955199241887],["PeytonManning","2016-01-01",2.1164448968370158],["PeytonManning","2016-01-02",6.193869515473733],["PeytonManning","2016-01-03",3.6492026577323884],["PeytonManning","2016-01-04",4.547471590949188],["PeytonManning","2016-01-05",0.15031840349084113],["PeytonManning","2016-01-06",4.9410839766070165],["PeytonManning","2016-01-07",4.896765781779371],["PeytonManning","2016-01-08",4.935471974998055],["PeytonManning","2016-01-09",7.549984628116993],["PeytonManning","2016-01-10",5.454562392827867],["PeytonManning","2016-01-11",2.876063204590288],["PeytonManning","2016-01-12",3.4962556303947316],["PeytonManning","2016-01-13",5.581049567418119],["TomBrady","2015-12-02",4.390508031418598],["TomBrady","2015-12-03",5.721514930979356],["TomBrady","2015-12-04",4.822107008573151],["TomBrady","2015-12-05",4.359065463975175],["TomBrady","2015-12-06",3.3892383947112377],["TomBrady","2015-12-07",5.167152904533249],["TomBrady","2015-12-08",3.50069769010154],["TomBrady","2015-12-09",7.134184006256638],["TomBrady","2015-12-10",7.709302084008234],["TomBrady","2015-12-11",3.0675321506062216],["TomBrady","2015-12-12",6.333800304661317],["TomBrady","2015-12-13",4.231159358023236],["TomBrady","2015-12-14",4.5443564887514585],["TomBrady","2015-12-15",7.404773106341288],["TomBrady","2015-12-16",0.5682884655830955],["TomBrady","2015-12-17",0.6970343976123257],["TomBrady","2015-12-18",0.16174717952260576],["TomBrady","2015-12-19",6.660958764383504],["TomBrady","2015-12-20",6.225254007598804],["TomBrady","2015-12-21",6.960097185974553],["TomBrady","2015-12-22",7.828946737862112],["TomBrady","2015-12-23",6.393268513733789],["TomBrady","2015-12-24",3.6918348980234548],["TomBrady","2015-12-25",6.244233410291644],["TomBrady","2015-12-26",0.9461954069514658],["TomBrady","2015-12-27",5.119368170620191],["TomBrady","2015-12-28",1.1468262992723712],["TomBrady","2015-12-29",7.557351336396671],["TomBrady","2015-12-30",4.174786574000573],["TomBrady","2015-12-31",3.3172955199241887],["TomBrady","2016-01-01",2.1164448968370158],["TomBrady","2016-01-02",6.193869515473733],["TomBrady","2016-01-03",3.6492026577323884],["TomBrady","2016-01-04",4.547471590949188],["TomBrady","2016-01-05",0.15031840349084113],["TomBrady","2016-01-06",4.9410839766070165],["TomBrady","2016-01-07",4.896765781779371],["TomBrady","2016-01-08",4.935471974998055],["TomBrady","2016-01-09",7.549984628116993],["TomBrady","2016-01-10",5.454562392827867],["TomBrady","2016-01-11",2.876063204590288],["TomBrady","2016-01-12",3.4962556303947316],["TomBrady","2016-01-13",5.581049567418119]]} - ///
- public sealed partial class MultiSeriesInsampleForecastY - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInput.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInput.g.cs index 1e976d0..968861d 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInput.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInput.g.cs @@ -13,7 +13,7 @@ public sealed partial class OnlineAnomalyInput /// [global::System.Text.Json.Serialization.JsonPropertyName("series")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Nixtla.SeriesWithExogenous Series { get; set; } + public required global::Nixtla.SeriesWithFutureExogenous Series { get; set; } /// /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. @@ -49,7 +49,7 @@ public sealed partial class OnlineAnomalyInput /// Default Value: timegpt-1 /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } + public string? Model { get; set; } /// /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
@@ -74,7 +74,7 @@ public sealed partial class OnlineAnomalyInput public int? FinetuneSteps { get; set; } /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] @@ -82,7 +82,7 @@ public sealed partial class OnlineAnomalyInput public global::Nixtla.OnlineAnomalyInputFinetuneLoss? FinetuneLoss { get; set; } /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("finetune_depth")] @@ -100,6 +100,39 @@ public sealed partial class OnlineAnomalyInput [global::System.Text.Json.Serialization.JsonPropertyName("step_size")] public int? StepSize { get; set; } + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hist_exog")] + public global::System.Collections.Generic.IList? HistExog { get; set; } + + /// + /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("refit")] + public bool? Refit { get; set; } + + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("multivariate")] + public bool? Multivariate { get; set; } + + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_parameters")] + public object? ModelParameters { get; set; } + + /// + /// Compute the exogenous features contributions to the forecast.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("feature_contributions")] + public bool? FeatureContributions { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -140,11 +173,11 @@ public sealed partial class OnlineAnomalyInput /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -153,23 +186,46 @@ public sealed partial class OnlineAnomalyInput /// /// Step size between each cross validation window. If None it will be equal to the forecasting horizon. /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + /// + /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
+ /// Default Value: true + /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// Default Value: false + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OnlineAnomalyInput( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, int detectionSize, int h, global::Nixtla.OnlineAnomalyInputThresholdMethod? thresholdMethod, - object? model, + string? model, bool? cleanExFirst, global::Nixtla.AnyOf? level, int? finetuneSteps, global::Nixtla.OnlineAnomalyInputFinetuneLoss? finetuneLoss, int? finetuneDepth, string? finetunedModelId, - int? stepSize) + int? stepSize, + global::System.Collections.Generic.IList? histExog, + bool? refit, + bool? multivariate, + object? modelParameters, + bool? featureContributions) { this.Series = series ?? throw new global::System.ArgumentNullException(nameof(series)); this.Freq = freq ?? throw new global::System.ArgumentNullException(nameof(freq)); @@ -184,6 +240,11 @@ public OnlineAnomalyInput( this.FinetuneDepth = finetuneDepth; this.FinetunedModelId = finetunedModelId; this.StepSize = stepSize; + this.HistExog = histExog; + this.Refit = refit; + this.Multivariate = multivariate; + this.ModelParameters = modelParameters; + this.FeatureContributions = featureContributions; } /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputFinetuneLoss.g.cs index e9e2e34..034ca77 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputFinetuneLoss.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputFinetuneLoss.g.cs @@ -4,7 +4,7 @@ namespace Nixtla { /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default ///
public enum OnlineAnomalyInputFinetuneLoss diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputHistExog.Json.g.cs similarity index 88% rename from src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputHistExog.Json.g.cs index 16870ca..51e3f02 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputHistExog.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class OnlineAnomalyInputModel + public sealed partial class OnlineAnomalyInputHistExog { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.OnlineAnomalyInputModel? FromJson( + public static global::Nixtla.OnlineAnomalyInputHistExog? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.OnlineAnomalyInputModel), - jsonSerializerContext) as global::Nixtla.OnlineAnomalyInputModel; + typeof(global::Nixtla.OnlineAnomalyInputHistExog), + jsonSerializerContext) as global::Nixtla.OnlineAnomalyInputHistExog; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.OnlineAnomalyInputModel? FromJson( + public static global::Nixtla.OnlineAnomalyInputHistExog? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.OnlineAnomalyInputModel? FromJson( + public static global::Nixtla.OnlineAnomalyInputHistExog? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.OnlineAnomalyInputModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.OnlineAnomalyInputModel; + typeof(global::Nixtla.OnlineAnomalyInputHistExog), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.OnlineAnomalyInputHistExog; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputHistExog.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputHistExog.g.cs new file mode 100644 index 0000000..6c0d5b2 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputHistExog.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + public sealed partial class OnlineAnomalyInputHistExog + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModel.g.cs deleted file mode 100644 index 245615e..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class OnlineAnomalyInputModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.GetModelParamsModelParamsGetModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters.Json.g.cs similarity index 86% rename from src/libs/Nixtla/Generated/Nixtla.Models.GetModelParamsModelParamsGetModel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters.Json.g.cs index f8ab28e..1fc9dd8 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.GetModelParamsModelParamsGetModel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class GetModelParamsModelParamsGetModel + public sealed partial class OnlineAnomalyInputModelParameters { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.GetModelParamsModelParamsGetModel? FromJson( + public static global::Nixtla.OnlineAnomalyInputModelParameters? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.GetModelParamsModelParamsGetModel), - jsonSerializerContext) as global::Nixtla.GetModelParamsModelParamsGetModel; + typeof(global::Nixtla.OnlineAnomalyInputModelParameters), + jsonSerializerContext) as global::Nixtla.OnlineAnomalyInputModelParameters; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.GetModelParamsModelParamsGetModel? FromJson( + public static global::Nixtla.OnlineAnomalyInputModelParameters? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.GetModelParamsModelParamsGetModel? FromJson( + public static global::Nixtla.OnlineAnomalyInputModelParameters? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.GetModelParamsModelParamsGetModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.GetModelParamsModelParamsGetModel; + typeof(global::Nixtla.OnlineAnomalyInputModelParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.OnlineAnomalyInputModelParameters; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters.g.cs new file mode 100644 index 0000000..2a7682c --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + public sealed partial class OnlineAnomalyInputModelParameters + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.InSampleOutputFeatureContributions.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters2.Json.g.cs similarity index 86% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputFeatureContributions.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters2.Json.g.cs index 68f00b7..5650d70 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputFeatureContributions.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters2.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class InSampleOutputFeatureContributions + public sealed partial class OnlineAnomalyInputModelParameters2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.InSampleOutputFeatureContributions? FromJson( + public static global::Nixtla.OnlineAnomalyInputModelParameters2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.InSampleOutputFeatureContributions), - jsonSerializerContext) as global::Nixtla.InSampleOutputFeatureContributions; + typeof(global::Nixtla.OnlineAnomalyInputModelParameters2), + jsonSerializerContext) as global::Nixtla.OnlineAnomalyInputModelParameters2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.InSampleOutputFeatureContributions? FromJson( + public static global::Nixtla.OnlineAnomalyInputModelParameters2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.InSampleOutputFeatureContributions? FromJson( + public static global::Nixtla.OnlineAnomalyInputModelParameters2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.InSampleOutputFeatureContributions), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleOutputFeatureContributions; + typeof(global::Nixtla.OnlineAnomalyInputModelParameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.OnlineAnomalyInputModelParameters2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.GetModelParamsModelParamsGetModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters2.g.cs similarity index 87% rename from src/libs/Nixtla/Generated/Nixtla.Models.GetModelParamsModelParamsGetModel.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters2.g.cs index ac2218a..aaf4754 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.GetModelParamsModelParamsGetModel.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.OnlineAnomalyInputModelParameters2.g.cs @@ -6,7 +6,7 @@ namespace Nixtla /// /// /// - public sealed partial class GetModelParamsModelParamsGetModel + public sealed partial class OnlineAnomalyInputModelParameters2 { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.Series.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.Series.Json.g.cs deleted file mode 100644 index 9129b75..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.Series.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class Series - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.Series? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.Series), - jsonSerializerContext) as global::Nixtla.Series; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.Series? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.Series? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.Series), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.Series; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.Series.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.Series.g.cs deleted file mode 100644 index fe64946..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.Series.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class Series - { - /// - /// Historic values of the target. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("y")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Y { get; set; } - - /// - /// Sizes of the individual series. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sizes")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Sizes { 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. - /// - /// - /// Historic values of the target. - /// - /// - /// Sizes of the individual series. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Series( - global::System.Collections.Generic.IList y, - global::System.Collections.Generic.IList sizes) - { - this.Y = y ?? throw new global::System.ArgumentNullException(nameof(y)); - this.Sizes = sizes ?? throw new global::System.ArgumentNullException(nameof(sizes)); - } - - /// - /// Initializes a new instance of the class. - /// - public Series() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenous.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenous.g.cs deleted file mode 100644 index a040ba0..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenous.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class SeriesWithExogenous - { - /// - /// Historic values of the exogenous features. Each feature must be a list of the same size as the target (y). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("X")] - public global::System.Collections.Generic.IList>? X { get; set; } - - /// - /// Historic values of the target. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("y")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Y { get; set; } - - /// - /// Sizes of the individual series. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sizes")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Sizes { 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. - /// - /// - /// Historic values of the target. - /// - /// - /// Sizes of the individual series. - /// - /// - /// Historic values of the exogenous features. Each feature must be a list of the same size as the target (y). - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SeriesWithExogenous( - global::System.Collections.Generic.IList y, - global::System.Collections.Generic.IList sizes, - global::System.Collections.Generic.IList>? x) - { - this.X = x; - this.Y = y ?? throw new global::System.ArgumentNullException(nameof(y)); - this.Sizes = sizes ?? throw new global::System.ArgumentNullException(nameof(sizes)); - } - - /// - /// Initializes a new instance of the class. - /// - public SeriesWithExogenous() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenousX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenousX.Json.g.cs deleted file mode 100644 index 1ac3d28..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenousX.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SeriesWithExogenousX - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SeriesWithExogenousX? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SeriesWithExogenousX), - jsonSerializerContext) as global::Nixtla.SeriesWithExogenousX; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SeriesWithExogenousX? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SeriesWithExogenousX? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SeriesWithExogenousX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SeriesWithExogenousX; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenousX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenousX.g.cs deleted file mode 100644 index d12f9d0..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenousX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Historic values of the exogenous features. Each feature must be a list of the same size as the target (y). - /// - public sealed partial class SeriesWithExogenousX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenous.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenous.g.cs index 59bdbda..de048d5 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenous.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenous.g.cs @@ -12,13 +12,19 @@ public sealed partial class SeriesWithFutureExogenous /// Future values of the exogenous features. Each feature must be a list of size number of series times the forecast horizon (h). /// [global::System.Text.Json.Serialization.JsonPropertyName("X_future")] - public global::System.Collections.Generic.IList>? XFuture { get; set; } + public global::System.Collections.Generic.IList>>? XFuture { get; set; } /// /// Historic values of the exogenous features. Each feature must be a list of the same size as the target (y). /// [global::System.Text.Json.Serialization.JsonPropertyName("X")] - public global::System.Collections.Generic.IList>? X { get; set; } + public global::System.Collections.Generic.IList>>? X { get; set; } + + /// + /// Zero-based indices of the columns in X that are categorical features. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("categorical_exog")] + public global::System.Collections.Generic.IList? CategoricalExog { get; set; } /// /// Historic values of the target. @@ -55,17 +61,22 @@ public sealed partial class SeriesWithFutureExogenous /// /// Historic values of the exogenous features. Each feature must be a list of the same size as the target (y). /// + /// + /// Zero-based indices of the columns in X that are categorical features. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SeriesWithFutureExogenous( global::System.Collections.Generic.IList y, global::System.Collections.Generic.IList sizes, - global::System.Collections.Generic.IList>? xFuture, - global::System.Collections.Generic.IList>? x) + global::System.Collections.Generic.IList>>? xFuture, + global::System.Collections.Generic.IList>>? x, + global::System.Collections.Generic.IList? categoricalExog) { this.XFuture = xFuture; this.X = x; + this.CategoricalExog = categoricalExog; this.Y = y ?? throw new global::System.ArgumentNullException(nameof(y)); this.Sizes = sizes ?? throw new global::System.ArgumentNullException(nameof(sizes)); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenous.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenousCategoricalExog.Json.g.cs similarity index 86% rename from src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenous.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenousCategoricalExog.Json.g.cs index 0bb1b67..41862c5 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithExogenous.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenousCategoricalExog.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class SeriesWithExogenous + public sealed partial class SeriesWithFutureExogenousCategoricalExog { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.SeriesWithExogenous? FromJson( + public static global::Nixtla.SeriesWithFutureExogenousCategoricalExog? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.SeriesWithExogenous), - jsonSerializerContext) as global::Nixtla.SeriesWithExogenous; + typeof(global::Nixtla.SeriesWithFutureExogenousCategoricalExog), + jsonSerializerContext) as global::Nixtla.SeriesWithFutureExogenousCategoricalExog; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.SeriesWithExogenous? FromJson( + public static global::Nixtla.SeriesWithFutureExogenousCategoricalExog? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.SeriesWithExogenous? FromJson( + public static global::Nixtla.SeriesWithFutureExogenousCategoricalExog? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.SeriesWithExogenous), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SeriesWithExogenous; + typeof(global::Nixtla.SeriesWithFutureExogenousCategoricalExog), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SeriesWithFutureExogenousCategoricalExog; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenousCategoricalExog.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenousCategoricalExog.g.cs new file mode 100644 index 0000000..89d7136 --- /dev/null +++ b/src/libs/Nixtla/Generated/Nixtla.Models.SeriesWithFutureExogenousCategoricalExog.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Nixtla +{ + /// + /// Zero-based indices of the columns in X that are categorical features. + /// + public sealed partial class SeriesWithFutureExogenousCategoricalExog + { + + /// + /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesForecast.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecast.Json.g.cs deleted file mode 100644 index 85dea2e..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecast.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecast - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecast? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecast), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecast; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecast? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecast? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecast), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecast; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecast.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecast.g.cs deleted file mode 100644 index 626a67c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecast.g.cs +++ /dev/null @@ -1,165 +0,0 @@ - -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class SingleSeriesForecast - { - /// - /// Deprecated. Please use finetune_steps instead. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fewshot_steps")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? FewshotSteps { get; set; } - - /// - /// Deprecated. Please use finetune_loss instead. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fewshot_loss")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Nixtla.SingleSeriesForecastFewshotLoss2? FewshotLoss { get; set; } - - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - public string? Freq { get; set; } - - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList>? Level { get; set; } - - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fh")] - public int? Fh { get; set; } - - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("y")] - public object? Y { get; set; } - - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("x")] - public global::System.Collections.Generic.Dictionary>? X { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { get; set; } - - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finetune_steps")] - public int? FinetuneSteps { get; set; } - - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finetune_loss")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Nixtla.JsonConverters.SingleSeriesForecastFinetuneLossJsonConverter))] - public global::Nixtla.SingleSeriesForecastFinetuneLoss? FinetuneLoss { 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. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.
- /// Default Value: 7 - /// - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - /// - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// - /// - /// The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.
- /// Default Value: 0 - /// - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SingleSeriesForecast( - object? model, - string? freq, - global::System.Collections.Generic.IList>? level, - int? fh, - object? y, - global::System.Collections.Generic.Dictionary>? x, - bool? cleanExFirst, - int? finetuneSteps, - global::Nixtla.SingleSeriesForecastFinetuneLoss? finetuneLoss) - { - this.Model = model; - this.Freq = freq; - this.Level = level; - this.Fh = fh; - this.Y = y; - this.X = x; - this.CleanExFirst = cleanExFirst; - this.FinetuneSteps = finetuneSteps; - this.FinetuneLoss = finetuneLoss; - } - - /// - /// Initializes a new instance of the class. - /// - public SingleSeriesForecast() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss.Json.g.cs deleted file mode 100644 index 17e3d1f..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecastFewshotLoss - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastFewshotLoss? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecastFewshotLoss), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastFewshotLoss; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastFewshotLoss? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecastFewshotLoss? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecastFewshotLoss), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastFewshotLoss; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss.g.cs deleted file mode 100644 index 2c93ed7..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Deprecated. Please use finetune_loss instead. - /// - [global::System.Obsolete("This model marked as deprecated.")] - public sealed partial class SingleSeriesForecastFewshotLoss - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss2.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss2.g.cs deleted file mode 100644 index 46853e1..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotLoss2.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public enum SingleSeriesForecastFewshotLoss2 - { - /// - /// - /// - Default, - /// - /// - /// - Mae, - /// - /// - /// - Mape, - /// - /// - /// - Mse, - /// - /// - /// - Rmse, - /// - /// - /// - Smape, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SingleSeriesForecastFewshotLoss2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SingleSeriesForecastFewshotLoss2 value) - { - return value switch - { - SingleSeriesForecastFewshotLoss2.Default => "default", - SingleSeriesForecastFewshotLoss2.Mae => "mae", - SingleSeriesForecastFewshotLoss2.Mape => "mape", - SingleSeriesForecastFewshotLoss2.Mse => "mse", - SingleSeriesForecastFewshotLoss2.Rmse => "rmse", - SingleSeriesForecastFewshotLoss2.Smape => "smape", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SingleSeriesForecastFewshotLoss2? ToEnum(string value) - { - return value switch - { - "default" => SingleSeriesForecastFewshotLoss2.Default, - "mae" => SingleSeriesForecastFewshotLoss2.Mae, - "mape" => SingleSeriesForecastFewshotLoss2.Mape, - "mse" => SingleSeriesForecastFewshotLoss2.Mse, - "rmse" => SingleSeriesForecastFewshotLoss2.Rmse, - "smape" => SingleSeriesForecastFewshotLoss2.Smape, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotSteps.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotSteps.Json.g.cs deleted file mode 100644 index 988ae64..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotSteps.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecastFewshotSteps - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastFewshotSteps? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecastFewshotSteps), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastFewshotSteps; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastFewshotSteps? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecastFewshotSteps? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecastFewshotSteps), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastFewshotSteps; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotSteps.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotSteps.g.cs deleted file mode 100644 index cff53e7..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFewshotSteps.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Deprecated. Please use finetune_steps instead. - /// - [global::System.Obsolete("This model marked as deprecated.")] - public sealed partial class SingleSeriesForecastFewshotSteps - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFinetuneLoss.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFinetuneLoss.g.cs deleted file mode 100644 index b2f9f0a..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastFinetuneLoss.g.cs +++ /dev/null @@ -1,76 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
- /// Default Value: default - ///
- public enum SingleSeriesForecastFinetuneLoss - { - /// - /// - /// - Default, - /// - /// - /// - Mae, - /// - /// - /// - Mape, - /// - /// - /// - Mse, - /// - /// - /// - Rmse, - /// - /// - /// - Smape, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SingleSeriesForecastFinetuneLossExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SingleSeriesForecastFinetuneLoss value) - { - return value switch - { - SingleSeriesForecastFinetuneLoss.Default => "default", - SingleSeriesForecastFinetuneLoss.Mae => "mae", - SingleSeriesForecastFinetuneLoss.Mape => "mape", - SingleSeriesForecastFinetuneLoss.Mse => "mse", - SingleSeriesForecastFinetuneLoss.Rmse => "rmse", - SingleSeriesForecastFinetuneLoss.Smape => "smape", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SingleSeriesForecastFinetuneLoss? ToEnum(string value) - { - return value switch - { - "default" => SingleSeriesForecastFinetuneLoss.Default, - "mae" => SingleSeriesForecastFinetuneLoss.Mae, - "mape" => SingleSeriesForecastFinetuneLoss.Mape, - "mse" => SingleSeriesForecastFinetuneLoss.Mse, - "rmse" => SingleSeriesForecastFinetuneLoss.Rmse, - "smape" => SingleSeriesForecastFinetuneLoss.Smape, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastLevel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastLevel.Json.g.cs deleted file mode 100644 index e6e892b..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastLevel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecastLevel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastLevel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecastLevel), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastLevel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastLevel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecastLevel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecastLevel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastLevel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastLevel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastLevel.g.cs deleted file mode 100644 index d4801fc..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastLevel.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - public sealed partial class SingleSeriesForecastLevel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastModel.Json.g.cs deleted file mode 100644 index a0538b9..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecastModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecastModel), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecastModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecastModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastModel.g.cs deleted file mode 100644 index eca572e..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class SingleSeriesForecastModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX.g.cs deleted file mode 100644 index e673fbe..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - public sealed partial class SingleSeriesForecastX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX2.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX2.Json.g.cs deleted file mode 100644 index ff39c6e..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecastX2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastX2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecastX2), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastX2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastX2? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecastX2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecastX2), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastX2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastY.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastY.Json.g.cs deleted file mode 100644 index 891d447..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastY.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesForecastY - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastY? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesForecastY), - jsonSerializerContext) as global::Nixtla.SingleSeriesForecastY; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesForecastY? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesForecastY? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesForecastY), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesForecastY; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastY.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastY.g.cs deleted file mode 100644 index ecde5d6..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastY.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - ///
- public sealed partial class SingleSeriesForecastY - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecast.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecast.Json.g.cs deleted file mode 100644 index 141380a..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecast.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesInsampleForecast - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesInsampleForecast? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesInsampleForecast), - jsonSerializerContext) as global::Nixtla.SingleSeriesInsampleForecast; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesInsampleForecast? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesInsampleForecast? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesInsampleForecast), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesInsampleForecast; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecast.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecast.g.cs deleted file mode 100644 index 549c366..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecast.g.cs +++ /dev/null @@ -1,109 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class SingleSeriesInsampleForecast - { - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public object? Model { get; set; } - - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("freq")] - public string? Freq { get; set; } - - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("level")] - public global::System.Collections.Generic.IList>? Level { get; set; } - - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("y")] - public object? Y { get; set; } - - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("x")] - public object? X { get; set; } - - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("clean_ex_first")] - public bool? CleanExFirst { 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. - /// - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - /// - /// - /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.
- /// Default Value: D - /// - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - /// - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - /// - /// A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.
- /// Default Value: true - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SingleSeriesInsampleForecast( - object? model, - string? freq, - global::System.Collections.Generic.IList>? level, - object? y, - object? x, - bool? cleanExFirst) - { - this.Model = model; - this.Freq = freq; - this.Level = level; - this.Y = y; - this.X = x; - this.CleanExFirst = cleanExFirst; - } - - /// - /// Initializes a new instance of the class. - /// - public SingleSeriesInsampleForecast() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastLevel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastLevel.Json.g.cs deleted file mode 100644 index 7458a10..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastLevel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesInsampleForecastLevel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesInsampleForecastLevel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesInsampleForecastLevel), - jsonSerializerContext) as global::Nixtla.SingleSeriesInsampleForecastLevel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesInsampleForecastLevel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesInsampleForecastLevel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesInsampleForecastLevel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesInsampleForecastLevel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastLevel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastLevel.g.cs deleted file mode 100644 index 8886b87..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastLevel.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals. - /// - public sealed partial class SingleSeriesInsampleForecastLevel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastModel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastModel.Json.g.cs deleted file mode 100644 index e82645f..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class SingleSeriesInsampleForecastModel - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesInsampleForecastModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.SingleSeriesInsampleForecastModel), - jsonSerializerContext) as global::Nixtla.SingleSeriesInsampleForecastModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.SingleSeriesInsampleForecastModel? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.SingleSeriesInsampleForecastModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.SingleSeriesInsampleForecastModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.SingleSeriesInsampleForecastModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastModel.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastModel.g.cs deleted file mode 100644 index 2799e48..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastModel.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
- /// Default Value: timegpt-1 - ///
- public sealed partial class SingleSeriesInsampleForecastModel - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastX.g.cs deleted file mode 100644 index 8ed0b59..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastX.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {"2021-01-01": [0.1], "2021-01-02": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values. - /// - public sealed partial class SingleSeriesInsampleForecastX - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastY.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastY.g.cs deleted file mode 100644 index 9e3c8ad..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesInsampleForecastY.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {"2021-01-01": 0.1, "2021-01-02": 0.4}.
- /// Default Value: {"2015-12-02":4.390508031418598,"2015-12-03":5.721514930979356,"2015-12-04":4.822107008573151,"2015-12-05":4.359065463975175,"2015-12-06":3.3892383947112377,"2015-12-07":5.167152904533249,"2015-12-08":3.50069769010154,"2015-12-09":7.134184006256638,"2015-12-10":7.709302084008234,"2015-12-11":3.0675321506062216,"2015-12-12":6.333800304661317,"2015-12-13":4.231159358023236,"2015-12-14":4.5443564887514585,"2015-12-15":7.404773106341288,"2015-12-16":0.5682884655830955,"2015-12-17":0.6970343976123257,"2015-12-18":0.16174717952260576,"2015-12-19":6.660958764383504,"2015-12-20":6.225254007598804,"2015-12-21":6.960097185974553,"2015-12-22":7.828946737862112,"2015-12-23":6.393268513733789,"2015-12-24":3.6918348980234548,"2015-12-25":6.244233410291644,"2015-12-26":0.9461954069514658,"2015-12-27":5.119368170620191,"2015-12-28":1.1468262992723712,"2015-12-29":7.557351336396671,"2015-12-30":4.174786574000573,"2015-12-31":3.3172955199241887,"2016-01-01":2.1164448968370158,"2016-01-02":6.193869515473733,"2016-01-03":3.6492026577323884,"2016-01-04":4.547471590949188,"2016-01-05":0.15031840349084113,"2016-01-06":4.9410839766070165,"2016-01-07":4.896765781779371,"2016-01-08":4.935471974998055,"2016-01-09":7.549984628116993,"2016-01-10":5.454562392827867,"2016-01-11":2.876063204590288,"2016-01-12":3.4962556303947316,"2016-01-13":5.581049567418119} - ///
- public sealed partial class SingleSeriesInsampleForecastY - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.TimegptHistoricTimegptHistoricPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptHistoricTimegptHistoricPostResponse.Json.g.cs deleted file mode 100644 index 7f0e36c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptHistoricTimegptHistoricPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class TimegptHistoricTimegptHistoricPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.TimegptHistoricTimegptHistoricPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.TimegptHistoricTimegptHistoricPostResponse), - jsonSerializerContext) as global::Nixtla.TimegptHistoricTimegptHistoricPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.TimegptHistoricTimegptHistoricPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.TimegptHistoricTimegptHistoricPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.TimegptHistoricTimegptHistoricPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.TimegptHistoricTimegptHistoricPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptHistoricTimegptHistoricPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptHistoricTimegptHistoricPostResponse.g.cs deleted file mode 100644 index c0d3641..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptHistoricTimegptHistoricPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class TimegptHistoricTimegptHistoricPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse.Json.g.cs deleted file mode 100644 index 26b0643..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse), - jsonSerializerContext) as global::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse.g.cs deleted file mode 100644 index 917cabb..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class TimegptMultiSeriesAnomaliesTimegptMultiSeriesAnomaliesPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse.Json.g.cs deleted file mode 100644 index f343fcf..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse), - jsonSerializerContext) as global::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse.g.cs deleted file mode 100644 index 4036776..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class TimegptMultiSeriesCrossValidationTimegptMultiSeriesCrossValidationPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse.Json.g.cs deleted file mode 100644 index 7e75804..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse), - jsonSerializerContext) as global::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse.g.cs deleted file mode 100644 index 81034a4..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class TimegptMultiSeriesHistoricTimegptMultiSeriesHistoricPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesTimegptMultiSeriesPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesTimegptMultiSeriesPostResponse.Json.g.cs deleted file mode 100644 index a581c06..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesTimegptMultiSeriesPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class TimegptMultiSeriesTimegptMultiSeriesPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse), - jsonSerializerContext) as global::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.TimegptMultiSeriesTimegptMultiSeriesPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesTimegptMultiSeriesPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesTimegptMultiSeriesPostResponse.g.cs deleted file mode 100644 index 8ae976c..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptMultiSeriesTimegptMultiSeriesPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class TimegptMultiSeriesTimegptMultiSeriesPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.TimegptTimegptPostResponse.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptTimegptPostResponse.Json.g.cs deleted file mode 100644 index 5b116ef..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptTimegptPostResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Nixtla -{ - public sealed partial class TimegptTimegptPostResponse - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Nixtla.TimegptTimegptPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Nixtla.TimegptTimegptPostResponse), - jsonSerializerContext) as global::Nixtla.TimegptTimegptPostResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Nixtla.TimegptTimegptPostResponse? FromJson( - string json) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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::Nixtla.TimegptTimegptPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Nixtla.SourceGenerationContext.Default); - } - - 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::Nixtla.TimegptTimegptPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.TimegptTimegptPostResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Nixtla.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptTimegptPostResponse.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.TimegptTimegptPostResponse.g.cs deleted file mode 100644 index cbf1bd8..0000000 --- a/src/libs/Nixtla/Generated/Nixtla.Models.TimegptTimegptPostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Nixtla -{ - /// - /// - /// - public sealed partial class TimegptTimegptPostResponse - { - - /// - /// 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/Nixtla/Generated/Nixtla.Models.ValidationError.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationError.g.cs index f154b2f..bce0b36 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.ValidationError.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.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/Nixtla/Generated/Nixtla.Models.InSampleInputLevel.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorCtx.Json.g.cs similarity index 89% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputLevel.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorCtx.Json.g.cs index c6f0680..134fe2b 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleInputLevel.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorCtx.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class InSampleInputLevel + public sealed partial class ValidationErrorCtx { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.InSampleInputLevel? FromJson( + public static global::Nixtla.ValidationErrorCtx? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.InSampleInputLevel), - jsonSerializerContext) as global::Nixtla.InSampleInputLevel; + typeof(global::Nixtla.ValidationErrorCtx), + jsonSerializerContext) as global::Nixtla.ValidationErrorCtx; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.InSampleInputLevel? FromJson( + public static global::Nixtla.ValidationErrorCtx? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.InSampleInputLevel? FromJson( + public static global::Nixtla.ValidationErrorCtx? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.InSampleInputLevel), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.InSampleInputLevel; + typeof(global::Nixtla.ValidationErrorCtx), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.ValidationErrorCtx; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputWeightsX.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorCtx.g.cs similarity index 89% rename from src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputWeightsX.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorCtx.g.cs index 916c876..15664b9 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.InSampleOutputWeightsX.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorCtx.g.cs @@ -6,7 +6,7 @@ namespace Nixtla /// /// /// - public sealed partial class InSampleOutputWeightsX + public sealed partial class ValidationErrorCtx { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastX.Json.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorInput.Json.g.cs similarity index 88% rename from src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastX.Json.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorInput.Json.g.cs index b38f4b5..50bd4a8 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.MultiSeriesForecastX.Json.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Nixtla { - public sealed partial class MultiSeriesForecastX + public sealed partial class ValidationErrorInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Nixtla.MultiSeriesForecastX? FromJson( + public static global::Nixtla.ValidationErrorInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Nixtla.MultiSeriesForecastX), - jsonSerializerContext) as global::Nixtla.MultiSeriesForecastX; + typeof(global::Nixtla.ValidationErrorInput), + jsonSerializerContext) as global::Nixtla.ValidationErrorInput; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Nixtla.MultiSeriesForecastX? FromJson( + public static global::Nixtla.ValidationErrorInput? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::Nixtla.MultiSeriesForecastX? FromJson( + public static global::Nixtla.ValidationErrorInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::Nixtla.MultiSeriesForecastX), - jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.MultiSeriesForecastX; + typeof(global::Nixtla.ValidationErrorInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Nixtla.ValidationErrorInput; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::Nixtla.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX2.g.cs b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorInput.g.cs similarity index 89% rename from src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX2.g.cs rename to src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorInput.g.cs index 2efb62a..2303e29 100644 --- a/src/libs/Nixtla/Generated/Nixtla.Models.SingleSeriesForecastX2.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.Models.ValidationErrorInput.g.cs @@ -6,7 +6,7 @@ namespace Nixtla /// /// /// - public sealed partial class SingleSeriesForecastX2 + public sealed partial class ValidationErrorInput { /// diff --git a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.GetModelParamsModelParamsGet.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.GetModelParamsModelParamsGet.g.cs similarity index 99% rename from src/libs/Nixtla/Generated/Nixtla.ExcludedClient.GetModelParamsModelParamsGet.g.cs rename to src/libs/Nixtla/Generated/Nixtla.NixtlaClient.GetModelParamsModelParamsGet.g.cs index d43fcac..24723ee 100644 --- a/src/libs/Nixtla/Generated/Nixtla.ExcludedClient.GetModelParamsModelParamsGet.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.GetModelParamsModelParamsGet.g.cs @@ -3,7 +3,7 @@ namespace Nixtla { - public partial class ExcludedClient + public partial class NixtlaClient { @@ -27,12 +27,12 @@ public partial class ExcludedClient }; partial void PrepareGetModelParamsModelParamsGetArguments( global::System.Net.Http.HttpClient httpClient, - object model, + ref string model, ref string freq); partial void PrepareGetModelParamsModelParamsGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - object model, + string model, string freq); partial void ProcessGetModelParamsModelParamsGetResponse( global::System.Net.Http.HttpClient httpClient, @@ -52,7 +52,7 @@ partial void ProcessGetModelParamsModelParamsGetResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task GetModelParamsModelParamsGetAsync( - object model, + string model, string freq, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -75,7 +75,7 @@ partial void ProcessGetModelParamsModelParamsGetResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> GetModelParamsModelParamsGetAsResponseAsync( - object model, + string model, string freq, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -84,7 +84,7 @@ partial void ProcessGetModelParamsModelParamsGetResponseContent( client: HttpClient); PrepareGetModelParamsModelParamsGetArguments( httpClient: HttpClient, - model: model, + model: ref model, freq: ref freq); @@ -114,7 +114,7 @@ partial void ProcessGetModelParamsModelParamsGetResponseContent( path: "/model_params", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("model", model.ToString()!) + .AddRequiredParameter("model", model) .AddRequiredParameter("freq", freq) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2AnomalyDetection.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2AnomalyDetection.g.cs index c98a0f9..967d7f4 100644 --- a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2AnomalyDetection.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2AnomalyDetection.g.cs @@ -43,7 +43,7 @@ partial void ProcessV2AnomalyDetectionResponseContent( /// /// Foundational Time Series Model Multi Series Anomaly Detector
- /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,7 +66,7 @@ partial void ProcessV2AnomalyDetectionResponseContent( } /// /// Foundational Time Series Model Multi Series Anomaly Detector
- /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -472,7 +472,7 @@ partial void ProcessV2AnomalyDetectionResponseContent( } /// /// Foundational Time Series Model Multi Series Anomaly Detector
- /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -489,20 +489,38 @@ partial void ProcessV2AnomalyDetectionResponseContent( /// /// ID of previously finetuned model /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// /// /// Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.
/// Default Value: 99 /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// 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 V2AnomalyDetectionAsync( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - object? model = default, + string? model = default, bool? cleanExFirst = default, string? finetunedModelId = default, + bool? multivariate = default, + object? modelParameters = default, + global::System.Collections.Generic.IList? histExog = default, global::Nixtla.AnyOf? level = default, + bool? featureContributions = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -513,7 +531,11 @@ partial void ProcessV2AnomalyDetectionResponseContent( Model = model, CleanExFirst = cleanExFirst, FinetunedModelId = finetunedModelId, + Multivariate = multivariate, + ModelParameters = modelParameters, + HistExog = histExog, Level = level, + FeatureContributions = featureContributions, }; return await V2AnomalyDetectionAsync( diff --git a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2CrossValidation.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2CrossValidation.g.cs index 2e2641b..e967963 100644 --- a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2CrossValidation.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2CrossValidation.g.cs @@ -479,11 +479,16 @@ partial void ProcessV2CrossValidationResponseContent( /// The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available. /// /// - /// Number of windows to evaluate. + /// Number of windows to evaluate.
+ /// Default Value: 1 /// /// /// The forecasting horizon. This represents the number of time steps into the future that the forecast should predict. /// + /// + /// Forecast across the entire series history (the `add_history` use case). The horizon and number of windows are derived server-side (any supplied `h` / `n_windows` are ignored), and the exogenous model is refit a bounded number of times to keep whole-history requests fast. Has no effect without exogenous features.
+ /// Default Value: false + /// /// /// Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.
/// Default Value: timegpt-1 @@ -500,11 +505,11 @@ partial void ProcessV2CrossValidationResponseContent( /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -520,15 +525,27 @@ partial void ProcessV2CrossValidationResponseContent( /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
/// Default Value: true /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// 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 V2CrossValidationAsync( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - int nWindows, int h, - object? model = default, + int? nWindows = default, + bool? fullHistory = default, + string? model = default, bool? cleanExFirst = default, global::System.Collections.Generic.IList>? level = default, int? finetuneSteps = default, @@ -538,6 +555,9 @@ partial void ProcessV2CrossValidationResponseContent( int? stepSize = default, global::System.Collections.Generic.IList? histExog = default, bool? refit = default, + bool? multivariate = default, + object? modelParameters = default, + bool? featureContributions = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -547,6 +567,7 @@ partial void ProcessV2CrossValidationResponseContent( Freq = freq, NWindows = nWindows, H = h, + FullHistory = fullHistory, Model = model, CleanExFirst = cleanExFirst, Level = level, @@ -557,6 +578,9 @@ partial void ProcessV2CrossValidationResponseContent( StepSize = stepSize, HistExog = histExog, Refit = refit, + Multivariate = multivariate, + ModelParameters = modelParameters, + FeatureContributions = featureContributions, }; return await V2CrossValidationAsync( diff --git a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Finetune.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Finetune.g.cs index 0d247c3..1a6b768 100644 --- a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Finetune.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Finetune.g.cs @@ -43,7 +43,7 @@ partial void ProcessV2FinetuneResponseContent( /// /// Foundational Time Series Model Multi Series Finetuning
- /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,7 +66,7 @@ partial void ProcessV2FinetuneResponseContent( } /// /// Foundational Time Series Model Multi Series Finetuning
- /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -472,7 +472,7 @@ partial void ProcessV2FinetuneResponseContent( } /// /// Foundational Time Series Model Multi Series Finetuning
- /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -487,11 +487,11 @@ partial void ProcessV2FinetuneResponseContent( /// Default Value: 10 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -500,18 +500,31 @@ partial void ProcessV2FinetuneResponseContent( /// /// ID of previously finetuned model /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// /// 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 V2FinetuneAsync( - global::Nixtla.Series series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, - object? model = default, + string? model = default, int? finetuneSteps = default, global::Nixtla.FinetuneInputFinetuneLoss? finetuneLoss = default, int? finetuneDepth = default, string? outputModelId = default, string? finetunedModelId = default, + global::System.Collections.Generic.IList? histExog = default, + bool? multivariate = default, + object? modelParameters = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -525,6 +538,9 @@ partial void ProcessV2FinetuneResponseContent( FinetuneDepth = finetuneDepth, OutputModelId = outputModelId, FinetunedModelId = finetunedModelId, + HistExog = histExog, + Multivariate = multivariate, + ModelParameters = modelParameters, }; return await V2FinetuneAsync( diff --git a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Forecast.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Forecast.g.cs index 56af9e5..b5dbc86 100644 --- a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Forecast.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2Forecast.g.cs @@ -43,7 +43,7 @@ partial void ProcessV2ForecastResponseContent( /// /// Foundational Time Series Model Multi Series
- /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,7 +66,7 @@ partial void ProcessV2ForecastResponseContent( } /// /// Foundational Time Series Model Multi Series
- /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -472,7 +472,7 @@ partial void ProcessV2ForecastResponseContent( } /// /// Foundational Time Series Model Multi Series
- /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -497,11 +497,11 @@ partial void ProcessV2ForecastResponseContent( /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -511,6 +511,13 @@ partial void ProcessV2ForecastResponseContent( /// Compute the exogenous features contributions to the forecast.
/// Default Value: false /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -518,7 +525,7 @@ partial void ProcessV2ForecastResponseContent( global::Nixtla.SeriesWithFutureExogenous series, string freq, int h, - object? model = default, + string? model = default, bool? cleanExFirst = default, global::System.Collections.Generic.IList>? level = default, int? finetuneSteps = default, @@ -526,6 +533,8 @@ partial void ProcessV2ForecastResponseContent( int? finetuneDepth = default, string? finetunedModelId = default, bool? featureContributions = default, + bool? multivariate = default, + object? modelParameters = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -542,6 +551,8 @@ partial void ProcessV2ForecastResponseContent( FinetuneDepth = finetuneDepth, FinetunedModelId = finetunedModelId, FeatureContributions = featureContributions, + Multivariate = multivariate, + ModelParameters = modelParameters, }; return await V2ForecastAsync( diff --git a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2OnlineAnomalyDetection.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2OnlineAnomalyDetection.g.cs index f9385f1..3edbca3 100644 --- a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2OnlineAnomalyDetection.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.V2OnlineAnomalyDetection.g.cs @@ -43,7 +43,7 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( /// /// Foundational Time Series Model Online Multi Series Anomaly Detector
- /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,7 +66,7 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( } /// /// Foundational Time Series Model Online Multi Series Anomaly Detector
- /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -472,7 +472,7 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( } /// /// Foundational Time Series Model Online Multi Series Anomaly Detector
- /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. + /// This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference. ///
/// /// @@ -505,11 +505,11 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( /// Default Value: 0 /// /// - /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
+ /// The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.
/// Default Value: default /// /// - /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.
+ /// The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.
/// Default Value: 1 /// /// @@ -518,16 +518,34 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( /// /// Step size between each cross validation window. If None it will be equal to the forecasting horizon. /// + /// + /// Zero-based indices of the exogenous features to treat as historical. + /// + /// + /// Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.
+ /// Default Value: true + /// + /// + /// Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.
+ /// Default Value: false + /// + /// + /// Optional dictionary of parameters to customize the behavior of the large time model. + /// + /// + /// Compute the exogenous features contributions to the forecast.
+ /// 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 V2OnlineAnomalyDetectionAsync( - global::Nixtla.SeriesWithExogenous series, + global::Nixtla.SeriesWithFutureExogenous series, string freq, int detectionSize, int h, global::Nixtla.OnlineAnomalyInputThresholdMethod? thresholdMethod = default, - object? model = default, + string? model = default, bool? cleanExFirst = default, global::Nixtla.AnyOf? level = default, int? finetuneSteps = default, @@ -535,6 +553,11 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( int? finetuneDepth = default, string? finetunedModelId = default, int? stepSize = default, + global::System.Collections.Generic.IList? histExog = default, + bool? refit = default, + bool? multivariate = default, + object? modelParameters = default, + bool? featureContributions = default, global::Nixtla.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -553,6 +576,11 @@ partial void ProcessV2OnlineAnomalyDetectionResponseContent( FinetuneDepth = finetuneDepth, FinetunedModelId = finetunedModelId, StepSize = stepSize, + HistExog = histExog, + Refit = refit, + Multivariate = multivariate, + ModelParameters = modelParameters, + FeatureContributions = featureContributions, }; return await V2OnlineAnomalyDetectionAsync( diff --git a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.g.cs b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.g.cs index db0bd14..325588e 100644 --- a/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.g.cs +++ b/src/libs/Nixtla/Generated/Nixtla.NixtlaClient.g.cs @@ -40,15 +40,6 @@ public sealed partial class NixtlaClient : global::Nixtla.INixtlaClient, global: public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Nixtla.SourceGenerationContext.Default; - /// - /// - /// - public ExcludedClient Excluded => new ExcludedClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// Creates a new instance of the NixtlaClient. /// If no httpClient is provided, a new one will be created. diff --git a/src/libs/Nixtla/openapi.json b/src/libs/Nixtla/openapi.json index f4ac3e4..36649e6 100644 --- a/src/libs/Nixtla/openapi.json +++ b/src/libs/Nixtla/openapi.json @@ -3,352 +3,39 @@ "info": { "title": "Nixtla Forecast API", "description": "API for TimeGPT forecast. Just send your data as json and get results. We do the heavy lifting.", - "version": "2025.8.3" + "version": "0.2.4" }, "paths": { - "/validate_api_key": { - "get": { - "summary": "Validate Api Key", - "operationId": "validate_api_key_validate_api_key_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ] - } - }, - "/validate_token": { - "post": { - "tags": [ - "hidden" - ], - "summary": "Validate Token", - "operationId": "validate_token_validate_token_post", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "validate_token", - "x-hidden": true - } - }, - "/health": { - "get": { - "tags": [ - "excluded" - ], - "summary": "Health", - "description": "Check if server is healthy.\nUsed by the readiness probe to check server is healthy.", - "operationId": "health_health_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-excluded": true - } - }, - "/forecast": { + "/v2/forecast": { "post": { - "tags": [ - "hidden" - ], - "summary": "Foundational Time Series Model (Beta)", - "description": "This endpoint predicts the future values of a single time series based on the provided data. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference", - "operationId": "forecast_forecast_post", + "summary": "Foundational Time Series Model Multi Series", + "description": "Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", + "operationId": "v2_forecast_v2_forecast_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SingleSeriesForecast", + "$ref": "#/components/schemas/ForecastInput", "examples": [ { - "fh": 7, - "y": { - "2015-12-02": 4.390508031418598, - "2015-12-03": 5.721514930979356, - "2015-12-04": 4.822107008573151, - "2015-12-05": 4.359065463975175, - "2015-12-06": 3.3892383947112377, - "2015-12-07": 5.167152904533249, - "2015-12-08": 3.50069769010154, - "2015-12-09": 7.134184006256638, - "2015-12-10": 7.709302084008234, - "2015-12-11": 3.0675321506062216, - "2015-12-12": 6.333800304661317, - "2015-12-13": 4.231159358023236, - "2015-12-14": 4.5443564887514585, - "2015-12-15": 7.404773106341288, - "2015-12-16": 0.5682884655830955, - "2015-12-17": 0.6970343976123257, - "2015-12-18": 0.16174717952260576, - "2015-12-19": 6.660958764383504, - "2015-12-20": 6.225254007598804, - "2015-12-21": 6.960097185974553, - "2015-12-22": 7.828946737862112, - "2015-12-23": 6.393268513733789, - "2015-12-24": 3.6918348980234548, - "2015-12-25": 6.244233410291644, - "2015-12-26": 0.9461954069514658, - "2015-12-27": 5.119368170620191, - "2015-12-28": 1.1468262992723712, - "2015-12-29": 7.557351336396671, - "2015-12-30": 4.174786574000573, - "2015-12-31": 3.3172955199241887, - "2016-01-01": 2.1164448968370158, - "2016-01-02": 6.193869515473733, - "2016-01-03": 3.6492026577323884, - "2016-01-04": 4.547471590949188, - "2016-01-05": 0.15031840349084113, - "2016-01-06": 4.9410839766070165, - "2016-01-07": 4.896765781779371, - "2016-01-08": 4.935471974998055, - "2016-01-09": 7.549984628116993, - "2016-01-10": 5.454562392827867, - "2016-01-11": 2.876063204590288, - "2016-01-12": 3.4962556303947316, - "2016-01-13": 5.581049567418119 - }, - "x": { - "2015-12-02": [ - 0.5701967704178796, - 0.6778165367962301 - ], - "2015-12-03": [ - 0.43860151346232035, - 0.27000797319216485 - ], - "2015-12-04": [ - 0.9883738380592262, - 0.7351940221225949 - ], - "2015-12-05": [ - 0.10204481074802807, - 0.9621885451174382 - ], - "2015-12-06": [ - 0.2088767560948347, - 0.24875314351995803 - ], - "2015-12-07": [ - 0.16130951788499626, - 0.5761573344178369 - ], - "2015-12-08": [ - 0.6531083254653984, - 0.592041931271839 - ], - "2015-12-09": [ - 0.2532916025397821, - 0.5722519057908734 - ], - "2015-12-10": [ - 0.4663107728563063, - 0.2230816326406183 - ], - "2015-12-11": [ - 0.24442559200160274, - 0.952749011516985 - ], - "2015-12-12": [ - 0.15896958364551972, - 0.44712537861762736 - ], - "2015-12-13": [ - 0.11037514116430513, - 0.8464086724711278 - ], - "2015-12-14": [ - 0.6563295894652734, - 0.6994792753175043 - ], - "2015-12-15": [ - 0.1381829513486138, - 0.29743695085513366 - ], - "2015-12-16": [ - 0.1965823616800535, - 0.8137978197024772 - ], - "2015-12-17": [ - 0.3687251706609641, - 0.39650574084698464 - ], - "2015-12-18": [ - 0.8209932298479351, - 0.8811031971111616 - ], - "2015-12-19": [ - 0.09710127579306127, - 0.5812728726358587 - ], - "2015-12-20": [ - 0.8379449074988039, - 0.8817353618548528 - ], - "2015-12-21": [ - 0.09609840789396307, - 0.6925315900777659 - ], - "2015-12-22": [ - 0.9764594650133958, - 0.7252542798196405 - ], - "2015-12-23": [ - 0.4686512016477016, - 0.5013243819267023 - ], - "2015-12-24": [ - 0.9767610881903371, - 0.9560836347232239 - ], - "2015-12-25": [ - 0.604845519745046, - 0.6439901992296374 - ], - "2015-12-26": [ - 0.7392635793983017, - 0.4238550485581797 - ], - "2015-12-27": [ - 0.039187792254320675, - 0.6063932141279244 - ], - "2015-12-28": [ - 0.2828069625764096, - 0.019193198309333526 - ], - "2015-12-29": [ - 0.1201965612131689, - 0.30157481667454933 - ], - "2015-12-30": [ - 0.29614019752214493, - 0.660173537492685 - ], - "2015-12-31": [ - 0.11872771895424405, - 0.29007760721044407 - ], - "2016-01-01": [ - 0.317983179393976, - 0.6180154289988415 - ], - "2016-01-02": [ - 0.41426299451466997, - 0.42876870094576613 - ], - "2016-01-03": [ - 0.06414749634878436, - 0.13547406422245023 - ], - "2016-01-04": [ - 0.6924721193700198, - 0.29828232595603077 - ], - "2016-01-05": [ - 0.5666014542065752, - 0.5699649107012649 - ], - "2016-01-06": [ - 0.2653894909394454, - 0.5908727612481732 - ], - "2016-01-07": [ - 0.5232480534666997, - 0.5743252488495788 - ], - "2016-01-08": [ - 0.09394051075844168, - 0.6532008198571336 - ], - "2016-01-09": [ - 0.5759464955561793, - 0.6521032700016889 - ], - "2016-01-10": [ - 0.9292961975762141, - 0.43141843543397396 - ], - "2016-01-11": [ - 0.31856895245132366, - 0.896546595851063 - ], - "2016-01-12": [ - 0.6674103799636817, - 0.36756187004789653 - ], - "2016-01-13": [ - 0.13179786240439217, - 0.4358649252656268 - ], - "2016-01-14": [ - 0.7163272041185655, - 0.8919233550156721 - ], - "2016-01-15": [ - 0.2894060929472011, - 0.8061939890460857 - ], - "2016-01-16": [ - 0.18319136200711683, - 0.7038885835403663 - ], - "2016-01-17": [ - 0.5865129348100832, - 0.10022688731230112 - ], - "2016-01-18": [ - 0.020107546187493552, - 0.9194826137446735 - ], - "2016-01-19": [ - 0.8289400292173631, - 0.7142412995491114 + "freq": "D", + "h": 2, + "series": { + "sizes": [ + 5, + 3 ], - "2016-01-20": [ - 0.004695476192547066, - 0.9988470065678665 + "y": [ + 1, + 2, + 3, + 4, + 5, + 10, + 20, + 30 ] - }, - "freq": "D", - "clean_ex_first": true, - "level": [ - 90 - ], - "finetune_steps": 0, - "model": "timegpt-1" + } } ] } @@ -361,7 +48,9 @@ "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/ForecastOutput" + } } } }, @@ -381,77 +70,65 @@ "HTTPBearer": [] } ], - "x-fern-sdk-method-name": "forecast", - "x-hidden": true + "x-fern-sdk-method-name": "v2/forecast" } }, - "/historic_forecast": { + "/v2/anomaly_detection": { "post": { - "tags": [ - "hidden" - ], - "summary": "Foundational Time Series Model Historic (Beta)", - "description": "Based on the provided data, this endpoint predicts time series data for the in-sample period (historical period). It takes a JSON as an input, including information like the series frequency and the historical data. (See below for a full description of the parameters.) The response contains the predicted values for the historical period. Usually useful for anomaly detection. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "historic_forecast_historic_forecast_post", + "summary": "Foundational Time Series Model Multi Series Anomaly Detector", + "description": "Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", + "operationId": "v2_anomaly_detection_v2_anomaly_detection_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SingleSeriesInsampleForecast", + "$ref": "#/components/schemas/AnomalyDetectionInput", "examples": [ { - "fh": 7, - "y": { - "2015-12-02": 4.390508031418598, - "2015-12-03": 5.721514930979356, - "2015-12-04": 4.822107008573151, - "2015-12-05": 4.359065463975175, - "2015-12-06": 3.3892383947112377, - "2015-12-07": 5.167152904533249, - "2015-12-08": 3.50069769010154, - "2015-12-09": 7.134184006256638, - "2015-12-10": 7.709302084008234, - "2015-12-11": 3.0675321506062216, - "2015-12-12": 6.333800304661317, - "2015-12-13": 4.231159358023236, - "2015-12-14": 4.5443564887514585, - "2015-12-15": 7.404773106341288, - "2015-12-16": 0.5682884655830955, - "2015-12-17": 0.6970343976123257, - "2015-12-18": 0.16174717952260576, - "2015-12-19": 6.660958764383504, - "2015-12-20": 6.225254007598804, - "2015-12-21": 6.960097185974553, - "2015-12-22": 7.828946737862112, - "2015-12-23": 6.393268513733789, - "2015-12-24": 3.6918348980234548, - "2015-12-25": 6.244233410291644, - "2015-12-26": 0.9461954069514658, - "2015-12-27": 5.119368170620191, - "2015-12-28": 1.1468262992723712, - "2015-12-29": 7.557351336396671, - "2015-12-30": 4.174786574000573, - "2015-12-31": 3.3172955199241887, - "2016-01-01": 2.1164448968370158, - "2016-01-02": 6.193869515473733, - "2016-01-03": 3.6492026577323884, - "2016-01-04": 4.547471590949188, - "2016-01-05": 0.15031840349084113, - "2016-01-06": 4.9410839766070165, - "2016-01-07": 4.896765781779371, - "2016-01-08": 4.935471974998055, - "2016-01-09": 7.549984628116993, - "2016-01-10": 5.454562392827867, - "2016-01-11": 2.876063204590288, - "2016-01-12": 3.4962556303947316, - "2016-01-13": 5.581049567418119 - }, "freq": "D", - "clean_ex_first": true, - "level": [ - 90 - ], - "model": "timegpt-1" + "level": 90, + "series": { + "sizes": [ + 35 + ], + "y": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 0, + 1, + 2, + 10, + 4, + 5, + 6 + ] + } } ] } @@ -462,61 +139,13 @@ "responses": { "200": { "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "$ref": "#/components/schemas/AnomalyDetectionOutput" } } } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "historic_forecast", - "x-hidden": true - } - }, - "/forecast_multi_series": { - "post": { - "tags": [ - "hidden" - ], - "summary": "Foundational Time Series Model Multi Series (Beta)", - "description": "Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "forecast_multi_series_forecast_multi_series_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesForecast", - "examples": [ - null - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } }, "422": { "description": "Validation Error", @@ -534,4298 +163,739 @@ "HTTPBearer": [] } ], - "x-fern-sdk-method-name": "forecast_multi_series", - "x-hidden": true + "x-fern-sdk-method-name": "v2/anomaly_detection" } }, - "/historic_forecast_multi_series": { + "/v2/online_anomaly_detection": { "post": { - "tags": [ - "hidden" - ], - "summary": "Foundational Time Series Model Multi Series Historic (Beta)", - "description": "Based on the provided data, this endpoint predicts the in-sample period (historical period) values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for the historical period. Usually useful for anomaly detection. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "historic_forecast_multi_series_historic_forecast_multi_series_post", + "summary": "Foundational Time Series Model Online Multi Series Anomaly Detector", + "description": "This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", + "operationId": "v2_online_anomaly_detection_v2_online_anomaly_detection_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MultiSeriesInsampleForecast", + "$ref": "#/components/schemas/OnlineAnomalyInput", "examples": [ { - "y": { - "columns": [ - "unique_id", - "ds", - "y" + "detection_size": 5, + "freq": "W", + "h": 20, + "level": 99, + "series": { + "sizes": [ + 320 ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - }, - "freq": "D", - "level": [ - 90 - ], - "model": "timegpt-1" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "historic_forecast_multi_series", - "x-hidden": true - } - }, - "/anomaly_detection_multi_series": { - "post": { - "tags": [ - "hidden" - ], - "summary": "Foundational Time Series Model Multi Series Anomaly Detector (Beta)", - "description": "Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "anomaly_detection_multi_series_anomaly_detection_multi_series_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesAnomaly", - "examples": [ - null - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "anomaly_detection_multi_series", - "x-hidden": true - } - }, - "/cross_validation_multi_series": { - "post": { - "tags": [ - "hidden" - ], - "summary": "Foundational Time Series Model Multi Series Cross Validation (Beta)", - "description": "Perform Cross Validation for multiple series", - "operationId": "cross_validation_multi_series_cross_validation_multi_series_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesCrossValidation", - "examples": [ - { - "y": { - "columns": [ - "unique_id", - "ds", - "y" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - }, - "x": { - "columns": [ - "unique_id", - "ds", - "normalized_fb_marketing_spend", - "normalized_google_marketing_spend" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 0.5701967704178796, - 0.6778165367962301 - ], - [ - "PeytonManning", - "2015-12-03", - 0.43860151346232035, - 0.27000797319216485 - ], - [ - "PeytonManning", - "2015-12-04", - 0.9883738380592262, - 0.7351940221225949 - ], - [ - "PeytonManning", - "2015-12-05", - 0.10204481074802807, - 0.9621885451174382 - ], - [ - "PeytonManning", - "2015-12-06", - 0.2088767560948347, - 0.24875314351995803 - ], - [ - "PeytonManning", - "2015-12-07", - 0.16130951788499626, - 0.5761573344178369 - ], - [ - "PeytonManning", - "2015-12-08", - 0.6531083254653984, - 0.592041931271839 - ], - [ - "PeytonManning", - "2015-12-09", - 0.2532916025397821, - 0.5722519057908734 - ], - [ - "PeytonManning", - "2015-12-10", - 0.4663107728563063, - 0.2230816326406183 - ], - [ - "PeytonManning", - "2015-12-11", - 0.24442559200160274, - 0.952749011516985 - ], - [ - "PeytonManning", - "2015-12-12", - 0.15896958364551972, - 0.44712537861762736 - ], - [ - "PeytonManning", - "2015-12-13", - 0.11037514116430513, - 0.8464086724711278 - ], - [ - "PeytonManning", - "2015-12-14", - 0.6563295894652734, - 0.6994792753175043 - ], - [ - "PeytonManning", - "2015-12-15", - 0.1381829513486138, - 0.29743695085513366 - ], - [ - "PeytonManning", - "2015-12-16", - 0.1965823616800535, - 0.8137978197024772 - ], - [ - "PeytonManning", - "2015-12-17", - 0.3687251706609641, - 0.39650574084698464 - ], - [ - "PeytonManning", - "2015-12-18", - 0.8209932298479351, - 0.8811031971111616 - ], - [ - "PeytonManning", - "2015-12-19", - 0.09710127579306127, - 0.5812728726358587 - ], - [ - "PeytonManning", - "2015-12-20", - 0.8379449074988039, - 0.8817353618548528 - ], - [ - "PeytonManning", - "2015-12-21", - 0.09609840789396307, - 0.6925315900777659 - ], - [ - "PeytonManning", - "2015-12-22", - 0.9764594650133958, - 0.7252542798196405 - ], - [ - "PeytonManning", - "2015-12-23", - 0.4686512016477016, - 0.5013243819267023 - ], - [ - "PeytonManning", - "2015-12-24", - 0.9767610881903371, - 0.9560836347232239 - ], - [ - "PeytonManning", - "2015-12-25", - 0.604845519745046, - 0.6439901992296374 - ], - [ - "PeytonManning", - "2015-12-26", - 0.7392635793983017, - 0.4238550485581797 - ], - [ - "PeytonManning", - "2015-12-27", - 0.039187792254320675, - 0.6063932141279244 - ], - [ - "PeytonManning", - "2015-12-28", - 0.2828069625764096, - 0.019193198309333526 - ], - [ - "PeytonManning", - "2015-12-29", - 0.1201965612131689, - 0.30157481667454933 - ], - [ - "PeytonManning", - "2015-12-30", - 0.29614019752214493, - 0.660173537492685 - ], - [ - "PeytonManning", - "2015-12-31", - 0.11872771895424405, - 0.29007760721044407 - ], - [ - "PeytonManning", - "2016-01-01", - 0.317983179393976, - 0.6180154289988415 - ], - [ - "PeytonManning", - "2016-01-02", - 0.41426299451466997, - 0.42876870094576613 - ], - [ - "PeytonManning", - "2016-01-03", - 0.06414749634878436, - 0.13547406422245023 - ], - [ - "PeytonManning", - "2016-01-04", - 0.6924721193700198, - 0.29828232595603077 - ], - [ - "PeytonManning", - "2016-01-05", - 0.5666014542065752, - 0.5699649107012649 - ], - [ - "PeytonManning", - "2016-01-06", - 0.2653894909394454, - 0.5908727612481732 - ], - [ - "PeytonManning", - "2016-01-07", - 0.5232480534666997, - 0.5743252488495788 - ], - [ - "PeytonManning", - "2016-01-08", - 0.09394051075844168, - 0.6532008198571336 - ], - [ - "PeytonManning", - "2016-01-09", - 0.5759464955561793, - 0.6521032700016889 - ], - [ - "PeytonManning", - "2016-01-10", - 0.9292961975762141, - 0.43141843543397396 - ], - [ - "PeytonManning", - "2016-01-11", - 0.31856895245132366, - 0.896546595851063 - ], - [ - "PeytonManning", - "2016-01-12", - 0.6674103799636817, - 0.36756187004789653 - ], - [ - "PeytonManning", - "2016-01-13", - 0.13179786240439217, - 0.4358649252656268 - ], - [ - "PeytonManning", - "2016-01-14", - 0.7163272041185655, - 0.8919233550156721 - ], - [ - "PeytonManning", - "2016-01-15", - 0.2894060929472011, - 0.8061939890460857 - ], - [ - "PeytonManning", - "2016-01-16", - 0.18319136200711683, - 0.7038885835403663 - ], - [ - "PeytonManning", - "2016-01-17", - 0.5865129348100832, - 0.10022688731230112 - ], - [ - "PeytonManning", - "2016-01-18", - 0.020107546187493552, - 0.9194826137446735 - ], - [ - "PeytonManning", - "2016-01-19", - 0.8289400292173631, - 0.7142412995491114 - ], - [ - "PeytonManning", - "2016-01-20", - 0.004695476192547066, - 0.9988470065678665 - ], - [ - "TomBrady", - "2015-12-02", - 0.5701967704178796, - 0.6778165367962301 - ], - [ - "TomBrady", - "2015-12-03", - 0.43860151346232035, - 0.27000797319216485 - ], - [ - "TomBrady", - "2015-12-04", - 0.9883738380592262, - 0.7351940221225949 - ], - [ - "TomBrady", - "2015-12-05", - 0.10204481074802807, - 0.9621885451174382 - ], - [ - "TomBrady", - "2015-12-06", - 0.2088767560948347, - 0.24875314351995803 - ], - [ - "TomBrady", - "2015-12-07", - 0.16130951788499626, - 0.5761573344178369 - ], - [ - "TomBrady", - "2015-12-08", - 0.6531083254653984, - 0.592041931271839 - ], - [ - "TomBrady", - "2015-12-09", - 0.2532916025397821, - 0.5722519057908734 - ], - [ - "TomBrady", - "2015-12-10", - 0.4663107728563063, - 0.2230816326406183 - ], - [ - "TomBrady", - "2015-12-11", - 0.24442559200160274, - 0.952749011516985 - ], - [ - "TomBrady", - "2015-12-12", - 0.15896958364551972, - 0.44712537861762736 - ], - [ - "TomBrady", - "2015-12-13", - 0.11037514116430513, - 0.8464086724711278 - ], - [ - "TomBrady", - "2015-12-14", - 0.6563295894652734, - 0.6994792753175043 - ], - [ - "TomBrady", - "2015-12-15", - 0.1381829513486138, - 0.29743695085513366 - ], - [ - "TomBrady", - "2015-12-16", - 0.1965823616800535, - 0.8137978197024772 - ], - [ - "TomBrady", - "2015-12-17", - 0.3687251706609641, - 0.39650574084698464 - ], - [ - "TomBrady", - "2015-12-18", - 0.8209932298479351, - 0.8811031971111616 - ], - [ - "TomBrady", - "2015-12-19", - 0.09710127579306127, - 0.5812728726358587 - ], - [ - "TomBrady", - "2015-12-20", - 0.8379449074988039, - 0.8817353618548528 - ], - [ - "TomBrady", - "2015-12-21", - 0.09609840789396307, - 0.6925315900777659 - ], - [ - "TomBrady", - "2015-12-22", - 0.9764594650133958, - 0.7252542798196405 - ], - [ - "TomBrady", - "2015-12-23", - 0.4686512016477016, - 0.5013243819267023 - ], - [ - "TomBrady", - "2015-12-24", - 0.9767610881903371, - 0.9560836347232239 - ], - [ - "TomBrady", - "2015-12-25", - 0.604845519745046, - 0.6439901992296374 - ], - [ - "TomBrady", - "2015-12-26", - 0.7392635793983017, - 0.4238550485581797 - ], - [ - "TomBrady", - "2015-12-27", - 0.039187792254320675, - 0.6063932141279244 - ], - [ - "TomBrady", - "2015-12-28", - 0.2828069625764096, - 0.019193198309333526 - ], - [ - "TomBrady", - "2015-12-29", - 0.1201965612131689, - 0.30157481667454933 - ], - [ - "TomBrady", - "2015-12-30", - 0.29614019752214493, - 0.660173537492685 - ], - [ - "TomBrady", - "2015-12-31", - 0.11872771895424405, - 0.29007760721044407 - ], - [ - "TomBrady", - "2016-01-01", - 0.317983179393976, - 0.6180154289988415 - ], - [ - "TomBrady", - "2016-01-02", - 0.41426299451466997, - 0.42876870094576613 - ], - [ - "TomBrady", - "2016-01-03", - 0.06414749634878436, - 0.13547406422245023 - ], - [ - "TomBrady", - "2016-01-04", - 0.6924721193700198, - 0.29828232595603077 - ], - [ - "TomBrady", - "2016-01-05", - 0.5666014542065752, - 0.5699649107012649 - ], - [ - "TomBrady", - "2016-01-06", - 0.2653894909394454, - 0.5908727612481732 - ], - [ - "TomBrady", - "2016-01-07", - 0.5232480534666997, - 0.5743252488495788 - ], - [ - "TomBrady", - "2016-01-08", - 0.09394051075844168, - 0.6532008198571336 - ], - [ - "TomBrady", - "2016-01-09", - 0.5759464955561793, - 0.6521032700016889 - ], - [ - "TomBrady", - "2016-01-10", - 0.9292961975762141, - 0.43141843543397396 - ], - [ - "TomBrady", - "2016-01-11", - 0.31856895245132366, - 0.896546595851063 - ], - [ - "TomBrady", - "2016-01-12", - 0.6674103799636817, - 0.36756187004789653 - ], - [ - "TomBrady", - "2016-01-13", - 0.13179786240439217, - 0.4358649252656268 - ], - [ - "TomBrady", - "2016-01-14", - 0.7163272041185655, - 0.8919233550156721 - ], - [ - "TomBrady", - "2016-01-15", - 0.2894060929472011, - 0.8061939890460857 - ], - [ - "TomBrady", - "2016-01-16", - 0.18319136200711683, - 0.7038885835403663 - ], - [ - "TomBrady", - "2016-01-17", - 0.5865129348100832, - 0.10022688731230112 - ], - [ - "TomBrady", - "2016-01-18", - 0.020107546187493552, - 0.9194826137446735 - ], - [ - "TomBrady", - "2016-01-19", - 0.8289400292173631, - 0.7142412995491114 - ], - [ - "TomBrady", - "2016-01-20", - 0.004695476192547066, - 0.9988470065678665 - ] - ] - }, - "freq": "D", - "level": [ - 99 - ], - "model": "timegpt-1" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "cross_validation_multi_series", - "x-hidden": true - } - }, - "/model_params": { - "get": { - "tags": [ - "excluded" - ], - "summary": "Get Model Params", - "operationId": "get_model_params_model_params_get", - "security": [ - { - "HTTPBearer": [] - } - ], - "parameters": [ - { - "name": "model", - "in": "query", - "required": true, - "schema": { - "title": "Model" - } - }, - { - "name": "freq", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Freq" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "x-excluded": true - }, - "post": { - "tags": [ - "excluded" - ], - "summary": "Model Params", - "operationId": "model_params_model_params_post", - "security": [ - { - "HTTPBearer": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleSeriesForecast" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "x-fern-sdk-method-name": "model_params", - "x-excluded": true - } - }, - "/timegpt": { - "post": { - "tags": [ - "excluded" - ], - "summary": "Foundational Time Series Model (Beta)", - "description": "This endpoint predicts the future values of a single time series based on the provided data. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference", - "operationId": "timegpt_timegpt_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleSeriesForecast", - "examples": [ - { - "fh": 7, - "y": { - "2015-12-02": 4.390508031418598, - "2015-12-03": 5.721514930979356, - "2015-12-04": 4.822107008573151, - "2015-12-05": 4.359065463975175, - "2015-12-06": 3.3892383947112377, - "2015-12-07": 5.167152904533249, - "2015-12-08": 3.50069769010154, - "2015-12-09": 7.134184006256638, - "2015-12-10": 7.709302084008234, - "2015-12-11": 3.0675321506062216, - "2015-12-12": 6.333800304661317, - "2015-12-13": 4.231159358023236, - "2015-12-14": 4.5443564887514585, - "2015-12-15": 7.404773106341288, - "2015-12-16": 0.5682884655830955, - "2015-12-17": 0.6970343976123257, - "2015-12-18": 0.16174717952260576, - "2015-12-19": 6.660958764383504, - "2015-12-20": 6.225254007598804, - "2015-12-21": 6.960097185974553, - "2015-12-22": 7.828946737862112, - "2015-12-23": 6.393268513733789, - "2015-12-24": 3.6918348980234548, - "2015-12-25": 6.244233410291644, - "2015-12-26": 0.9461954069514658, - "2015-12-27": 5.119368170620191, - "2015-12-28": 1.1468262992723712, - "2015-12-29": 7.557351336396671, - "2015-12-30": 4.174786574000573, - "2015-12-31": 3.3172955199241887, - "2016-01-01": 2.1164448968370158, - "2016-01-02": 6.193869515473733, - "2016-01-03": 3.6492026577323884, - "2016-01-04": 4.547471590949188, - "2016-01-05": 0.15031840349084113, - "2016-01-06": 4.9410839766070165, - "2016-01-07": 4.896765781779371, - "2016-01-08": 4.935471974998055, - "2016-01-09": 7.549984628116993, - "2016-01-10": 5.454562392827867, - "2016-01-11": 2.876063204590288, - "2016-01-12": 3.4962556303947316, - "2016-01-13": 5.581049567418119 - }, - "x": { - "2015-12-02": [ - 0.5701967704178796, - 0.6778165367962301 - ], - "2015-12-03": [ - 0.43860151346232035, - 0.27000797319216485 - ], - "2015-12-04": [ - 0.9883738380592262, - 0.7351940221225949 - ], - "2015-12-05": [ - 0.10204481074802807, - 0.9621885451174382 - ], - "2015-12-06": [ - 0.2088767560948347, - 0.24875314351995803 - ], - "2015-12-07": [ - 0.16130951788499626, - 0.5761573344178369 - ], - "2015-12-08": [ - 0.6531083254653984, - 0.592041931271839 - ], - "2015-12-09": [ - 0.2532916025397821, - 0.5722519057908734 - ], - "2015-12-10": [ - 0.4663107728563063, - 0.2230816326406183 - ], - "2015-12-11": [ - 0.24442559200160274, - 0.952749011516985 - ], - "2015-12-12": [ - 0.15896958364551972, - 0.44712537861762736 - ], - "2015-12-13": [ - 0.11037514116430513, - 0.8464086724711278 - ], - "2015-12-14": [ - 0.6563295894652734, - 0.6994792753175043 - ], - "2015-12-15": [ - 0.1381829513486138, - 0.29743695085513366 - ], - "2015-12-16": [ - 0.1965823616800535, - 0.8137978197024772 - ], - "2015-12-17": [ - 0.3687251706609641, - 0.39650574084698464 - ], - "2015-12-18": [ - 0.8209932298479351, - 0.8811031971111616 - ], - "2015-12-19": [ - 0.09710127579306127, - 0.5812728726358587 - ], - "2015-12-20": [ - 0.8379449074988039, - 0.8817353618548528 - ], - "2015-12-21": [ - 0.09609840789396307, - 0.6925315900777659 - ], - "2015-12-22": [ - 0.9764594650133958, - 0.7252542798196405 - ], - "2015-12-23": [ - 0.4686512016477016, - 0.5013243819267023 - ], - "2015-12-24": [ - 0.9767610881903371, - 0.9560836347232239 - ], - "2015-12-25": [ - 0.604845519745046, - 0.6439901992296374 - ], - "2015-12-26": [ - 0.7392635793983017, - 0.4238550485581797 - ], - "2015-12-27": [ - 0.039187792254320675, - 0.6063932141279244 - ], - "2015-12-28": [ - 0.2828069625764096, - 0.019193198309333526 - ], - "2015-12-29": [ - 0.1201965612131689, - 0.30157481667454933 - ], - "2015-12-30": [ - 0.29614019752214493, - 0.660173537492685 - ], - "2015-12-31": [ - 0.11872771895424405, - 0.29007760721044407 - ], - "2016-01-01": [ - 0.317983179393976, - 0.6180154289988415 - ], - "2016-01-02": [ - 0.41426299451466997, - 0.42876870094576613 - ], - "2016-01-03": [ - 0.06414749634878436, - 0.13547406422245023 - ], - "2016-01-04": [ - 0.6924721193700198, - 0.29828232595603077 - ], - "2016-01-05": [ - 0.5666014542065752, - 0.5699649107012649 - ], - "2016-01-06": [ - 0.2653894909394454, - 0.5908727612481732 - ], - "2016-01-07": [ - 0.5232480534666997, - 0.5743252488495788 - ], - "2016-01-08": [ - 0.09394051075844168, - 0.6532008198571336 - ], - "2016-01-09": [ - 0.5759464955561793, - 0.6521032700016889 - ], - "2016-01-10": [ - 0.9292961975762141, - 0.43141843543397396 - ], - "2016-01-11": [ - 0.31856895245132366, - 0.896546595851063 - ], - "2016-01-12": [ - 0.6674103799636817, - 0.36756187004789653 - ], - "2016-01-13": [ - 0.13179786240439217, - 0.4358649252656268 - ], - "2016-01-14": [ - 0.7163272041185655, - 0.8919233550156721 - ], - "2016-01-15": [ - 0.2894060929472011, - 0.8061939890460857 - ], - "2016-01-16": [ - 0.18319136200711683, - 0.7038885835403663 - ], - "2016-01-17": [ - 0.5865129348100832, - 0.10022688731230112 - ], - "2016-01-18": [ - 0.020107546187493552, - 0.9194826137446735 - ], - "2016-01-19": [ - 0.8289400292173631, - 0.7142412995491114 - ], - "2016-01-20": [ - 0.004695476192547066, - 0.9988470065678665 - ] - }, - "freq": "D", - "clean_ex_first": true, - "level": [ - 90 - ], - "finetune_steps": 0, - "model": "timegpt-1" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "timegpt", - "x-excluded": true - } - }, - "/timegpt_historic": { - "post": { - "tags": [ - "excluded" - ], - "summary": "Foundational Time Series Model Historic (Beta)", - "description": "Based on the provided data, this endpoint predicts time series data for the in-sample period (historical period). It takes a JSON as an input, including information like the series frequency and the historical data. (See below for a full description of the parameters.) The response contains the predicted values for the historical period. Usually useful for anomaly detection. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "timegpt_historic_timegpt_historic_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleSeriesInsampleForecast", - "examples": [ - { - "fh": 7, - "y": { - "2015-12-02": 4.390508031418598, - "2015-12-03": 5.721514930979356, - "2015-12-04": 4.822107008573151, - "2015-12-05": 4.359065463975175, - "2015-12-06": 3.3892383947112377, - "2015-12-07": 5.167152904533249, - "2015-12-08": 3.50069769010154, - "2015-12-09": 7.134184006256638, - "2015-12-10": 7.709302084008234, - "2015-12-11": 3.0675321506062216, - "2015-12-12": 6.333800304661317, - "2015-12-13": 4.231159358023236, - "2015-12-14": 4.5443564887514585, - "2015-12-15": 7.404773106341288, - "2015-12-16": 0.5682884655830955, - "2015-12-17": 0.6970343976123257, - "2015-12-18": 0.16174717952260576, - "2015-12-19": 6.660958764383504, - "2015-12-20": 6.225254007598804, - "2015-12-21": 6.960097185974553, - "2015-12-22": 7.828946737862112, - "2015-12-23": 6.393268513733789, - "2015-12-24": 3.6918348980234548, - "2015-12-25": 6.244233410291644, - "2015-12-26": 0.9461954069514658, - "2015-12-27": 5.119368170620191, - "2015-12-28": 1.1468262992723712, - "2015-12-29": 7.557351336396671, - "2015-12-30": 4.174786574000573, - "2015-12-31": 3.3172955199241887, - "2016-01-01": 2.1164448968370158, - "2016-01-02": 6.193869515473733, - "2016-01-03": 3.6492026577323884, - "2016-01-04": 4.547471590949188, - "2016-01-05": 0.15031840349084113, - "2016-01-06": 4.9410839766070165, - "2016-01-07": 4.896765781779371, - "2016-01-08": 4.935471974998055, - "2016-01-09": 7.549984628116993, - "2016-01-10": 5.454562392827867, - "2016-01-11": 2.876063204590288, - "2016-01-12": 3.4962556303947316, - "2016-01-13": 5.581049567418119 - }, - "freq": "D", - "clean_ex_first": true, - "level": [ - 90 - ], - "model": "timegpt-1" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "timegpt_historic", - "x-excluded": true - } - }, - "/timegpt_multi_series": { - "post": { - "tags": [ - "excluded" - ], - "summary": "Foundational Time Series Model Multi Series (Beta)", - "description": "Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "timegpt_multi_series_timegpt_multi_series_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesForecast", - "examples": [ - null - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "timegpt_multi_series", - "x-excluded": true - } - }, - "/timegpt_multi_series_historic": { - "post": { - "tags": [ - "excluded" - ], - "summary": "Foundational Time Series Model Multi Series Historic (Beta)", - "description": "Based on the provided data, this endpoint predicts the in-sample period (historical period) values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for the historical period. Usually useful for anomaly detection. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "timegpt_multi_series_historic_timegpt_multi_series_historic_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesInsampleForecast", - "examples": [ - { - "y": { - "columns": [ - "unique_id", - "ds", - "y" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - }, - "freq": "D", - "level": [ - 90 - ], - "model": "timegpt-1" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "timegpt_multi_series_historic", - "x-excluded": true - } - }, - "/timegpt_multi_series_anomalies": { - "post": { - "tags": [ - "excluded" - ], - "summary": "Foundational Time Series Model Multi Series Anomaly Detector (Beta)", - "description": "Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "timegpt_multi_series_anomalies_timegpt_multi_series_anomalies_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesAnomaly", - "examples": [ - null - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "timegpt_multi_series_anomalies", - "x-excluded": true - } - }, - "/timegpt_multi_series_cross_validation": { - "post": { - "tags": [ - "excluded" - ], - "summary": "Foundational Time Series Model Multi Series Cross Validation (Beta)", - "description": "Perform Cross Validation for multiple series", - "operationId": "timegpt_multi_series_cross_validation_timegpt_multi_series_cross_validation_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MultiSeriesCrossValidation", - "examples": [ - null - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "timegpt_multi_series_cross_validation", - "x-excluded": true - } - }, - "/v2/forecast": { - "post": { - "summary": "Foundational Time Series Model Multi Series", - "description": "Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "v2_forecast_v2_forecast_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ForecastInput", - "examples": [ - { - "series": { - "sizes": [ - 5, - 3 - ], - "y": [ - 1, - 2, - 3, - 4, - 5, - 10, - 20, - 30 - ] - }, - "h": 2, - "freq": "D" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ForecastOutput" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "v2/forecast" - } - }, - "/v2/cross_validation": { - "post": { - "summary": "Foundational Time Series Model Multi Series Cross Validation", - "description": "Perform Cross Validation for multiple series", - "operationId": "v2_cross_validation_v2_cross_validation_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CrossValidationInput", - "examples": [ - { - "series": { - "sizes": [ - 5, - 3 - ], - "y": [ - 1, - 2, - 3, - 4, - 5, - 10, - 20, - 30 - ] - }, - "h": 2, - "n_windows": 1, - "freq": "D" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CrossValidationOutput" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "v2/cross_validation" - } - }, - "/v2/historic_forecast": { - "post": { - "summary": "Foundational Time Series Model Multi Series Historic (Deprecated)", - "description": "**Deprecated:** This endpoint is deprecated and will be removed in a future release. Please use [`/v2/cross_validation`](#tag/default/POST/v2/cross_validation) instead, which offers equivalent in-sample evaluation capabilities through rolling-window cross validation.\n\nBased on the provided data, this endpoint predicts the in-sample period (historical period) values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for the historical period. Usually useful for anomaly detection. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "v2_historic_forecast_v2_historic_forecast_post", - "deprecated": true, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InSampleInput", - "examples": [ - { - "series": { - "sizes": [ - 35 - ], - "y": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 10, - 4, - 5, - 6 - ] - }, - "freq": "D" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InSampleOutput" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "v2/historic_forecast" - } - }, - "/v2/anomaly_detection": { - "post": { - "summary": "Foundational Time Series Model Multi Series Anomaly Detector", - "description": "Based on the provided data, this endpoint detects the anomalies in the historical perdiod of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly and also provides the prediction interval used to define if an observation is an anomaly.Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "v2_anomaly_detection_v2_anomaly_detection_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AnomalyDetectionInput", - "examples": [ - { - "series": { - "sizes": [ - 35 - ], - "y": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0, - 1, - 2, - 10, - 4, - 5, - 6 - ] - }, - "freq": "D", - "level": 90 - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AnomalyDetectionOutput" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "v2/anomaly_detection" - } - }, - "/v2/online_anomaly_detection": { - "post": { - "summary": "Foundational Time Series Model Online Multi Series Anomaly Detector", - "description": "This endpoint performs online anomaly detection based on the provided data. It uses cross-validation for more robust detection of anomalies and it supports detection for univariate and multivariate scenarios. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains a flag indicating if the date has an anomaly, it provides the prediction interval used to define if an observation is an anomaly, and it reports the associated z-score for each point. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "v2_online_anomaly_detection_v2_online_anomaly_detection_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OnlineAnomalyInput", - "examples": [ - { - "series": { - "sizes": [ - 320 - ], - "y": [ - 12.0, - 12.99833416646828, - 13.986693307950611, - 14.955202066613396, - 15.894183423086506, - 16.794255386042032, - 17.646424733950354, - 18.442176872376912, - 19.173560908995228, - 19.833269096274833, - 20.414709848078964, - 20.912073600614356, - 21.320390859672266, - 21.63558185417193, - 21.854497299884603, - 21.974949866040546, - 21.995736030415053, - 21.916648104524686, - 21.73847630878195, - 21.463000876874144, - 21.092974268256818, - 20.632093666488736, - 20.0849640381959, - 19.457052121767198, - 18.754631805511508, - 17.984721441039564, - 17.15501371821464, - 16.2737988023383, - 15.349881501559047, - 14.39249329213982, - 13.411200080598672, - 12.415806624332905, - 11.416258565724199, - 10.422543058567513, - 9.444588979731684, - 8.492167723103801, - 7.574795567051475, - 6.701638590915066, - 5.8814210905728075, - 5.1223384081602585, - 4.4319750469207175, - 3.817228889355892, - 3.284242275864118, - 2.838340632505451, - 2.4839792611048406, - 2.22469882334903, - 2.0630899636653552, - 2.000767424358992, - 2.038353911641595, - 2.175473873756676, - 2.4107572533686152, - 2.741853176722678, - 3.1654534427984693, - 3.6773255777609926, - 4.2723551244401285, - 4.9445967442960805, - 5.6873336212767915, - 6.493144574023624, - 7.353978205862434, - 8.26123335169764, - 9.205845018010741, - 10.17837495727905, - 11.169105971825037, - 12.168139004843505, - 13.165492048504937, - 14.151199880878156, - 15.115413635133788, - 16.048499206165985, - 16.94113351138609, - 17.784397643882002, - 18.56986598718789, - 19.289690401258767, - 19.936678638491532, - 20.50436620628565, - 20.98708095811627, - 21.37999976774739, - 21.679196720314863, - 21.881682338770005, - 21.985433453746047, - 21.98941341839772, - 21.893582466233816, - 21.698898108450862, - 21.407305566797724, - 21.02171833756293, - 20.545989080882805, - 19.984871126234903, - 19.343970978741133, - 18.62969230082182, - 17.849171928917617, - 17.010208564578846, - 16.121184852417567, - 15.190983623493521, - 14.22889914100246, - 13.244544235070617, - 12.247754254533577, - 11.248488795381906, - 10.256732187770186, - 9.282393735890558, - 8.335208707480717, - 7.424641062246787, - 6.559788891106303, - 5.749293511071166, - 5.001253124064563, - 4.323141902364175, - 3.7217353091434635, - 3.2030424002833, - 2.772245783871927, - 2.433649837298116, - 2.1906376993350847, - 2.045637466936226, - 2.000097934492965, - 2.05447411796011, - 2.208222708486831, - 2.4598075009791103, - 2.8067147433532433, - 3.2454782531157154, - 3.771714050312921, - 4.380164160809679, - 5.064749152228776, - 5.818628877629667, - 6.634270819995651, - 7.503525354654001, - 8.41770717763173, - 9.36768208634199, - 10.343958245516905, - 11.336781026487992, - 12.336230472211385, - 13.33232041419944, - 14.315098251015389, - 15.274744391376931, - 16.20167036826641, - 17.086614643723752, - 17.920735147072243, - 18.695697621966023, - 19.403758899524487, - 20.03784426551621, - 20.59161814856497, - 21.059547423084627, - 21.436956694441047, - 21.72007501394976, - 21.906073556948705, - 21.993093887479176, - 21.980266527163614, - 21.86771964274613, - 21.656577765492774, - 21.34895055524683, - 20.947911721405035, - 20.457468311429334, - 19.882520673753163, - 19.22881349511976, - 18.502878401571166, - 17.71196869659987, - 16.86398688853798, - 15.96740573130612, - 15.031183567457022, - 14.064674819377966, - 13.077536522994423, - 12.079631837859356, - 11.080931497723183, - 10.091414186258106, - 9.120966833349346, - 8.179285828159909, - 7.275780136015339, - 6.4194772871322066, - 5.618933176520498, - 4.882146576308769, - 4.216479214657015, - 3.6285822198025315, - 3.1243296641849536, - 2.7087598726563034, - 2.3860250812044317, - 2.159349949183566, - 2.0309993395840387, - 2.002255689269889, - 2.073406195293673, - 2.243739945318424, - 2.5115550208187596, - 2.874175502088155, - 3.3279782051441877, - 3.8684288833851355, - 4.490127532283239, - 5.186862344445, - 5.951671775937159, - 6.776914103732684, - 7.6543437792810645, - 8.575193815303875, - 9.530263382633791, - 10.510009741858012, - 11.504643591216325, - 12.504226878068147, - 13.498772096629523, - 14.478342079829599, - 15.433149288198987, - 16.353653603728933, - 17.230657651576994, - 18.05539869719601, - 18.819636200681355, - 19.515734153521507, - 20.136737375071053, - 20.67644100641669, - 21.129452507276277, - 21.491245536478946, - 21.758205177669765, - 21.92766405835907, - 21.99792900142669, - 21.96829794278799, - 21.83906694618616, - 21.611527245021158, - 21.287952340772407, - 20.871575286923495, - 20.36655638536056, - 19.777941618010928, - 19.1116122290598, - 18.37422596150239, - 17.573150535176584, - 16.716390030941962, - 15.8125049165494, - 14.870526513277252, - 13.899866757954378, - 12.910224161998443, - 11.911486907095961, - 10.913634045759203, - 9.926635793932377, - 8.96035391188953, - 8.024443168785638, - 7.128254875394905, - 6.280743448904362, - 5.4903769433375045, - 4.76505243955755, - 4.112017140245813, - 3.537795958248294, - 3.0481263218031813, - 2.647900848054597, - 2.341118457639295, - 2.1308444187935063, - 2.0191797202060364, - 2.007240078633723, - 2.0951447910284404, - 2.2820155425613677, - 2.5659851824544564, - 2.9442163799337617, - 3.412929973900706, - 3.967442733060473, - 4.602214149221066, - 5.310901796219784, - 6.086424701348756, - 6.921034096093779, - 7.806390839267719, - 8.733648738952777, - 9.693542940726077, - 10.67648249902227, - 11.672646206691546, - 12.672080725254785, - 13.664800035371591, - 14.64088521384473, - 15.590583540221683, - 16.50440594275389, - 17.37322181006475, - 18.188350221200395, - 18.941646682522446, - 19.625584504796027, - 20.233330007380815, - 20.75881079810891, - 21.1967764466202, - 21.542850944926982, - 21.79357643103917, - 21.94644773877838, - 21.999937428570206, - 21.95351104911559, - 21.80763247745152, - 21.56375928404503, - 21.22432816923086, - 20.792730616507228, - 20.273279005953786, - 19.67116352635528, - 18.992400316550977, - 18.243771354163915, - 17.43275669232245, - 16.567459721441928, - 15.65652620282618, - 14.70905788307869, - 13.73452155245892, - 12.742654455843578, - 11.743367001394406, - 10.746643739035674, - 9.762443598132036, - 8.80060038115802, - 7.870724507594566, - 6.982106989794258, - 6.1436266002569955, - 5.363661157870324, - 4.650003819512223, - 4.009785213403841, - 3.4494021922292983, - 2.9744539178981313, - 2.589685916570465, - 2.2989426629281464, - 2.1051291674546437, - 2.010181950530505, - 2.0150496933618545, - 2.119683759071382, - 2.3230386786619484, - 2.6230825969972003, - 3.0168175744264527, - 3.5003095412067378, - 4.068727605427148, - 4.716392321684066, - 5.4368324382221225, - 6.222849555542682, - 7.066590050432248, - 7.9596235467693495, - 8.893027149056277, - 9.857474597041158, - 10.84332945062763, - 11.840741373999018, - 12.839744556917468, - 13.83035728980588, - 14.802681697690229, - 30, - 16.653884763549584 - ] - }, - "h": 20, - "freq": "W", - "level": 99, - "detection_size": 5 - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OnlineAnomalyOutput" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "v2/online_anomaly_detection" - } - }, - "/v2/finetune": { - "post": { - "summary": "Foundational Time Series Model Multi Series Finetuning", - "description": "Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", - "operationId": "v2_finetune_v2_finetune_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FinetuneInput", - "examples": [ - { - "series": { - "y": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35 - ], - "sizes": [ - 36 - ] - }, - "finetune_steps": 10, - "freq": "MS", - "model": "timegpt-1" - } - ] - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FinetuneOutput" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ], - "x-fern-sdk-method-name": "v2/finetune" - } - }, - "/v2/finetuned_models": { - "get": { - "summary": "List Fine-tuned Models", - "description": "List all the finetuned models that you have created. The response contains a list with the IDs of the models that you have fine-tuned and are available to make forecasts.", - "operationId": "v2_finetuned_models_v2_finetuned_models_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FinetunedModelsOutput" - } - } - } - } - }, - "security": [ - { - "HTTPBearer": [] - } - ] - } - }, - "/v2/finetuned_models/{finetuned_model_id}": { - "get": { - "summary": "Get single Fine-tuned Model", - "description": "Retrieve metadata for a previously fine-tuned model. The response contains the metadata of a model that you have fine-tuned and is available to make forecasts.", - "operationId": "v2_finetuned_model_v2_finetuned_models__finetuned_model_id__get", - "security": [ - { - "HTTPBearer": [] - } - ], - "parameters": [ - { - "name": "finetuned_model_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", - "title": "Finetuned Model Id" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FinetunedModel" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - }, - "delete": { - "summary": "Delete Fine-tuned Model", - "description": "Delete a previously saved finetuned model. It takes the ID of the model that you want to delete as a path parameter.", - "operationId": "v2_finetuned_models_delete_v2_finetuned_models__finetuned_model_id__delete", - "security": [ - { - "HTTPBearer": [] - } - ], - "parameters": [ - { - "name": "finetuned_model_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", - "title": "Finetuned Model Id" - } - } - ], - "responses": { - "204": { - "description": "Successful Response" - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "y": [ + 12.0, + 12.99833416646828, + 13.986693307950611, + 14.955202066613396, + 15.894183423086506, + 16.794255386042032, + 17.646424733950354, + 18.442176872376912, + 19.173560908995228, + 19.833269096274833, + 20.414709848078964, + 20.912073600614356, + 21.320390859672266, + 21.63558185417193, + 21.854497299884603, + 21.974949866040546, + 21.995736030415053, + 21.916648104524686, + 21.73847630878195, + 21.463000876874144, + 21.092974268256818, + 20.632093666488736, + 20.0849640381959, + 19.457052121767198, + 18.754631805511508, + 17.984721441039564, + 17.15501371821464, + 16.2737988023383, + 15.349881501559047, + 14.39249329213982, + 13.411200080598672, + 12.415806624332905, + 11.416258565724199, + 10.422543058567513, + 9.444588979731684, + 8.492167723103801, + 7.574795567051475, + 6.701638590915066, + 5.8814210905728075, + 5.1223384081602585, + 4.4319750469207175, + 3.817228889355892, + 3.284242275864118, + 2.838340632505451, + 2.4839792611048406, + 2.22469882334903, + 2.0630899636653552, + 2.000767424358992, + 2.038353911641595, + 2.175473873756676, + 2.4107572533686152, + 2.741853176722678, + 3.1654534427984693, + 3.6773255777609926, + 4.2723551244401285, + 4.9445967442960805, + 5.6873336212767915, + 6.493144574023624, + 7.353978205862434, + 8.26123335169764, + 9.205845018010741, + 10.17837495727905, + 11.169105971825037, + 12.168139004843505, + 13.165492048504937, + 14.151199880878156, + 15.115413635133788, + 16.048499206165985, + 16.94113351138609, + 17.784397643882002, + 18.56986598718789, + 19.289690401258767, + 19.936678638491532, + 20.50436620628565, + 20.98708095811627, + 21.37999976774739, + 21.679196720314863, + 21.881682338770005, + 21.985433453746047, + 21.98941341839772, + 21.893582466233816, + 21.698898108450862, + 21.407305566797724, + 21.02171833756293, + 20.545989080882805, + 19.984871126234903, + 19.343970978741133, + 18.62969230082182, + 17.849171928917617, + 17.010208564578846, + 16.121184852417567, + 15.190983623493521, + 14.22889914100246, + 13.244544235070617, + 12.247754254533577, + 11.248488795381906, + 10.256732187770186, + 9.282393735890558, + 8.335208707480717, + 7.424641062246787, + 6.559788891106303, + 5.749293511071166, + 5.001253124064563, + 4.323141902364175, + 3.7217353091434635, + 3.2030424002833, + 2.772245783871927, + 2.433649837298116, + 2.1906376993350847, + 2.045637466936226, + 2.000097934492965, + 2.05447411796011, + 2.208222708486831, + 2.4598075009791103, + 2.8067147433532433, + 3.2454782531157154, + 3.771714050312921, + 4.380164160809679, + 5.064749152228776, + 5.818628877629667, + 6.634270819995651, + 7.503525354654001, + 8.41770717763173, + 9.36768208634199, + 10.343958245516905, + 11.336781026487992, + 12.336230472211385, + 13.33232041419944, + 14.315098251015389, + 15.274744391376931, + 16.20167036826641, + 17.086614643723752, + 17.920735147072243, + 18.695697621966023, + 19.403758899524487, + 20.03784426551621, + 20.59161814856497, + 21.059547423084627, + 21.436956694441047, + 21.72007501394976, + 21.906073556948705, + 21.993093887479176, + 21.980266527163614, + 21.86771964274613, + 21.656577765492774, + 21.34895055524683, + 20.947911721405035, + 20.457468311429334, + 19.882520673753163, + 19.22881349511976, + 18.502878401571166, + 17.71196869659987, + 16.86398688853798, + 15.96740573130612, + 15.031183567457022, + 14.064674819377966, + 13.077536522994423, + 12.079631837859356, + 11.080931497723183, + 10.091414186258106, + 9.120966833349346, + 8.179285828159909, + 7.275780136015339, + 6.4194772871322066, + 5.618933176520498, + 4.882146576308769, + 4.216479214657015, + 3.6285822198025315, + 3.1243296641849536, + 2.7087598726563034, + 2.3860250812044317, + 2.159349949183566, + 2.0309993395840387, + 2.002255689269889, + 2.073406195293673, + 2.243739945318424, + 2.5115550208187596, + 2.874175502088155, + 3.3279782051441877, + 3.8684288833851355, + 4.490127532283239, + 5.186862344445, + 5.951671775937159, + 6.776914103732684, + 7.6543437792810645, + 8.575193815303875, + 9.530263382633791, + 10.510009741858012, + 11.504643591216325, + 12.504226878068147, + 13.498772096629523, + 14.478342079829599, + 15.433149288198987, + 16.353653603728933, + 17.230657651576994, + 18.05539869719601, + 18.819636200681355, + 19.515734153521507, + 20.136737375071053, + 20.67644100641669, + 21.129452507276277, + 21.491245536478946, + 21.758205177669765, + 21.92766405835907, + 21.99792900142669, + 21.96829794278799, + 21.83906694618616, + 21.611527245021158, + 21.287952340772407, + 20.871575286923495, + 20.36655638536056, + 19.777941618010928, + 19.1116122290598, + 18.37422596150239, + 17.573150535176584, + 16.716390030941962, + 15.8125049165494, + 14.870526513277252, + 13.899866757954378, + 12.910224161998443, + 11.911486907095961, + 10.913634045759203, + 9.926635793932377, + 8.96035391188953, + 8.024443168785638, + 7.128254875394905, + 6.280743448904362, + 5.4903769433375045, + 4.76505243955755, + 4.112017140245813, + 3.537795958248294, + 3.0481263218031813, + 2.647900848054597, + 2.341118457639295, + 2.1308444187935063, + 2.0191797202060364, + 2.007240078633723, + 2.0951447910284404, + 2.2820155425613677, + 2.5659851824544564, + 2.9442163799337617, + 3.412929973900706, + 3.967442733060473, + 4.602214149221066, + 5.310901796219784, + 6.086424701348756, + 6.921034096093779, + 7.806390839267719, + 8.733648738952777, + 9.693542940726077, + 10.67648249902227, + 11.672646206691546, + 12.672080725254785, + 13.664800035371591, + 14.64088521384473, + 15.590583540221683, + 16.50440594275389, + 17.37322181006475, + 18.188350221200395, + 18.941646682522446, + 19.625584504796027, + 20.233330007380815, + 20.75881079810891, + 21.1967764466202, + 21.542850944926982, + 21.79357643103917, + 21.94644773877838, + 21.999937428570206, + 21.95351104911559, + 21.80763247745152, + 21.56375928404503, + 21.22432816923086, + 20.792730616507228, + 20.273279005953786, + 19.67116352635528, + 18.992400316550977, + 18.243771354163915, + 17.43275669232245, + 16.567459721441928, + 15.65652620282618, + 14.70905788307869, + 13.73452155245892, + 12.742654455843578, + 11.743367001394406, + 10.746643739035674, + 9.762443598132036, + 8.80060038115802, + 7.870724507594566, + 6.982106989794258, + 6.1436266002569955, + 5.363661157870324, + 4.650003819512223, + 4.009785213403841, + 3.4494021922292983, + 2.9744539178981313, + 2.589685916570465, + 2.2989426629281464, + 2.1051291674546437, + 2.010181950530505, + 2.0150496933618545, + 2.119683759071382, + 2.3230386786619484, + 2.6230825969972003, + 3.0168175744264527, + 3.5003095412067378, + 4.068727605427148, + 4.716392321684066, + 5.4368324382221225, + 6.222849555542682, + 7.066590050432248, + 7.9596235467693495, + 8.893027149056277, + 9.857474597041158, + 10.84332945062763, + 11.840741373999018, + 12.839744556917468, + 13.83035728980588, + 14.802681697690229, + 30, + 16.653884763549584 + ] + } + } + ] } } - } - } - } - } - }, - "components": { - "schemas": { - "AnomalyDetectionInput": { - "properties": { - "series": { - "$ref": "#/components/schemas/SeriesWithExogenous" - }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." - }, - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" - }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true - }, - "finetuned_model_id": { - "anyOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" - }, - { - "type": "null" - } - ], - "title": "Finetuned Model Id", - "description": "ID of previously finetuned model" }, - "level": { - "anyOf": [ - { - "type": "integer", - "exclusiveMaximum": 100.0, - "minimum": 0.0 - }, - { - "type": "number", - "exclusiveMaximum": 100.0, - "minimum": 0.0 - } - ], - "title": "Level", - "description": "Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.", - "default": 99 - } + "required": true }, - "type": "object", - "required": [ - "series", - "freq" - ], - "title": "AnomalyDetectionInput" - }, - "AnomalyDetectionOutput": { - "properties": { - "input_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Input Tokens" - }, - "output_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Output Tokens" - }, - "finetune_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Finetune Tokens" - }, - "mean": { - "items": { - "type": "number" - }, - "type": "array", - "title": "Mean" - }, - "sizes": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "Sizes" - }, - "intervals": { - "anyOf": [ - { - "additionalProperties": { - "items": { - "type": "number" - }, - "type": "array" - }, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Intervals" - }, - "weights_x": { - "anyOf": [ - { - "items": { - "type": "number" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Weights X" - }, - "feature_contributions": { - "anyOf": [ - { - "items": { - "items": { - "type": "number" - }, - "type": "array" - }, - "type": "array" - }, - { - "type": "null" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OnlineAnomalyOutput" + } } - ], - "title": "Feature Contributions" + } }, - "anomaly": { - "items": { - "type": "boolean" - }, - "type": "array", - "title": "Anomaly" + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, - "type": "object", - "required": [ - "input_tokens", - "output_tokens", - "finetune_tokens", - "mean", - "sizes", - "anomaly" + "security": [ + { + "HTTPBearer": [] + } ], - "title": "AnomalyDetectionOutput" - }, - "CrossValidationInput": { - "properties": { - "series": { - "$ref": "#/components/schemas/SeriesWithExogenous" - }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." - }, - "n_windows": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "N Windows", - "description": "Number of windows to evaluate." - }, - "h": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "H", - "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict." - }, - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" - }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true + "x-fern-sdk-method-name": "v2/online_anomaly_detection" + } + }, + "/model_params": { + "get": { + "tags": [ + "excluded" + ], + "summary": "Get Model Params", + "operationId": "get_model_params_model_params_get", + "security": [ + { + "HTTPBearer": [] + } + ], + "parameters": [ + { + "name": "model", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Model" + } }, - "level": { - "anyOf": [ - { - "items": { - "anyOf": [ - { - "type": "integer", - "exclusiveMaximum": 100.0, - "minimum": 0.0 - }, - { - "type": "number", - "exclusiveMaximum": 100.0, - "minimum": 0.0 - } - ] - }, - "type": "array", - "minItems": 1 - }, - { - "type": "null" + { + "name": "freq", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Freq" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} } - ], - "title": "Level", - "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." - }, - "finetune_steps": { - "type": "integer", - "minimum": 0.0, - "title": "Finetune Steps", - "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", - "default": 0 - }, - "finetune_loss": { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape", - "poisson" - ], - "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", - "default": "default" - }, - "finetune_depth": { - "type": "integer", - "enum": [ - 1, - 2, - 3, - 4, - 5 - ], - "title": "Finetune Depth", - "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.", - "default": 1 + } }, - "finetuned_model_id": { - "anyOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" - }, - { - "type": "null" + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - ], - "title": "Finetuned Model Id", - "description": "ID of previously finetuned model" - }, - "step_size": { - "anyOf": [ - { - "type": "integer", - "exclusiveMinimum": 0.0 - }, - { - "type": "null" + } + } + }, + "x-excluded": true + } + }, + "/v2/cross_validation": { + "post": { + "summary": "Foundational Time Series Model Multi Series Cross Validation", + "description": "Perform Cross Validation for multiple series", + "operationId": "v2_cross_validation_v2_cross_validation_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CrossValidationInput", + "examples": [ + { + "freq": "D", + "h": 2, + "n_windows": 1, + "series": { + "sizes": [ + 5, + 3 + ], + "y": [ + 1, + 2, + 3, + 4, + 5, + 10, + 20, + 30 + ] + } + } + ] } - ], - "title": "Step Size", - "description": "Step size between each cross validation window. If None it will be equal to the forecasting horizon." + } }, - "hist_exog": { - "anyOf": [ - { - "items": { - "type": "integer", - "minimum": 0.0 - }, - "type": "array" - }, - { - "type": "null" + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CrossValidationOutput" + } } - ], - "title": "Hist Exog", - "description": "Zero-based indices of the exogenous features to treat as historical." + } }, - "refit": { - "type": "boolean", - "title": "Refit", - "description": "Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.", - "default": true + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, - "type": "object", - "required": [ - "series", - "freq", - "n_windows", - "h" + "security": [ + { + "HTTPBearer": [] + } ], - "title": "CrossValidationInput" - }, - "CrossValidationOutput": { - "properties": { - "input_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Input Tokens" - }, - "output_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Output Tokens" - }, - "finetune_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Finetune Tokens" - }, - "mean": { - "items": { - "type": "number" - }, - "type": "array", - "title": "Mean" - }, - "sizes": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "Sizes" + "x-fern-sdk-method-name": "v2/cross_validation" + } + }, + "/v2/finetune": { + "post": { + "summary": "Foundational Time Series Model Multi Series Finetuning", + "description": "Fine-tune the large time model to your data and save it for later use. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the ID of the finetuned model, which you can provide in other endpoints to use that model to make the forecasts. Get your token at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.", + "operationId": "v2_finetune_v2_finetune_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FinetuneInput", + "examples": [ + { + "finetune_steps": 10, + "freq": "MS", + "model": "timegpt-1", + "series": { + "sizes": [ + 36 + ], + "y": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35 + ] + } + } + ] + } + } }, - "idxs": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "Idxs" + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FinetuneOutput" + } + } + } }, - "intervals": { - "anyOf": [ - { - "additionalProperties": { - "items": { - "type": "number" - }, - "type": "array" - }, - "type": "object" - }, - { - "type": "null" + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - ], - "title": "Intervals" + } } }, - "type": "object", - "required": [ - "input_tokens", - "output_tokens", - "finetune_tokens", - "mean", - "sizes", - "idxs" + "security": [ + { + "HTTPBearer": [] + } ], - "title": "CrossValidationOutput" - }, - "FinetuneInput": { - "properties": { - "series": { - "$ref": "#/components/schemas/Series" - }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." - }, - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" - }, - "finetune_steps": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "Finetune Steps", - "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", - "default": 10 - }, - "finetune_loss": { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape", - "poisson" - ], - "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", - "default": "default" - }, - "finetune_depth": { - "type": "integer", - "enum": [ - 1, - 2, - 3, - 4, - 5 - ], - "title": "Finetune Depth", - "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.", - "default": 1 - }, - "output_model_id": { - "anyOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" - }, - { - "type": "null" - } - ], - "title": "Output Model Id", - "description": "ID to assign to the finetuned model" - }, - "finetuned_model_id": { - "anyOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" - }, - { - "type": "null" + "x-fern-sdk-method-name": "v2/finetune" + } + }, + "/v2/finetuned_models": { + "get": { + "summary": "List Fine-tuned Models", + "description": "List all the finetuned models that you have created. The response contains a list with the IDs of the models that you have fine-tuned and are available to make forecasts.", + "operationId": "v2_finetuned_models_v2_finetuned_models_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FinetunedModelsOutput" + } } - ], - "title": "Finetuned Model Id", - "description": "ID of previously finetuned model" + } } }, - "type": "object", - "required": [ - "series", - "freq" + "security": [ + { + "HTTPBearer": [] + } + ] + } + }, + "/v2/finetuned_models/{finetuned_model_id}": { + "get": { + "summary": "Get single Fine-tuned Model", + "description": "Retrieve metadata for a previously fine-tuned model. The response contains the metadata of a model that you have fine-tuned and is available to make forecasts.", + "operationId": "v2_finetuned_model_v2_finetuned_models__finetuned_model_id__get", + "parameters": [ + { + "name": "finetuned_model_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", + "title": "Finetuned Model Id" + } + } ], - "title": "FinetuneInput" - }, - "FinetuneOutput": { - "properties": { - "input_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Input Tokens" - }, - "output_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Output Tokens" - }, - "finetune_tokens": { - "type": "integer", - "minimum": 0.0, - "title": "Finetune Tokens" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FinetunedModel" + } + } + } }, - "finetuned_model_id": { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", - "title": "Finetuned Model Id" + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, - "type": "object", - "required": [ - "input_tokens", - "output_tokens", - "finetune_tokens", - "finetuned_model_id" - ], - "title": "FinetuneOutput" + "security": [ + { + "HTTPBearer": [] + } + ] }, - "FinetunedModel": { - "properties": { - "id": { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", - "title": "Id" - }, - "created_at": { - "type": "string", - "title": "Created At" - }, - "created_by": { - "type": "string", - "title": "Created By", - "default": "user" - }, - "base_model_id": { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", - "title": "Base Model Id" - }, - "steps": { - "type": "integer", - "title": "Steps" - }, - "depth": { - "type": "integer", - "title": "Depth" - }, - "loss": { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape", - "poisson" - ], - "title": "Loss" - }, - "model": { - "type": "string", - "title": "Model" + "delete": { + "summary": "Delete Fine-tuned Model", + "description": "Delete a previously saved finetuned model. It takes the ID of the model that you want to delete as a path parameter.", + "operationId": "v2_finetuned_models_delete_v2_finetuned_models__finetuned_model_id__delete", + "parameters": [ + { + "name": "finetuned_model_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", + "title": "Finetuned Model Id" + } + } + ], + "responses": { + "204": { + "description": "Successful Response" }, - "freq": { - "type": "string", - "title": "Freq" + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, - "type": "object", - "required": [ - "id", - "created_at", - "base_model_id", - "steps", - "depth", - "loss", - "model", - "freq" - ], - "title": "FinetunedModel" - }, - "FinetunedModelsOutput": { - "properties": { - "finetuned_models": { - "items": { - "$ref": "#/components/schemas/FinetunedModel" - }, - "type": "array", - "title": "Finetuned Models" + "security": [ + { + "HTTPBearer": [] + } + ] + } + }, + "/validate_api_key": { + "get": { + "summary": "Validate Api Key", + "operationId": "validate_api_key_validate_api_key_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } } }, - "type": "object", - "required": [ - "finetuned_models" - ], - "title": "FinetunedModelsOutput" - }, - "ForecastInput": { + "security": [ + { + "HTTPBearer": [] + } + ] + } + } + }, + "components": { + "schemas": { + "AnomalyDetectionInput": { "properties": { "series": { "$ref": "#/components/schemas/SeriesWithFutureExogenous" @@ -4835,13 +905,8 @@ "title": "Freq", "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." }, - "h": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "H", - "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict." - }, "model": { + "type": "string", "title": "Model", "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", "default": "timegpt-1" @@ -4849,83 +914,73 @@ "clean_ex_first": { "type": "boolean", "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true - }, - "level": { - "anyOf": [ - { - "items": { - "anyOf": [ - { - "type": "integer", - "exclusiveMaximum": 100.0, - "minimum": 0.0 - }, - { - "type": "number", - "exclusiveMaximum": 100.0, - "minimum": 0.0 - } - ] - }, - "type": "array", - "minItems": 1 + "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", + "default": true + }, + "finetuned_model_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" }, { "type": "null" } ], - "title": "Level", - "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." + "title": "Finetuned Model Id", + "description": "ID of previously finetuned model" }, - "finetune_steps": { - "type": "integer", - "minimum": 0.0, - "title": "Finetune Steps", - "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", - "default": 0 + "multivariate": { + "type": "boolean", + "title": "Multivariate", + "description": "Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.", + "default": false }, - "finetune_loss": { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape", - "poisson" + "model_parameters": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } ], - "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", - "default": "default" + "title": "Model Parameters", + "description": "Optional dictionary of parameters to customize the behavior of the large time model. " }, - "finetune_depth": { - "type": "integer", - "enum": [ - 1, - 2, - 3, - 4, - 5 + "hist_exog": { + "anyOf": [ + { + "items": { + "type": "integer", + "minimum": 0.0 + }, + "type": "array" + }, + { + "type": "null" + } ], - "title": "Finetune Depth", - "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.", - "default": 1 + "title": "Hist Exog", + "description": "Zero-based indices of the exogenous features to treat as historical." }, - "finetuned_model_id": { + "level": { "anyOf": [ { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" + "type": "integer", + "exclusiveMaximum": 100.0, + "minimum": 0.0 }, { - "type": "null" + "type": "number", + "exclusiveMaximum": 100.0, + "minimum": 0.0 } ], - "title": "Finetuned Model Id", - "description": "ID of previously finetuned model" + "title": "Level", + "description": "Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.", + "default": 99 }, "feature_contributions": { "type": "boolean", @@ -4937,12 +992,11 @@ "type": "object", "required": [ "series", - "freq", - "h" + "freq" ], - "title": "ForecastInput" + "title": "AnomalyDetectionInput" }, - "ForecastOutput": { + "AnomalyDetectionOutput": { "properties": { "input_tokens": { "type": "integer", @@ -4966,6 +1020,13 @@ "type": "array", "title": "Mean" }, + "sizes": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "Sizes" + }, "intervals": { "anyOf": [ { @@ -5013,6 +1074,13 @@ } ], "title": "Feature Contributions" + }, + "anomaly": { + "items": { + "type": "boolean" + }, + "type": "array", + "title": "Anomaly" } }, "type": "object", @@ -5020,34 +1088,43 @@ "input_tokens", "output_tokens", "finetune_tokens", - "mean" + "mean", + "sizes", + "anomaly" ], - "title": "ForecastOutput" - }, - "HTTPValidationError": { - "properties": { - "detail": { - "items": { - "$ref": "#/components/schemas/ValidationError" - }, - "type": "array", - "title": "Detail" - } - }, - "type": "object", - "title": "HTTPValidationError" + "title": "AnomalyDetectionOutput" }, - "InSampleInput": { + "CrossValidationInput": { "properties": { "series": { - "$ref": "#/components/schemas/SeriesWithExogenous" + "$ref": "#/components/schemas/SeriesWithFutureExogenous" }, "freq": { "type": "string", "title": "Freq", "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." }, + "n_windows": { + "type": "integer", + "exclusiveMinimum": 0.0, + "title": "N Windows", + "description": "Number of windows to evaluate.", + "default": 1 + }, + "h": { + "type": "integer", + "exclusiveMinimum": 0.0, + "title": "H", + "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict." + }, + "full_history": { + "type": "boolean", + "title": "Full History", + "description": "Forecast across the entire series history (the `add_history` use case). The horizon and number of windows are derived server-side (any supplied `h` / `n_windows` are ignored), and the exogenous model is refit a bounded number of times to keep whole-history requests fast. Has no effect without exogenous features.", + "default": false + }, "model": { + "type": "string", "title": "Model", "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", "default": "timegpt-1" @@ -5058,19 +1135,6 @@ "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", "default": true }, - "finetuned_model_id": { - "anyOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" - }, - { - "type": "null" - } - ], - "title": "Finetuned Model Id", - "description": "ID of previously finetuned model" - }, "level": { "anyOf": [ { @@ -5098,6 +1162,108 @@ "title": "Level", "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." }, + "finetune_steps": { + "type": "integer", + "minimum": 0.0, + "title": "Finetune Steps", + "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", + "default": 0 + }, + "finetune_loss": { + "type": "string", + "enum": [ + "default", + "mae", + "mse", + "rmse", + "mape", + "smape", + "poisson" + ], + "title": "Finetune Loss", + "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", + "default": "default" + }, + "finetune_depth": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "title": "Finetune Depth", + "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.", + "default": 1 + }, + "finetuned_model_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" + }, + { + "type": "null" + } + ], + "title": "Finetuned Model Id", + "description": "ID of previously finetuned model" + }, + "step_size": { + "anyOf": [ + { + "type": "integer", + "exclusiveMinimum": 0.0 + }, + { + "type": "null" + } + ], + "title": "Step Size", + "description": "Step size between each cross validation window. If None it will be equal to the forecasting horizon." + }, + "hist_exog": { + "anyOf": [ + { + "items": { + "type": "integer", + "minimum": 0.0 + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Hist Exog", + "description": "Zero-based indices of the exogenous features to treat as historical." + }, + "refit": { + "type": "boolean", + "title": "Refit", + "description": "Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.", + "default": true + }, + "multivariate": { + "type": "boolean", + "title": "Multivariate", + "description": "Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.", + "default": false + }, + "model_parameters": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Model Parameters", + "description": "Optional dictionary of parameters to customize the behavior of the large time model. " + }, "feature_contributions": { "type": "boolean", "title": "Feature Contributions", @@ -5108,11 +1274,12 @@ "type": "object", "required": [ "series", - "freq" + "freq", + "h" ], - "title": "InSampleInput" + "title": "CrossValidationInput" }, - "InSampleOutput": { + "CrossValidationOutput": { "properties": { "input_tokens": { "type": "integer", @@ -5143,6 +1310,13 @@ "type": "array", "title": "Sizes" }, + "idxs": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "Idxs" + }, "intervals": { "anyOf": [ { @@ -5160,20 +1334,6 @@ ], "title": "Intervals" }, - "weights_x": { - "anyOf": [ - { - "items": { - "type": "number" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Weights X" - }, "feature_contributions": { "anyOf": [ { @@ -5198,555 +1358,94 @@ "output_tokens", "finetune_tokens", "mean", - "sizes" + "sizes", + "idxs" ], - "title": "InSampleOutput" + "title": "CrossValidationOutput" }, - "MultiSeriesAnomaly": { + "FinetuneInput": { "properties": { - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" + "series": { + "$ref": "#/components/schemas/SeriesWithFutureExogenous" }, "freq": { "type": "string", "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.", - "default": "D" + "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." }, - "level": { - "items": {}, - "type": "array", - "title": "Level", - "description": "Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.", - "default": [ - 99 - ] + "model": { + "type": "string", + "title": "Model", + "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", + "default": "timegpt-1" }, - "y": { - "title": "Y", - "description": "The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"y\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.7], [\"ts_0\", \"2021-01-02\", 0.8]}.", - "default": { - "columns": [ - "unique_id", - "ds", - "y" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - } + "finetune_steps": { + "type": "integer", + "minimum": 0.0, + "title": "Finetune Steps", + "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", + "default": 10 }, - "x": { - "anyOf": [ - { - "$ref": "#/components/schemas/MultiSeriesInput" - }, - { - "type": "null" - } + "finetune_loss": { + "type": "string", + "enum": [ + "default", + "mae", + "mse", + "rmse", + "mape", + "smape", + "poisson" + ], + "title": "Finetune Loss", + "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", + "default": "default" + }, + "finetune_depth": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 ], - "description": "The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"ex_1\", \"ex_2\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.2, 0.67], [\"ts_0\", \"2021-01-02\", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values." + "title": "Finetune Depth", + "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.", + "default": 1 }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true - } - }, - "type": "object", - "title": "MultiSeriesAnomaly" - }, - "MultiSeriesCrossValidation": { - "properties": { - "fewshot_steps": { + "output_model_id": { "anyOf": [ { - "type": "integer" + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" }, { "type": "null" } ], - "title": "Fewshot Steps", - "description": "Deprecated. Please use finetune_steps instead.", - "deprecated": true + "title": "Output Model Id", + "description": "ID to assign to the finetuned model" }, - "fewshot_loss": { + "finetuned_model_id": { "anyOf": [ { "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape" - ] + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" }, { "type": "null" } ], - "title": "Fewshot Loss", - "description": "Deprecated. Please use finetune_loss instead.", - "deprecated": true - }, - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" - }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.", - "default": "D" + "title": "Finetuned Model Id", + "description": "ID of previously finetuned model" }, - "level": { + "hist_exog": { "anyOf": [ { "items": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "number" - } - ] + "type": "integer", + "minimum": 0.0 }, "type": "array" }, @@ -5754,504 +1453,98 @@ "type": "null" } ], - "title": "Level", - "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." - }, - "fh": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "Fh", - "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.", - "default": 7 + "title": "Hist Exog", + "description": "Zero-based indices of the exogenous features to treat as historical." }, - "y": { - "title": "Y", - "description": "The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"y\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.7], [\"ts_0\", \"2021-01-02\", 0.8]}.", - "default": { - "columns": [ - "unique_id", - "ds", - "y" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - } + "multivariate": { + "type": "boolean", + "title": "Multivariate", + "description": "Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.", + "default": false }, - "x": { + "model_parameters": { "anyOf": [ { - "$ref": "#/components/schemas/MultiSeriesInput" + "additionalProperties": true, + "type": "object" }, { "type": "null" } ], - "description": "The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"ex_1\", \"ex_2\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.2, 0.67], [\"ts_0\", \"2021-01-02\", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values." + "title": "Model Parameters", + "description": "Optional dictionary of parameters to customize the behavior of the large time model. " + } + }, + "type": "object", + "required": [ + "series", + "freq" + ], + "title": "FinetuneInput" + }, + "FinetuneOutput": { + "properties": { + "input_tokens": { + "type": "integer", + "minimum": 0.0, + "title": "Input Tokens" }, - "n_windows": { + "output_tokens": { "type": "integer", - "exclusiveMinimum": 0.0, - "title": "N Windows", - "description": "Number of windows to evaluate.", - "default": 1 + "minimum": 0.0, + "title": "Output Tokens" }, - "step_size": { - "anyOf": [ - { - "type": "integer", - "exclusiveMinimum": 0.0 - }, - { - "type": "null" - } - ], - "title": "Step Size", - "description": "Step size between each cross validation window. If None it will be equal to the forecasting horizon." + "finetune_tokens": { + "type": "integer", + "minimum": 0.0, + "title": "Finetune Tokens" }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true + "finetuned_model_id": { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", + "title": "Finetuned Model Id" + } + }, + "type": "object", + "required": [ + "input_tokens", + "output_tokens", + "finetune_tokens", + "finetuned_model_id" + ], + "title": "FinetuneOutput" + }, + "FinetunedModel": { + "properties": { + "id": { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", + "title": "Id" }, - "finetune_steps": { + "created_at": { + "type": "string", + "title": "Created At" + }, + "created_by": { + "type": "string", + "title": "Created By", + "default": "user" + }, + "base_model_id": { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$", + "title": "Base Model Id" + }, + "steps": { "type": "integer", - "minimum": 0.0, - "title": "Finetune Steps", - "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", - "default": 0 + "title": "Steps" }, - "finetune_loss": { + "depth": { + "type": "integer", + "title": "Depth" + }, + "loss": { "type": "string", "enum": [ "default", @@ -6259,62 +1552,76 @@ "mse", "rmse", "mape", - "smape" + "smape", + "poisson" ], - "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", - "default": "default" + "title": "Loss" + }, + "model": { + "type": "string", + "title": "Model" + }, + "freq": { + "type": "string", + "title": "Freq" + } + }, + "type": "object", + "required": [ + "id", + "created_at", + "base_model_id", + "steps", + "depth", + "loss", + "model", + "freq" + ], + "title": "FinetunedModel" + }, + "FinetunedModelsOutput": { + "properties": { + "finetuned_models": { + "items": { + "$ref": "#/components/schemas/FinetunedModel" + }, + "type": "array", + "title": "Finetuned Models" } }, "type": "object", - "title": "MultiSeriesCrossValidation" + "required": [ + "finetuned_models" + ], + "title": "FinetunedModelsOutput" }, - "MultiSeriesForecast": { + "ForecastInput": { "properties": { - "fewshot_steps": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Fewshot Steps", - "description": "Deprecated. Please use finetune_steps instead.", - "deprecated": true + "series": { + "$ref": "#/components/schemas/SeriesWithFutureExogenous" }, - "fewshot_loss": { - "anyOf": [ - { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape" - ] - }, - { - "type": "null" - } - ], - "title": "Fewshot Loss", - "description": "Deprecated. Please use finetune_loss instead.", - "deprecated": true + "freq": { + "type": "string", + "title": "Freq", + "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available." + }, + "h": { + "type": "integer", + "exclusiveMinimum": 0.0, + "title": "H", + "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict." }, "model": { + "type": "string", "title": "Model", "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", "default": "timegpt-1" }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.", - "default": "D" + "clean_ex_first": { + "type": "boolean", + "title": "Clean Ex First", + "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", + "default": true }, "level": { "anyOf": [ @@ -6322,14 +1629,19 @@ "items": { "anyOf": [ { - "type": "integer" + "type": "integer", + "exclusiveMaximum": 100.0, + "minimum": 0.0 }, { - "type": "number" + "type": "number", + "exclusiveMaximum": 100.0, + "minimum": 0.0 } ] }, - "type": "array" + "type": "array", + "minItems": 1 }, { "type": "null" @@ -6338,473 +1650,6 @@ "title": "Level", "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." }, - "fh": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "Fh", - "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.", - "default": 7 - }, - "y": { - "title": "Y", - "description": "The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"y\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.7], [\"ts_0\", \"2021-01-02\", 0.8]}.", - "default": { - "columns": [ - "unique_id", - "ds", - "y" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - } - }, - "x": { - "anyOf": [ - { - "$ref": "#/components/schemas/MultiSeriesInput" - }, - { - "type": "null" - } - ], - "description": "The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"ex_1\", \"ex_2\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.2, 0.67], [\"ts_0\", \"2021-01-02\", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values." - }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true - }, "finetune_steps": { "type": "integer", "minimum": 0.0, @@ -6820,63 +1665,119 @@ "mse", "rmse", "mape", - "smape" + "smape", + "poisson" ], "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", + "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", "default": "default" - } - }, - "type": "object", - "title": "MultiSeriesForecast" - }, - "MultiSeriesInput": { - "properties": { - "columns": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Columns" }, - "data": { - "items": {}, - "type": "array", - "title": "Data" + "finetune_depth": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "title": "Finetune Depth", + "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.", + "default": 1 + }, + "finetuned_model_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" + }, + { + "type": "null" + } + ], + "title": "Finetuned Model Id", + "description": "ID of previously finetuned model" + }, + "feature_contributions": { + "type": "boolean", + "title": "Feature Contributions", + "description": "Compute the exogenous features contributions to the forecast.", + "default": false + }, + "multivariate": { + "type": "boolean", + "title": "Multivariate", + "description": "Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.", + "default": false + }, + "model_parameters": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Model Parameters", + "description": "Optional dictionary of parameters to customize the behavior of the large time model. " } }, "type": "object", "required": [ - "columns", - "data" + "series", + "freq", + "h" ], - "title": "MultiSeriesInput" + "title": "ForecastInput" }, - "MultiSeriesInsampleForecast": { + "ForecastOutput": { "properties": { - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" + "input_tokens": { + "type": "integer", + "minimum": 0.0, + "title": "Input Tokens" }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.", - "default": "D" + "output_tokens": { + "type": "integer", + "minimum": 0.0, + "title": "Output Tokens" }, - "level": { + "finetune_tokens": { + "type": "integer", + "minimum": 0.0, + "title": "Finetune Tokens" + }, + "mean": { + "items": { + "type": "number" + }, + "type": "array", + "title": "Mean" + }, + "intervals": { + "anyOf": [ + { + "additionalProperties": { + "items": { + "type": "number" + }, + "type": "array" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Intervals" + }, + "weights_x": { "anyOf": [ { "items": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "number" - } - ] + "type": "number" }, "type": "array" }, @@ -6884,477 +1785,52 @@ "type": "null" } ], - "title": "Level", - "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." - }, - "y": { - "title": "Y", - "description": "The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"y\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.7], [\"ts_0\", \"2021-01-02\", 0.8]}.", - "default": { - "columns": [ - "unique_id", - "ds", - "y" - ], - "data": [ - [ - "PeytonManning", - "2015-12-02", - 4.390508031418598 - ], - [ - "PeytonManning", - "2015-12-03", - 5.721514930979356 - ], - [ - "PeytonManning", - "2015-12-04", - 4.822107008573151 - ], - [ - "PeytonManning", - "2015-12-05", - 4.359065463975175 - ], - [ - "PeytonManning", - "2015-12-06", - 3.3892383947112377 - ], - [ - "PeytonManning", - "2015-12-07", - 5.167152904533249 - ], - [ - "PeytonManning", - "2015-12-08", - 3.50069769010154 - ], - [ - "PeytonManning", - "2015-12-09", - 7.134184006256638 - ], - [ - "PeytonManning", - "2015-12-10", - 7.709302084008234 - ], - [ - "PeytonManning", - "2015-12-11", - 3.0675321506062216 - ], - [ - "PeytonManning", - "2015-12-12", - 6.333800304661317 - ], - [ - "PeytonManning", - "2015-12-13", - 4.231159358023236 - ], - [ - "PeytonManning", - "2015-12-14", - 4.5443564887514585 - ], - [ - "PeytonManning", - "2015-12-15", - 7.404773106341288 - ], - [ - "PeytonManning", - "2015-12-16", - 0.5682884655830955 - ], - [ - "PeytonManning", - "2015-12-17", - 0.6970343976123257 - ], - [ - "PeytonManning", - "2015-12-18", - 0.16174717952260576 - ], - [ - "PeytonManning", - "2015-12-19", - 6.660958764383504 - ], - [ - "PeytonManning", - "2015-12-20", - 6.225254007598804 - ], - [ - "PeytonManning", - "2015-12-21", - 6.960097185974553 - ], - [ - "PeytonManning", - "2015-12-22", - 7.828946737862112 - ], - [ - "PeytonManning", - "2015-12-23", - 6.393268513733789 - ], - [ - "PeytonManning", - "2015-12-24", - 3.6918348980234548 - ], - [ - "PeytonManning", - "2015-12-25", - 6.244233410291644 - ], - [ - "PeytonManning", - "2015-12-26", - 0.9461954069514658 - ], - [ - "PeytonManning", - "2015-12-27", - 5.119368170620191 - ], - [ - "PeytonManning", - "2015-12-28", - 1.1468262992723712 - ], - [ - "PeytonManning", - "2015-12-29", - 7.557351336396671 - ], - [ - "PeytonManning", - "2015-12-30", - 4.174786574000573 - ], - [ - "PeytonManning", - "2015-12-31", - 3.3172955199241887 - ], - [ - "PeytonManning", - "2016-01-01", - 2.1164448968370158 - ], - [ - "PeytonManning", - "2016-01-02", - 6.193869515473733 - ], - [ - "PeytonManning", - "2016-01-03", - 3.6492026577323884 - ], - [ - "PeytonManning", - "2016-01-04", - 4.547471590949188 - ], - [ - "PeytonManning", - "2016-01-05", - 0.15031840349084113 - ], - [ - "PeytonManning", - "2016-01-06", - 4.9410839766070165 - ], - [ - "PeytonManning", - "2016-01-07", - 4.896765781779371 - ], - [ - "PeytonManning", - "2016-01-08", - 4.935471974998055 - ], - [ - "PeytonManning", - "2016-01-09", - 7.549984628116993 - ], - [ - "PeytonManning", - "2016-01-10", - 5.454562392827867 - ], - [ - "PeytonManning", - "2016-01-11", - 2.876063204590288 - ], - [ - "PeytonManning", - "2016-01-12", - 3.4962556303947316 - ], - [ - "PeytonManning", - "2016-01-13", - 5.581049567418119 - ], - [ - "TomBrady", - "2015-12-02", - 4.390508031418598 - ], - [ - "TomBrady", - "2015-12-03", - 5.721514930979356 - ], - [ - "TomBrady", - "2015-12-04", - 4.822107008573151 - ], - [ - "TomBrady", - "2015-12-05", - 4.359065463975175 - ], - [ - "TomBrady", - "2015-12-06", - 3.3892383947112377 - ], - [ - "TomBrady", - "2015-12-07", - 5.167152904533249 - ], - [ - "TomBrady", - "2015-12-08", - 3.50069769010154 - ], - [ - "TomBrady", - "2015-12-09", - 7.134184006256638 - ], - [ - "TomBrady", - "2015-12-10", - 7.709302084008234 - ], - [ - "TomBrady", - "2015-12-11", - 3.0675321506062216 - ], - [ - "TomBrady", - "2015-12-12", - 6.333800304661317 - ], - [ - "TomBrady", - "2015-12-13", - 4.231159358023236 - ], - [ - "TomBrady", - "2015-12-14", - 4.5443564887514585 - ], - [ - "TomBrady", - "2015-12-15", - 7.404773106341288 - ], - [ - "TomBrady", - "2015-12-16", - 0.5682884655830955 - ], - [ - "TomBrady", - "2015-12-17", - 0.6970343976123257 - ], - [ - "TomBrady", - "2015-12-18", - 0.16174717952260576 - ], - [ - "TomBrady", - "2015-12-19", - 6.660958764383504 - ], - [ - "TomBrady", - "2015-12-20", - 6.225254007598804 - ], - [ - "TomBrady", - "2015-12-21", - 6.960097185974553 - ], - [ - "TomBrady", - "2015-12-22", - 7.828946737862112 - ], - [ - "TomBrady", - "2015-12-23", - 6.393268513733789 - ], - [ - "TomBrady", - "2015-12-24", - 3.6918348980234548 - ], - [ - "TomBrady", - "2015-12-25", - 6.244233410291644 - ], - [ - "TomBrady", - "2015-12-26", - 0.9461954069514658 - ], - [ - "TomBrady", - "2015-12-27", - 5.119368170620191 - ], - [ - "TomBrady", - "2015-12-28", - 1.1468262992723712 - ], - [ - "TomBrady", - "2015-12-29", - 7.557351336396671 - ], - [ - "TomBrady", - "2015-12-30", - 4.174786574000573 - ], - [ - "TomBrady", - "2015-12-31", - 3.3172955199241887 - ], - [ - "TomBrady", - "2016-01-01", - 2.1164448968370158 - ], - [ - "TomBrady", - "2016-01-02", - 6.193869515473733 - ], - [ - "TomBrady", - "2016-01-03", - 3.6492026577323884 - ], - [ - "TomBrady", - "2016-01-04", - 4.547471590949188 - ], - [ - "TomBrady", - "2016-01-05", - 0.15031840349084113 - ], - [ - "TomBrady", - "2016-01-06", - 4.9410839766070165 - ], - [ - "TomBrady", - "2016-01-07", - 4.896765781779371 - ], - [ - "TomBrady", - "2016-01-08", - 4.935471974998055 - ], - [ - "TomBrady", - "2016-01-09", - 7.549984628116993 - ], - [ - "TomBrady", - "2016-01-10", - 5.454562392827867 - ], - [ - "TomBrady", - "2016-01-11", - 2.876063204590288 - ], - [ - "TomBrady", - "2016-01-12", - 3.4962556303947316 - ], - [ - "TomBrady", - "2016-01-13", - 5.581049567418119 - ] - ] - } + "title": "Weights X" }, - "x": { + "feature_contributions": { "anyOf": [ { - "$ref": "#/components/schemas/MultiSeriesInput" + "items": { + "items": { + "type": "number" + }, + "type": "array" + }, + "type": "array" }, { "type": "null" } ], - "description": "The exogenous variables provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"ex_1\", \"ex_2\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.2, 0.67], [\"ts_0\", \"2021-01-02\", 0.4, 0.7]}. This should also include forecasting horizon (fh) additional timestamps for each unique_id to calculate the future values." - }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true + "title": "Feature Contributions" + } + }, + "type": "object", + "required": [ + "input_tokens", + "output_tokens", + "finetune_tokens", + "mean" + ], + "title": "ForecastOutput" + }, + "HTTPValidationError": { + "properties": { + "detail": { + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "type": "array", + "title": "Detail" } }, "type": "object", - "title": "MultiSeriesInsampleForecast" + "title": "HTTPValidationError" }, "OnlineAnomalyInput": { "properties": { "series": { - "$ref": "#/components/schemas/SeriesWithExogenous" + "$ref": "#/components/schemas/SeriesWithFutureExogenous" }, "freq": { "type": "string", @@ -7384,6 +1860,7 @@ "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict." }, "model": { + "type": "string", "title": "Model", "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", "default": "timegpt-1" @@ -7430,7 +1907,7 @@ "poisson" ], "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", + "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape', 'poisson']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", "default": "default" }, "finetune_depth": { @@ -7443,34 +1920,81 @@ 5 ], "title": "Finetune Depth", - "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. By default, the value is set to 1.", + "description": "The depth of the finetuning. Uses a scale from 1 to 5, where 1 means little finetuning, and 5 means that the entire model is finetuned. Note that this parameter is only effective for timegpt-1 and timegpt-1-long-horizon models, meanwhile it has no effect on the other models. By default, the value is set to 1.", "default": 1 }, - "finetuned_model_id": { + "finetuned_model_id": { + "anyOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" + }, + { + "type": "null" + } + ], + "title": "Finetuned Model Id", + "description": "ID of previously finetuned model" + }, + "step_size": { + "anyOf": [ + { + "type": "integer", + "exclusiveMinimum": 0.0 + }, + { + "type": "null" + } + ], + "title": "Step Size", + "description": "Step size between each cross validation window. If None it will be equal to the forecasting horizon." + }, + "hist_exog": { "anyOf": [ { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-_]{1,36}$" + "items": { + "type": "integer", + "minimum": 0.0 + }, + "type": "array" }, { "type": "null" } ], - "title": "Finetuned Model Id", - "description": "ID of previously finetuned model" + "title": "Hist Exog", + "description": "Zero-based indices of the exogenous features to treat as historical." }, - "step_size": { + "refit": { + "type": "boolean", + "title": "Refit", + "description": "Fine-tune the model in each window. If `False`, only fine-tunes on the first window. Only used if `finetune_steps` > 0.", + "default": true + }, + "multivariate": { + "type": "boolean", + "title": "Multivariate", + "description": "Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.", + "default": false + }, + "model_parameters": { "anyOf": [ { - "type": "integer", - "exclusiveMinimum": 0.0 + "additionalProperties": true, + "type": "object" }, { "type": "null" } ], - "title": "Step Size", - "description": "Step size between each cross validation window. If None it will be equal to the forecasting horizon." + "title": "Model Parameters", + "description": "Optional dictionary of parameters to customize the behavior of the large time model. " + }, + "feature_contributions": { + "type": "boolean", + "title": "Feature Contributions", + "description": "Compute the exogenous features contributions to the forecast.", + "default": false } }, "type": "object", @@ -7579,40 +2103,21 @@ ], "title": "OnlineAnomalyOutput" }, - "Series": { - "properties": { - "y": { - "items": { - "type": "number" - }, - "type": "array", - "title": "Y", - "description": "Historic values of the target." - }, - "sizes": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "Sizes", - "description": "Sizes of the individual series." - } - }, - "type": "object", - "required": [ - "y", - "sizes" - ], - "title": "Series" - }, - "SeriesWithExogenous": { + "SeriesWithFutureExogenous": { "properties": { - "X": { + "X_future": { "anyOf": [ { "items": { "items": { - "type": "number" + "anyOf": [ + { + "type": "number" + }, + { + "type": "string" + } + ] }, "type": "array" }, @@ -7622,41 +2127,22 @@ "type": "null" } ], - "title": "X", - "description": "Historic values of the exogenous features. Each feature must be a list of the same size as the target (y)." - }, - "y": { - "items": { - "type": "number" - }, - "type": "array", - "title": "Y", - "description": "Historic values of the target." + "title": "X Future", + "description": "Future values of the exogenous features. Each feature must be a list of size number of series times the forecast horizon (h)." }, - "sizes": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "Sizes", - "description": "Sizes of the individual series." - } - }, - "type": "object", - "required": [ - "y", - "sizes" - ], - "title": "SeriesWithExogenous" - }, - "SeriesWithFutureExogenous": { - "properties": { - "X_future": { + "X": { "anyOf": [ { "items": { "items": { - "type": "number" + "anyOf": [ + { + "type": "number" + }, + { + "type": "string" + } + ] }, "type": "array" }, @@ -7666,17 +2152,15 @@ "type": "null" } ], - "title": "X Future", - "description": "Future values of the exogenous features. Each feature must be a list of size number of series times the forecast horizon (h)." + "title": "X", + "description": "Historic values of the exogenous features. Each feature must be a list of the same size as the target (y)." }, - "X": { + "categorical_exog": { "anyOf": [ { "items": { - "items": { - "type": "number" - }, - "type": "array" + "type": "integer", + "minimum": 0.0 }, "type": "array" }, @@ -7684,8 +2168,8 @@ "type": "null" } ], - "title": "X", - "description": "Historic values of the exogenous features. Each feature must be a list of the same size as the target (y)." + "title": "Categorical Exog", + "description": "Zero-based indices of the columns in X that are categorical features." }, "y": { "items": { @@ -7711,278 +2195,6 @@ ], "title": "SeriesWithFutureExogenous" }, - "SingleSeriesForecast": { - "properties": { - "fewshot_steps": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Fewshot Steps", - "description": "Deprecated. Please use finetune_steps instead.", - "deprecated": true - }, - "fewshot_loss": { - "anyOf": [ - { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape" - ] - }, - { - "type": "null" - } - ], - "title": "Fewshot Loss", - "description": "Deprecated. Please use finetune_loss instead.", - "deprecated": true - }, - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" - }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.", - "default": "D" - }, - "level": { - "anyOf": [ - { - "items": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "number" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Level", - "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." - }, - "fh": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "Fh", - "description": "The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.", - "default": 7 - }, - "y": { - "title": "Y", - "description": "The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {\"2021-01-01\": 0.1, \"2021-01-02\": 0.4}.", - "default": { - "2015-12-02": 4.390508031418598, - "2015-12-03": 5.721514930979356, - "2015-12-04": 4.822107008573151, - "2015-12-05": 4.359065463975175, - "2015-12-06": 3.3892383947112377, - "2015-12-07": 5.167152904533249, - "2015-12-08": 3.50069769010154, - "2015-12-09": 7.134184006256638, - "2015-12-10": 7.709302084008234, - "2015-12-11": 3.0675321506062216, - "2015-12-12": 6.333800304661317, - "2015-12-13": 4.231159358023236, - "2015-12-14": 4.5443564887514585, - "2015-12-15": 7.404773106341288, - "2015-12-16": 0.5682884655830955, - "2015-12-17": 0.6970343976123257, - "2015-12-18": 0.16174717952260576, - "2015-12-19": 6.660958764383504, - "2015-12-20": 6.225254007598804, - "2015-12-21": 6.960097185974553, - "2015-12-22": 7.828946737862112, - "2015-12-23": 6.393268513733789, - "2015-12-24": 3.6918348980234548, - "2015-12-25": 6.244233410291644, - "2015-12-26": 0.9461954069514658, - "2015-12-27": 5.119368170620191, - "2015-12-28": 1.1468262992723712, - "2015-12-29": 7.557351336396671, - "2015-12-30": 4.174786574000573, - "2015-12-31": 3.3172955199241887, - "2016-01-01": 2.1164448968370158, - "2016-01-02": 6.193869515473733, - "2016-01-03": 3.6492026577323884, - "2016-01-04": 4.547471590949188, - "2016-01-05": 0.15031840349084113, - "2016-01-06": 4.9410839766070165, - "2016-01-07": 4.896765781779371, - "2016-01-08": 4.935471974998055, - "2016-01-09": 7.549984628116993, - "2016-01-10": 5.454562392827867, - "2016-01-11": 2.876063204590288, - "2016-01-12": 3.4962556303947316, - "2016-01-13": 5.581049567418119 - } - }, - "x": { - "anyOf": [ - { - "additionalProperties": { - "items": { - "type": "number" - }, - "type": "array" - }, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "X", - "description": "The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {\"2021-01-01\": [0.1], \"2021-01-02\": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values." - }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true - }, - "finetune_steps": { - "type": "integer", - "minimum": 0.0, - "title": "Finetune Steps", - "description": "The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.", - "default": 0 - }, - "finetune_loss": { - "type": "string", - "enum": [ - "default", - "mae", - "mse", - "rmse", - "mape", - "smape" - ], - "title": "Finetune Loss", - "description": "The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.", - "default": "default" - } - }, - "type": "object", - "title": "SingleSeriesForecast" - }, - "SingleSeriesInsampleForecast": { - "properties": { - "model": { - "title": "Model", - "description": "Model to use as a string. Common options are (but not restricted to) `timegpt-1` and `timegpt-1-long-horizon.` Full options vary by different users. Contact support@nixtla.io for more information. We recommend using `timegpt-1-long-horizon` for forecasting if you want to predict more than one seasonal period given the frequency of your data.", - "default": "timegpt-1" - }, - "freq": { - "type": "string", - "title": "Freq", - "description": "The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.", - "default": "D" - }, - "level": { - "anyOf": [ - { - "items": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "number" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Level", - "description": "A list of values representing the prediction intervals. Each value is a percentage that indicates the level of certainty for the corresponding prediction interval. For example, [80, 90] defines 80% and 90% prediction intervals." - }, - "y": { - "title": "Y", - "description": "The historical time series data provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is the observation at that time point. For example: {\"2021-01-01\": 0.1, \"2021-01-02\": 0.4}.", - "default": { - "2015-12-02": 4.390508031418598, - "2015-12-03": 5.721514930979356, - "2015-12-04": 4.822107008573151, - "2015-12-05": 4.359065463975175, - "2015-12-06": 3.3892383947112377, - "2015-12-07": 5.167152904533249, - "2015-12-08": 3.50069769010154, - "2015-12-09": 7.134184006256638, - "2015-12-10": 7.709302084008234, - "2015-12-11": 3.0675321506062216, - "2015-12-12": 6.333800304661317, - "2015-12-13": 4.231159358023236, - "2015-12-14": 4.5443564887514585, - "2015-12-15": 7.404773106341288, - "2015-12-16": 0.5682884655830955, - "2015-12-17": 0.6970343976123257, - "2015-12-18": 0.16174717952260576, - "2015-12-19": 6.660958764383504, - "2015-12-20": 6.225254007598804, - "2015-12-21": 6.960097185974553, - "2015-12-22": 7.828946737862112, - "2015-12-23": 6.393268513733789, - "2015-12-24": 3.6918348980234548, - "2015-12-25": 6.244233410291644, - "2015-12-26": 0.9461954069514658, - "2015-12-27": 5.119368170620191, - "2015-12-28": 1.1468262992723712, - "2015-12-29": 7.557351336396671, - "2015-12-30": 4.174786574000573, - "2015-12-31": 3.3172955199241887, - "2016-01-01": 2.1164448968370158, - "2016-01-02": 6.193869515473733, - "2016-01-03": 3.6492026577323884, - "2016-01-04": 4.547471590949188, - "2016-01-05": 0.15031840349084113, - "2016-01-06": 4.9410839766070165, - "2016-01-07": 4.896765781779371, - "2016-01-08": 4.935471974998055, - "2016-01-09": 7.549984628116993, - "2016-01-10": 5.454562392827867, - "2016-01-11": 2.876063204590288, - "2016-01-12": 3.4962556303947316, - "2016-01-13": 5.581049567418119 - } - }, - "x": { - "title": "X", - "description": "The exogenous variables provided as a dictionary. Each key is a timestamp (string format: YYYY-MM-DD) and the corresponding value is a list of exogenous variable values at that time point. For example: {\"2021-01-01\": [0.1], \"2021-01-02\": [0.4]}. This should also include forecasting horizon (fh) additional timestamps to calculate the future values." - }, - "clean_ex_first": { - "type": "boolean", - "title": "Clean Ex First", - "description": "A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.", - "default": true - } - }, - "type": "object", - "title": "SingleSeriesInsampleForecast" - }, "ValidationError": { "properties": { "loc": { @@ -8006,6 +2218,13 @@ "type": { "type": "string", "title": "Error Type" + }, + "input": { + "title": "Input" + }, + "ctx": { + "type": "object", + "title": "Context" } }, "type": "object",