From b5290a7b3163752a91706e26af42853dfb8943d4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 29 Nov 2024 09:18:32 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Instill.ArtifactClient.ListChunks.g.cs | 15 +- .../Instill.ArtifactClient.SearchChunks.g.cs | 219 ++++++++++++++++++ ...till.ArtifactClient.SearchSourceFiles.g.cs | 219 ++++++++++++++++++ .../Instill.IArtifactClient.ListChunks.g.cs | 2 - .../Instill.IArtifactClient.SearchChunks.g.cs | 21 ++ ...ill.IArtifactClient.SearchSourceFiles.g.cs | 21 ++ ...till.Models.SearchChunksResponse.Json.g.cs | 92 ++++++++ .../Instill.Models.SearchChunksResponse.g.cs | 41 ++++ ...ill.Models.SearchChunksResponse2.Json.g.cs | 92 ++++++++ .../Instill.Models.SearchChunksResponse2.g.cs | 27 +++ ...Models.SearchSourceFilesResponse.Json.g.cs | 92 ++++++++ ...till.Models.SearchSourceFilesResponse.g.cs | 41 ++++ ...odels.SearchSourceFilesResponse2.Json.g.cs | 92 ++++++++ ...ill.Models.SearchSourceFilesResponse2.g.cs | 27 +++ .../Generated/Instill.Models.SourceFile.g.cs | 11 +- .../Generated/JsonSerializerContextTypes.g.cs | 192 ++++++++------- src/libs/Instill/openapi.yaml | 99 +++++++- 17 files changed, 1197 insertions(+), 106 deletions(-) create mode 100644 src/libs/Instill/Generated/Instill.ArtifactClient.SearchChunks.g.cs create mode 100644 src/libs/Instill/Generated/Instill.ArtifactClient.SearchSourceFiles.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IArtifactClient.SearchChunks.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IArtifactClient.SearchSourceFiles.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.g.cs diff --git a/src/libs/Instill/Generated/Instill.ArtifactClient.ListChunks.g.cs b/src/libs/Instill/Generated/Instill.ArtifactClient.ListChunks.g.cs index a05704f..1d7f7a6 100644 --- a/src/libs/Instill/Generated/Instill.ArtifactClient.ListChunks.g.cs +++ b/src/libs/Instill/Generated/Instill.ArtifactClient.ListChunks.g.cs @@ -9,15 +9,13 @@ partial void PrepareListChunksArguments( global::System.Net.Http.HttpClient httpClient, ref string namespaceId, ref string catalogId, - ref string? fileUid, - global::System.Collections.Generic.IList? chunkUids); + ref string? fileUid); partial void PrepareListChunksRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string namespaceId, string catalogId, - string? fileUid, - global::System.Collections.Generic.IList? chunkUids); + string? fileUid); partial void ProcessListChunksResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -34,7 +32,6 @@ partial void ProcessListChunksResponseContent( /// /// /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] @@ -42,7 +39,6 @@ partial void ProcessListChunksResponseContent( string namespaceId, string catalogId, string? fileUid = default, - global::System.Collections.Generic.IList? chunkUids = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -51,15 +47,13 @@ partial void ProcessListChunksResponseContent( httpClient: HttpClient, namespaceId: ref namespaceId, catalogId: ref catalogId, - fileUid: ref fileUid, - chunkUids: chunkUids); + fileUid: ref fileUid); var __pathBuilder = new PathBuilder( path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("fileUid", fileUid) - .AddOptionalParameter("chunkUids", chunkUids, delimiter: ",", explode: true) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -94,8 +88,7 @@ partial void ProcessListChunksResponseContent( httpRequestMessage: __httpRequest, namespaceId: namespaceId, catalogId: catalogId, - fileUid: fileUid, - chunkUids: chunkUids); + fileUid: fileUid); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Instill/Generated/Instill.ArtifactClient.SearchChunks.g.cs b/src/libs/Instill/Generated/Instill.ArtifactClient.SearchChunks.g.cs new file mode 100644 index 0000000..144913d --- /dev/null +++ b/src/libs/Instill/Generated/Instill.ArtifactClient.SearchChunks.g.cs @@ -0,0 +1,219 @@ + +#nullable enable + +namespace Instill +{ + public partial class ArtifactClient + { + partial void PrepareSearchChunksArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + global::System.Collections.Generic.IList? chunkUids); + partial void PrepareSearchChunksRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + global::System.Collections.Generic.IList? chunkUids); + partial void ProcessSearchChunksResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSearchChunksResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Search catalog chunks
+ /// Returns a paginated list of catalog chunks based on search criteria. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] + public async global::System.Threading.Tasks.Task SearchChunksAsync( + string namespaceId, + global::System.Collections.Generic.IList? chunkUids = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareSearchChunksArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + chunkUids: chunkUids); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/chunks", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("chunkUids", chunkUids, delimiter: ",", explode: true) + ; + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSearchChunksRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + chunkUids: chunkUids); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSearchChunksResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Returned when the client credentials are not valid. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + string? __value_401 = null; + if (ReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string; + } + else + { + var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string; + } + + throw new global::Instill.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // An unexpected error response. + if (!__response.IsSuccessStatusCode) + { + string? __content_default = null; + global::Instill.RpcStatus? __value_default = null; + if (ReadResponseAsString) + { + __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext); + } + else + { + var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::Instill.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_default, + ResponseObject = __value_default, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessSearchChunksResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::Instill.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::Instill.SearchChunksResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::Instill.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::Instill.SearchChunksResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.ArtifactClient.SearchSourceFiles.g.cs b/src/libs/Instill/Generated/Instill.ArtifactClient.SearchSourceFiles.g.cs new file mode 100644 index 0000000..fa2a34f --- /dev/null +++ b/src/libs/Instill/Generated/Instill.ArtifactClient.SearchSourceFiles.g.cs @@ -0,0 +1,219 @@ + +#nullable enable + +namespace Instill +{ + public partial class ArtifactClient + { + partial void PrepareSearchSourceFilesArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + global::System.Collections.Generic.IList? fileUids); + partial void PrepareSearchSourceFilesRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + global::System.Collections.Generic.IList? fileUids); + partial void ProcessSearchSourceFilesResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSearchSourceFilesResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Search single-source-of-truth files
+ /// Searches the single-source-of-truth files of a catalog. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] + public async global::System.Threading.Tasks.Task SearchSourceFilesAsync( + string namespaceId, + global::System.Collections.Generic.IList? fileUids = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareSearchSourceFilesArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + fileUids: fileUids); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/source-files", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("fileUids", fileUids, delimiter: ",", explode: true) + ; + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSearchSourceFilesRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + fileUids: fileUids); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSearchSourceFilesResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Returned when the client credentials are not valid. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + string? __value_401 = null; + if (ReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string; + } + else + { + var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string; + } + + throw new global::Instill.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // An unexpected error response. + if (!__response.IsSuccessStatusCode) + { + string? __content_default = null; + global::Instill.RpcStatus? __value_default = null; + if (ReadResponseAsString) + { + __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext); + } + else + { + var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::Instill.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_default, + ResponseObject = __value_default, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessSearchSourceFilesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::Instill.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::Instill.SearchSourceFilesResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::Instill.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::Instill.SearchSourceFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IArtifactClient.ListChunks.g.cs b/src/libs/Instill/Generated/Instill.IArtifactClient.ListChunks.g.cs index 826a499..4609194 100644 --- a/src/libs/Instill/Generated/Instill.IArtifactClient.ListChunks.g.cs +++ b/src/libs/Instill/Generated/Instill.IArtifactClient.ListChunks.g.cs @@ -11,7 +11,6 @@ public partial interface IArtifactClient /// /// /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] @@ -19,7 +18,6 @@ public partial interface IArtifactClient string namespaceId, string catalogId, string? fileUid = default, - global::System.Collections.Generic.IList? chunkUids = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IArtifactClient.SearchChunks.g.cs b/src/libs/Instill/Generated/Instill.IArtifactClient.SearchChunks.g.cs new file mode 100644 index 0000000..9514d4f --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IArtifactClient.SearchChunks.g.cs @@ -0,0 +1,21 @@ +#nullable enable + +namespace Instill +{ + public partial interface IArtifactClient + { + /// + /// Search catalog chunks
+ /// Returns a paginated list of catalog chunks based on search criteria. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] + global::System.Threading.Tasks.Task SearchChunksAsync( + string namespaceId, + global::System.Collections.Generic.IList? chunkUids = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IArtifactClient.SearchSourceFiles.g.cs b/src/libs/Instill/Generated/Instill.IArtifactClient.SearchSourceFiles.g.cs new file mode 100644 index 0000000..96f3ee1 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IArtifactClient.SearchSourceFiles.g.cs @@ -0,0 +1,21 @@ +#nullable enable + +namespace Instill +{ + public partial interface IArtifactClient + { + /// + /// Search single-source-of-truth files
+ /// Searches the single-source-of-truth files of a catalog. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] + global::System.Threading.Tasks.Task SearchSourceFilesAsync( + string namespaceId, + global::System.Collections.Generic.IList? fileUids = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.Json.g.cs new file mode 100644 index 0000000..2d94fc8 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class SearchChunksResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Instill.SearchChunksResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.SearchChunksResponse), + jsonSerializerContext) as global::Instill.SearchChunksResponse; + } + + /// + /// 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::Instill.SearchChunksResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Instill.SearchChunksResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.SearchChunksResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.g.cs new file mode 100644 index 0000000..90bd538 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.g.cs @@ -0,0 +1,41 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class SearchChunksResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chunks")] + public global::System.Collections.Generic.IList? Chunks { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SearchChunksResponse( + global::System.Collections.Generic.IList? chunks) + { + this.Chunks = chunks; + } + + /// + /// Initializes a new instance of the class. + /// + public SearchChunksResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.Json.g.cs new file mode 100644 index 0000000..25ceacb --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class SearchChunksResponse2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Instill.SearchChunksResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.SearchChunksResponse2), + jsonSerializerContext) as global::Instill.SearchChunksResponse2; + } + + /// + /// 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::Instill.SearchChunksResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Instill.SearchChunksResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.SearchChunksResponse2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.g.cs new file mode 100644 index 0000000..b4a4e99 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class SearchChunksResponse2 + { + + /// + /// 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SearchChunksResponse2( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.Json.g.cs new file mode 100644 index 0000000..5879b47 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class SearchSourceFilesResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Instill.SearchSourceFilesResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.SearchSourceFilesResponse), + jsonSerializerContext) as global::Instill.SearchSourceFilesResponse; + } + + /// + /// 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::Instill.SearchSourceFilesResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Instill.SearchSourceFilesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.SearchSourceFilesResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.g.cs new file mode 100644 index 0000000..93eff2b --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.g.cs @@ -0,0 +1,41 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class SearchSourceFilesResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sourceFiles")] + public global::System.Collections.Generic.IList? SourceFiles { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SearchSourceFilesResponse( + global::System.Collections.Generic.IList? sourceFiles) + { + this.SourceFiles = sourceFiles; + } + + /// + /// Initializes a new instance of the class. + /// + public SearchSourceFilesResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.Json.g.cs new file mode 100644 index 0000000..b06e607 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class SearchSourceFilesResponse2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Instill.SearchSourceFilesResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.SearchSourceFilesResponse2), + jsonSerializerContext) as global::Instill.SearchSourceFilesResponse2; + } + + /// + /// 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::Instill.SearchSourceFilesResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Instill.SearchSourceFilesResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.SearchSourceFilesResponse2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.g.cs b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.g.cs new file mode 100644 index 0000000..3060d96 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class SearchSourceFilesResponse2 + { + + /// + /// 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SearchSourceFilesResponse2( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.SourceFile.g.cs b/src/libs/Instill/Generated/Instill.Models.SourceFile.g.cs index 68f9068..94caf0f 100644 --- a/src/libs/Instill/Generated/Instill.Models.SourceFile.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.SourceFile.g.cs @@ -32,6 +32,12 @@ public sealed partial class SourceFile [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] public global::System.DateTime? UpdateTime { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("originalFileName")] + public string? OriginalFileName { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,17 +51,20 @@ public sealed partial class SourceFile /// /// /// + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public SourceFile( string? originalFileUid, string? content, global::System.DateTime? createTime, - global::System.DateTime? updateTime) + global::System.DateTime? updateTime, + string? originalFileName) { this.OriginalFileUid = originalFileUid; this.Content = content; this.CreateTime = createTime; this.UpdateTime = updateTime; + this.OriginalFileName = originalFileName; } /// diff --git a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs index 79c412a..8af07f4 100644 --- a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs @@ -1146,362 +1146,374 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Instill.SimilarityChunksSearchBody? Type282 { get; set; } + public global::Instill.SearchChunksResponse? Type282 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchResponse? Type283 { get; set; } + public global::Instill.SearchSourceFilesResponse? Type283 { get; set; } /// /// /// - public global::Instill.SubtractCreditAdminResponse? Type284 { get; set; } + public global::System.Collections.Generic.IList? Type284 { get; set; } /// /// /// - public global::Instill.Trace? Type285 { get; set; } + public global::Instill.SimilarityChunksSearchBody? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::Instill.SimilarityChunksSearchResponse? Type286 { get; set; } /// /// /// - public global::Instill.TraceStatus? Type287 { get; set; } + public global::Instill.SubtractCreditAdminResponse? Type287 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type288 { get; set; } + public global::Instill.Trace? Type288 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelBody? Type290 { get; set; } + public global::Instill.TraceStatus? Type290 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelResponse? Type291 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type291 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineBody? Type292 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type293 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelBody? Type293 { get; set; } /// /// /// - public global::Instill.TriggerData? Type294 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelResponse? Type294 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type295 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineBody? Type295 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineResponse? Type297 { get; set; } + public global::Instill.TriggerData? Type297 { get; set; } /// /// /// - public global::Instill.TriggerMetadata? Type298 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type299 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type299 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type300 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineResponse? Type300 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBody? Type301 { get; set; } + public global::Instill.TriggerMetadata? Type301 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelResponse? Type302 { get; set; } + public global::System.Collections.Generic.Dictionary? Type302 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type303 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type303 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBody? Type304 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBody? Type304 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelResponse? Type305 { get; set; } + public global::Instill.TriggerNamespaceLatestModelResponse? Type305 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineBody? Type306 { get; set; } + public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type306 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseBody? Type307 { get; set; } + public global::Instill.TriggerNamespaceModelBody? Type307 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseResponse? Type308 { get; set; } + public global::Instill.TriggerNamespaceModelResponse? Type308 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineResponse? Type309 { get; set; } + public global::Instill.TriggerNamespacePipelineBody? Type309 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamBody? Type310 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseBody? Type310 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type311 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseResponse? Type311 { get; set; } /// /// /// - public global::Instill.UpdateAgentBody? Type312 { get; set; } + public global::Instill.TriggerNamespacePipelineResponse? Type312 { get; set; } /// /// /// - public global::Instill.UpdateAgentResponse? Type313 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamBody? Type313 { get; set; } /// /// /// - public global::Instill.UpdateAppBody? Type314 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type314 { get; set; } /// /// /// - public global::Instill.UpdateAppResponse? Type315 { get; set; } + public global::Instill.UpdateAgentBody? Type315 { get; set; } /// /// /// - public global::Instill.UpdateCatalogBody? Type316 { get; set; } + public global::Instill.UpdateAgentResponse? Type316 { get; set; } /// /// /// - public global::Instill.UpdateCatalogResponse? Type317 { get; set; } + public global::Instill.UpdateAppBody? Type317 { get; set; } /// /// /// - public global::Instill.UpdateChatBody? Type318 { get; set; } + public global::Instill.UpdateAppResponse? Type318 { get; set; } /// /// /// - public global::Instill.UpdateChatResponse? Type319 { get; set; } + public global::Instill.UpdateCatalogBody? Type319 { get; set; } /// /// /// - public global::Instill.UpdateChunkBody? Type320 { get; set; } + public global::Instill.UpdateCatalogResponse? Type320 { get; set; } /// /// /// - public global::Instill.UpdateChunkResponse? Type321 { get; set; } + public global::Instill.UpdateChatBody? Type321 { get; set; } /// /// /// - public global::Instill.UpdateConversationBody? Type322 { get; set; } + public global::Instill.UpdateChatResponse? Type322 { get; set; } /// /// /// - public global::Instill.UpdateConversationResponse? Type323 { get; set; } + public global::Instill.UpdateChunkBody? Type323 { get; set; } /// /// /// - public global::Instill.UpdateMessageBody? Type324 { get; set; } + public global::Instill.UpdateChunkResponse? Type324 { get; set; } /// /// /// - public global::Instill.UpdateMessageResponse? Type325 { get; set; } + public global::Instill.UpdateConversationBody? Type325 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceConnectionResponse? Type326 { get; set; } + public global::Instill.UpdateConversationResponse? Type326 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceModelResponse? Type327 { get; set; } + public global::Instill.UpdateMessageBody? Type327 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineReleaseResponse? Type328 { get; set; } + public global::Instill.UpdateMessageResponse? Type328 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineResponse? Type329 { get; set; } + public global::Instill.UpdateNamespaceConnectionResponse? Type329 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceSecretResponse? Type330 { get; set; } + public global::Instill.UpdateNamespaceModelResponse? Type330 { get; set; } /// /// /// - public global::Instill.UpdateObjectResponse? Type331 { get; set; } + public global::Instill.UpdateNamespacePipelineReleaseResponse? Type331 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationMembershipResponse? Type332 { get; set; } + public global::Instill.UpdateNamespacePipelineResponse? Type332 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationResponse? Type333 { get; set; } + public global::Instill.UpdateNamespaceSecretResponse? Type333 { get; set; } /// /// /// - public global::Instill.UpdateUserMembershipResponse? Type334 { get; set; } + public global::Instill.UpdateObjectResponse? Type334 { get; set; } /// /// /// - public global::Instill.UploadCatalogFileResponse? Type335 { get; set; } + public global::Instill.UpdateOrganizationMembershipResponse? Type335 { get; set; } /// /// /// - public global::Instill.ValidateNamespacePipelineResponse? Type336 { get; set; } + public global::Instill.UpdateOrganizationResponse? Type336 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type337 { get; set; } + public global::Instill.UpdateUserMembershipResponse? Type337 { get; set; } /// /// /// - public global::Instill.ValidateTokenResponse? Type338 { get; set; } + public global::Instill.UploadCatalogFileResponse? Type338 { get; set; } /// /// /// - public global::Instill.WatchNamespaceLatestModelResponse? Type339 { get; set; } + public global::Instill.ValidateNamespacePipelineResponse? Type339 { get; set; } /// /// /// - public global::Instill.WatchNamespaceModelResponse? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::Instill.MgmtV1betaView? Type341 { get; set; } + public global::Instill.ValidateTokenResponse? Type341 { get; set; } /// /// /// - public global::Instill.View? Type342 { get; set; } + public global::Instill.WatchNamespaceLatestModelResponse? Type342 { get; set; } /// /// /// - public global::Instill.AppPublicServiceListAppsAppType? Type343 { get; set; } + public global::Instill.WatchNamespaceModelResponse? Type343 { get; set; } /// /// /// - public global::Instill.ListUsersView? Type344 { get; set; } + public global::Instill.MgmtV1betaView? Type344 { get; set; } /// /// /// - public global::Instill.GetUserView? Type345 { get; set; } + public global::Instill.View? Type345 { get; set; } /// /// /// - public global::Instill.ListOrganizationsView? Type346 { get; set; } + public global::Instill.AppPublicServiceListAppsAppType? Type346 { get; set; } /// /// /// - public global::Instill.GetOrganizationView? Type347 { get; set; } + public global::Instill.ListUsersView? Type347 { get; set; } /// /// /// - public global::Instill.GetUserMembershipView? Type348 { get; set; } + public global::Instill.GetUserView? Type348 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipView? Type349 { get; set; } + public global::Instill.ListOrganizationsView? Type349 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelDefinitionsView? Type350 { get; set; } + public global::Instill.GetOrganizationView? Type350 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelDefinitionView? Type351 { get; set; } + public global::Instill.GetUserMembershipView? Type351 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsView? Type352 { get; set; } + public global::Instill.GetOrganizationMembershipView? Type352 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsVisibility? Type353 { get; set; } + public global::Instill.ModelPublicServiceListModelDefinitionsView? Type353 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsView? Type354 { get; set; } + public global::Instill.ModelPublicServiceGetModelDefinitionView? Type354 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type355 { get; set; } + public global::Instill.ModelPublicServiceListModelsView? Type355 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelView? Type356 { get; set; } + public global::Instill.ModelPublicServiceListModelsVisibility? Type356 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type357 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsView? Type357 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type358 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type358 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelOperationView? Type359 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelView? Type359 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesView? Type360 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type360 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type361 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type361 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type362 { get; set; } + public global::Instill.ModelPublicServiceGetModelOperationView? Type362 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type363 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesView? Type363 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type364 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type364 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type365 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type365 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type366 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type366 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type367 { get; set; } + public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type367 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListComponentRunsView? Type368 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type368 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type369 { get; set; } + public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type369 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetIntegrationView? Type370 { get; set; } + public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type370 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type371 { get; set; } + public global::Instill.PipelinePublicServiceListComponentRunsView? Type371 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type372 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetIntegrationView? Type373 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type374 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml index f2509ec..1ebabce 100644 --- a/src/libs/Instill/openapi.yaml +++ b/src/libs/Instill/openapi.yaml @@ -1569,9 +1569,42 @@ paths: description: unique identifier of the file schema: type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/ListChunksResponse' + '401': + description: Returned when the client credentials are not valid. + content: + application/json: + schema: { } + default: + description: An unexpected error response. + content: + application/json: + schema: + $ref: '#/components/schemas/rpc.Status' + x-stage: beta + '/v1alpha/namespaces/{namespaceId}/chunks': + get: + tags: + - 💾 Artifact + summary: Search catalog chunks + description: Returns a paginated list of catalog chunks based on search criteria. + operationId: SearchChunks + parameters: + - name: namespaceId + in: path + description: owner/namespace id (not uid) + required: true + schema: + type: string - name: chunkUids in: query - description: repeated chunk uid(not implemented yet) + description: chunk uids style: form schema: type: array @@ -1583,7 +1616,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListChunksResponse' + $ref: '#/components/schemas/SearchChunksResponse' '401': description: Returned when the client credentials are not valid. content: @@ -1641,6 +1674,47 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: beta + '/v1alpha/namespaces/{namespaceId}/source-files': + get: + tags: + - 💾 Artifact + summary: Search single-source-of-truth files + description: Searches the single-source-of-truth files of a catalog. + operationId: SearchSourceFiles + parameters: + - name: namespaceId + in: path + description: owner/namespace id + required: true + schema: + type: string + - name: fileUids + in: query + description: search file uid + style: form + schema: + type: array + items: + type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/SearchSourceFilesResponse' + '401': + description: Returned when the client credentials are not valid. + content: + application/json: + schema: { } + default: + description: An unexpected error response. + content: + application/json: + schema: + $ref: '#/components/schemas/rpc.Status' + x-stage: beta '/v1alpha/chunks/{chunkUid}': post: tags: @@ -9900,6 +9974,24 @@ components: - RUN_STATUS_QUEUED type: string description: "RunStatus defines the status of a pipeline or model run.\n\n - RUN_STATUS_PROCESSING: Run in progress.\n - RUN_STATUS_COMPLETED: Run succeeded.\n - RUN_STATUS_FAILED: Run failed.\n - RUN_STATUS_QUEUED: Run is waiting to be executed." + SearchChunksResponse: + title: Search chunks response + type: object + properties: + chunks: + title: repeated chunks + type: array + items: + $ref: '#/components/schemas/.Chunk' + SearchSourceFilesResponse: + title: search source file response + type: object + properties: + sourceFiles: + title: source files + type: array + items: + $ref: '#/components/schemas/SourceFile' Secret: type: object properties: @@ -10030,6 +10122,9 @@ components: title: update time of the source file type: string format: date-time + originalFileName: + title: original file name + type: string description: The SourceFile message represents a source file in the artifact system. Spec: type: object