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.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