diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceChat.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceChat.g.cs index f89844a..84644e2 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceChat.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceChat.g.cs @@ -9,13 +9,13 @@ partial void PrepareAppPublicServiceChatArguments( global::System.Net.Http.HttpClient httpClient, ref string namespaceId, ref string appId, - global::Instill.ChatBody request); + global::Instill.AppPublicServiceChatBody request); partial void PrepareAppPublicServiceChatRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string namespaceId, string appId, - global::Instill.ChatBody request); + global::Instill.AppPublicServiceChatBody request); partial void ProcessAppPublicServiceChatResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -40,7 +40,7 @@ partial void ProcessAppPublicServiceChatResponseContent( public async global::System.Threading.Tasks.Task AppPublicServiceChatAsync( string namespaceId, string appId, - global::Instill.ChatBody request, + global::Instill.AppPublicServiceChatBody request, global::System.Threading.CancellationToken cancellationToken = default) { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); @@ -253,7 +253,7 @@ partial void ProcessAppPublicServiceChatResponseContent( string? userInstruction = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Instill.ChatBody + var __request = new global::Instill.AppPublicServiceChatBody { CatalogId = catalogId, ConversationUid = conversationUid, diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateChat.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateChat.g.cs new file mode 100644 index 0000000..19eed4c --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateChat.g.cs @@ -0,0 +1,248 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceCreateChatArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + global::Instill.CreateChatBody request); + partial void PrepareAppPublicServiceCreateChatRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + global::Instill.CreateChatBody request); + partial void ProcessAppPublicServiceCreateChatResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceCreateChatResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create a chat
+ /// Creates a chat. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceCreateChatAsync( + string namespaceId, + global::Instill.CreateChatBody request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceCreateChatArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/chats", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + 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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareAppPublicServiceCreateChatRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceCreateChatResponse( + 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); + ProcessAppPublicServiceCreateChatResponseContent( + 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.CreateChatResponse.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.CreateChatResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Create a chat
+ /// Creates a chat. + ///
+ /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceCreateChatAsync( + string namespaceId, + string? chatDisplayName = default, + global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Instill.CreateChatBody + { + ChatDisplayName = chatDisplayName, + AiAgentApp = aiAgentApp, + }; + + return await AppPublicServiceCreateChatAsync( + namespaceId: namespaceId, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateConversation.g.cs index 77965ec..1b00e65 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateConversation.g.cs @@ -230,9 +230,6 @@ partial void ProcessAppPublicServiceCreateConversationResponseContent( /// /// /// - /// - /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -240,17 +237,11 @@ partial void ProcessAppPublicServiceCreateConversationResponseContent( string namespaceId, string appId, string conversationId, - global::Instill.ChatWith? chatWith = default, - string? conversationDisplayName = default, - global::Instill.AIAgentAppMetadata? aiAgentApp = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Instill.CreateConversationBody { ConversationId = conversationId, - ChatWith = chatWith, - ConversationDisplayName = conversationDisplayName, - AiAgentApp = aiAgentApp, }; return await AppPublicServiceCreateConversationAsync( diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteChat.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteChat.g.cs new file mode 100644 index 0000000..ee1c4c0 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteChat.g.cs @@ -0,0 +1,208 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceDeleteChatArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + ref string chatUid); + partial void PrepareAppPublicServiceDeleteChatRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + string chatUid); + partial void ProcessAppPublicServiceDeleteChatResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceDeleteChatResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete a chat
+ /// Deletes a chat. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceDeleteChatAsync( + string namespaceId, + string chatUid, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceDeleteChatArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + chatUid: ref chatUid); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/chats/{chatUid}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); + + 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); + PrepareAppPublicServiceDeleteChatRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + chatUid: chatUid); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceDeleteChatResponse( + 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); + ProcessAppPublicServiceDeleteChatResponseContent( + 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 __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), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChatMessages.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChatMessages.g.cs new file mode 100644 index 0000000..04f708a --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChatMessages.g.cs @@ -0,0 +1,235 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceListChatMessagesArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + ref string chatUid, + ref int? pageSize, + ref string? pageToken, + ref bool? ifAll); + partial void PrepareAppPublicServiceListChatMessagesRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + string chatUid, + int? pageSize, + string? pageToken, + bool? ifAll); + partial void ProcessAppPublicServiceListChatMessagesResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceListChatMessagesResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List chat messages
+ /// Returns a paginated list of messages. + ///
+ /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceListChatMessagesAsync( + string namespaceId, + string chatUid, + int? pageSize = default, + string? pageToken = default, + bool? ifAll = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceListChatMessagesArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + chatUid: ref chatUid, + pageSize: ref pageSize, + pageToken: ref pageToken, + ifAll: ref ifAll); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/chats/{chatUid}/messages", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + .AddOptionalParameter("ifAll", ifAll?.ToString()) + ; + 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)); + + 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); + PrepareAppPublicServiceListChatMessagesRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + chatUid: chatUid, + pageSize: pageSize, + pageToken: pageToken, + ifAll: ifAll); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceListChatMessagesResponse( + 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); + ProcessAppPublicServiceListChatMessagesResponseContent( + 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.ListChatMessagesResponse.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.ListChatMessagesResponse.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.AppClient.AppPublicServiceListChats.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs new file mode 100644 index 0000000..3ebc898 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs @@ -0,0 +1,236 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceListChatsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + ref int? pageSize, + ref string? pageToken, + ref bool? ifAll, + ref string? chatUid); + partial void PrepareAppPublicServiceListChatsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + int? pageSize, + string? pageToken, + bool? ifAll, + string? chatUid); + partial void ProcessAppPublicServiceListChatsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceListChatsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List chats
+ /// Returns a paginated list of conversations. + ///
+ /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceListChatsAsync( + string namespaceId, + int? pageSize = default, + string? pageToken = default, + bool? ifAll = default, + string? chatUid = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceListChatsArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + pageSize: ref pageSize, + pageToken: ref pageToken, + ifAll: ref ifAll, + chatUid: ref chatUid); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/chats", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + .AddOptionalParameter("ifAll", ifAll?.ToString()) + .AddOptionalParameter("chatUid", chatUid) + ; + 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)); + + 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); + PrepareAppPublicServiceListChatsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + pageSize: pageSize, + pageToken: pageToken, + ifAll: ifAll, + chatUid: chatUid); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceListChatsResponse( + 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); + ProcessAppPublicServiceListChatsResponseContent( + 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.ListChatsResponse.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.ListChatsResponse.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.AppClient.AppPublicServiceListConversations.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListConversations.g.cs index f5dc7c5..ca35aff 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListConversations.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListConversations.g.cs @@ -13,8 +13,7 @@ partial void PrepareAppPublicServiceListConversationsArguments( ref string? pageToken, ref string? conversationUid, ref string? conversationId, - ref bool? ifAll, - ref global::Instill.AppPublicServiceListConversationsChatWith? chatWith); + ref bool? ifAll); partial void PrepareAppPublicServiceListConversationsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -24,8 +23,7 @@ partial void PrepareAppPublicServiceListConversationsRequest( string? pageToken, string? conversationUid, string? conversationId, - bool? ifAll, - global::Instill.AppPublicServiceListConversationsChatWith? chatWith); + bool? ifAll); partial void ProcessAppPublicServiceListConversationsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -46,7 +44,6 @@ partial void ProcessAppPublicServiceListConversationsResponseContent( /// /// /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -58,7 +55,6 @@ partial void ProcessAppPublicServiceListConversationsResponseContent( string? conversationUid = default, string? conversationId = default, bool? ifAll = default, - global::Instill.AppPublicServiceListConversationsChatWith? chatWith = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -71,8 +67,7 @@ partial void ProcessAppPublicServiceListConversationsResponseContent( pageToken: ref pageToken, conversationUid: ref conversationUid, conversationId: ref conversationId, - ifAll: ref ifAll, - chatWith: ref chatWith); + ifAll: ref ifAll); var __pathBuilder = new PathBuilder( path: $"/v1alpha/namespaces/{namespaceId}/apps/{appId}/conversations", @@ -83,7 +78,6 @@ partial void ProcessAppPublicServiceListConversationsResponseContent( .AddOptionalParameter("conversationUid", conversationUid) .AddOptionalParameter("conversationId", conversationId) .AddOptionalParameter("ifAll", ifAll?.ToString()) - .AddOptionalParameter("chatWith", chatWith?.ToValueString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -118,8 +112,7 @@ partial void ProcessAppPublicServiceListConversationsResponseContent( pageToken: pageToken, conversationUid: conversationUid, conversationId: conversationId, - ifAll: ifAll, - chatWith: chatWith); + ifAll: ifAll); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs new file mode 100644 index 0000000..5a8bfa8 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs @@ -0,0 +1,257 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceUpdateChatArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + ref string chatUid, + global::Instill.UpdateChatBody request); + partial void PrepareAppPublicServiceUpdateChatRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + string chatUid, + global::Instill.UpdateChatBody request); + partial void ProcessAppPublicServiceUpdateChatResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceUpdateChatResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update a chat
+ /// Updates a chat. + ///
+ /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceUpdateChatAsync( + string namespaceId, + string chatUid, + global::Instill.UpdateChatBody request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceUpdateChatArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + chatUid: ref chatUid, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/chats/{chatUid}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); + + 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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareAppPublicServiceUpdateChatRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + chatUid: chatUid, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceUpdateChatResponse( + 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); + ProcessAppPublicServiceUpdateChatResponseContent( + 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.UpdateChatResponse.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.UpdateChatResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Update a chat
+ /// Updates a chat. + ///
+ /// + /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceUpdateChatAsync( + string namespaceId, + string chatUid, + string? chatDisplayName = default, + global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Instill.UpdateChatBody + { + ChatDisplayName = chatDisplayName, + AiAgentApp = aiAgentApp, + }; + + return await AppPublicServiceUpdateChatAsync( + namespaceId: namespaceId, + chatUid: chatUid, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceChat.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceChat.g.cs index 303690f..71415cc 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceChat.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceChat.g.cs @@ -19,7 +19,7 @@ public partial interface IAppClient global::System.Threading.Tasks.Task AppPublicServiceChatAsync( string namespaceId, string appId, - global::Instill.ChatBody request, + global::Instill.AppPublicServiceChatBody request, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateChat.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateChat.g.cs new file mode 100644 index 0000000..807ca93 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateChat.g.cs @@ -0,0 +1,37 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// Create a chat
+ /// Creates a chat. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceCreateChatAsync( + string namespaceId, + global::Instill.CreateChatBody request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Create a chat
+ /// Creates a chat. + ///
+ /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceCreateChatAsync( + string namespaceId, + string? chatDisplayName = default, + global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateConversation.g.cs index 9099a77..cc10546 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateConversation.g.cs @@ -27,9 +27,6 @@ public partial interface IAppClient /// /// /// - /// - /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -37,9 +34,6 @@ public partial interface IAppClient string namespaceId, string appId, string conversationId, - global::Instill.ChatWith? chatWith = default, - string? conversationDisplayName = default, - global::Instill.AIAgentAppMetadata? aiAgentApp = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteChat.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteChat.g.cs new file mode 100644 index 0000000..f14e960 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteChat.g.cs @@ -0,0 +1,21 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// Delete a chat
+ /// Deletes a chat. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceDeleteChatAsync( + string namespaceId, + string chatUid, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChatMessages.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChatMessages.g.cs new file mode 100644 index 0000000..a0aad20 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChatMessages.g.cs @@ -0,0 +1,27 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// List chat messages
+ /// Returns a paginated list of messages. + ///
+ /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceListChatMessagesAsync( + string namespaceId, + string chatUid, + int? pageSize = default, + string? pageToken = default, + bool? ifAll = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs new file mode 100644 index 0000000..6dc04bf --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs @@ -0,0 +1,27 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// List chats
+ /// Returns a paginated list of conversations. + ///
+ /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceListChatsAsync( + string namespaceId, + int? pageSize = default, + string? pageToken = default, + bool? ifAll = default, + string? chatUid = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListConversations.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListConversations.g.cs index 53236a4..883d32a 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListConversations.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListConversations.g.cs @@ -15,7 +15,6 @@ public partial interface IAppClient /// /// /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -27,7 +26,6 @@ public partial interface IAppClient string? conversationUid = default, string? conversationId = default, bool? ifAll = default, - global::Instill.AppPublicServiceListConversationsChatWith? chatWith = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs new file mode 100644 index 0000000..376db5d --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs @@ -0,0 +1,41 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// Update a chat
+ /// Updates a chat. + ///
+ /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceUpdateChatAsync( + string namespaceId, + string chatUid, + global::Instill.UpdateChatBody request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Update a chat
+ /// Updates a chat. + ///
+ /// + /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceUpdateChatAsync( + string namespaceId, + string chatUid, + string? chatDisplayName = default, + global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceChatBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceChatBody.Json.g.cs new file mode 100644 index 0000000..c64ed98 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceChatBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceChatBody + { + /// + /// 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.AppPublicServiceChatBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceChatBody), + jsonSerializerContext) as global::Instill.AppPublicServiceChatBody; + } + + /// + /// 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.AppPublicServiceChatBody? 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.AppPublicServiceChatBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceChatBody; + } + + /// + /// 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.ChatBody.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceChatBody.g.cs similarity index 90% rename from src/libs/Instill/Generated/Instill.Models.ChatBody.g.cs rename to src/libs/Instill/Generated/Instill.Models.AppPublicServiceChatBody.g.cs index 78d63e9..9fc7016 100644 --- a/src/libs/Instill/Generated/Instill.Models.ChatBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceChatBody.g.cs @@ -7,7 +7,7 @@ namespace Instill /// ChatRequest represents a request to send a message
/// to a chatbot synchronously and streams back the results. ///
- public sealed partial class ChatBody + public sealed partial class AppPublicServiceChatBody { /// /// @@ -55,7 +55,7 @@ public sealed partial class ChatBody public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -64,7 +64,7 @@ public sealed partial class ChatBody /// /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ChatBody( + public AppPublicServiceChatBody( string catalogId, string conversationUid, string message, @@ -81,9 +81,9 @@ public ChatBody( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatBody() + public AppPublicServiceChatBody() { } } diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateChatResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateChatResponse.Json.g.cs new file mode 100644 index 0000000..7ab3b26 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceCreateChatResponse + { + /// + /// 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.AppPublicServiceCreateChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceCreateChatResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceCreateChatResponse; + } + + /// + /// 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.AppPublicServiceCreateChatResponse? 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.AppPublicServiceCreateChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceCreateChatResponse; + } + + /// + /// 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.AppPublicServiceCreateChatResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateChatResponse.g.cs new file mode 100644 index 0000000..80dfe41 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateChatResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceCreateChatResponse + { + + /// + /// 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 AppPublicServiceCreateChatResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteChatResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteChatResponse.Json.g.cs new file mode 100644 index 0000000..f610759 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceDeleteChatResponse + { + /// + /// 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.AppPublicServiceDeleteChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceDeleteChatResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceDeleteChatResponse; + } + + /// + /// 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.AppPublicServiceDeleteChatResponse? 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.AppPublicServiceDeleteChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceDeleteChatResponse; + } + + /// + /// 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.AppPublicServiceDeleteChatResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteChatResponse.g.cs new file mode 100644 index 0000000..13f995b --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteChatResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceDeleteChatResponse + { + + /// + /// 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 AppPublicServiceDeleteChatResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatMessagesResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatMessagesResponse.Json.g.cs new file mode 100644 index 0000000..9027dbe --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatMessagesResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceListChatMessagesResponse + { + /// + /// 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.AppPublicServiceListChatMessagesResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceListChatMessagesResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceListChatMessagesResponse; + } + + /// + /// 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.AppPublicServiceListChatMessagesResponse? 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.AppPublicServiceListChatMessagesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceListChatMessagesResponse; + } + + /// + /// 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.AppPublicServiceListChatMessagesResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatMessagesResponse.g.cs new file mode 100644 index 0000000..bbd97d3 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatMessagesResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceListChatMessagesResponse + { + + /// + /// 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 AppPublicServiceListChatMessagesResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatsResponse.Json.g.cs new file mode 100644 index 0000000..b2f7529 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceListChatsResponse + { + /// + /// 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.AppPublicServiceListChatsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceListChatsResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceListChatsResponse; + } + + /// + /// 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.AppPublicServiceListChatsResponse? 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.AppPublicServiceListChatsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceListChatsResponse; + } + + /// + /// 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.AppPublicServiceListChatsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatsResponse.g.cs new file mode 100644 index 0000000..56946e6 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListChatsResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceListChatsResponse + { + + /// + /// 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 AppPublicServiceListChatsResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListConversationsChatWith.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListConversationsChatWith.g.cs deleted file mode 100644 index 564659d..0000000 --- a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListConversationsChatWith.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// - /// - public enum AppPublicServiceListConversationsChatWith - { - /// - /// chat with ai assistant(default) - /// - CHATWITHAIASSISTANT, - /// - /// chat with ai agent - /// - CHATWITHAIAGENT, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AppPublicServiceListConversationsChatWithExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AppPublicServiceListConversationsChatWith value) - { - return value switch - { - AppPublicServiceListConversationsChatWith.CHATWITHAIASSISTANT => "CHAT_WITH_AI_ASSISTANT", - AppPublicServiceListConversationsChatWith.CHATWITHAIAGENT => "CHAT_WITH_AI_AGENT", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AppPublicServiceListConversationsChatWith? ToEnum(string value) - { - return value switch - { - "CHAT_WITH_AI_ASSISTANT" => AppPublicServiceListConversationsChatWith.CHATWITHAIASSISTANT, - "CHAT_WITH_AI_AGENT" => AppPublicServiceListConversationsChatWith.CHATWITHAIAGENT, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateChatResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateChatResponse.Json.g.cs new file mode 100644 index 0000000..99a996a --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceUpdateChatResponse + { + /// + /// 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.AppPublicServiceUpdateChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceUpdateChatResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceUpdateChatResponse; + } + + /// + /// 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.AppPublicServiceUpdateChatResponse? 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.AppPublicServiceUpdateChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceUpdateChatResponse; + } + + /// + /// 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.AppPublicServiceUpdateChatResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateChatResponse.g.cs new file mode 100644 index 0000000..9a86efd --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateChatResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceUpdateChatResponse + { + + /// + /// 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 AppPublicServiceUpdateChatResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ChatBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.Chat.Json.g.cs similarity index 89% rename from src/libs/Instill/Generated/Instill.Models.ChatBody.Json.g.cs rename to src/libs/Instill/Generated/Instill.Models.Chat.Json.g.cs index 63874ee..b906604 100644 --- a/src/libs/Instill/Generated/Instill.Models.ChatBody.Json.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Chat.Json.g.cs @@ -2,7 +2,7 @@ namespace Instill { - public sealed partial class ChatBody + public sealed partial class Chat { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Instill.ChatBody? FromJson( + public static global::Instill.Chat? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Instill.ChatBody), - jsonSerializerContext) as global::Instill.ChatBody; + typeof(global::Instill.Chat), + jsonSerializerContext) as global::Instill.Chat; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Instill.ChatBody? FromJson( + public static global::Instill.Chat? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Instill.ChatBody), - jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ChatBody; + typeof(global::Instill.Chat), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.Chat; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Instill/Generated/Instill.Models.Chat.g.cs b/src/libs/Instill/Generated/Instill.Models.Chat.g.cs new file mode 100644 index 0000000..e95d7ab --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.Chat.g.cs @@ -0,0 +1,122 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class Chat + { + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uid")] + public string? Uid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("namespaceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string NamespaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lastUsedCatalogUid")] + public string? LastUsedCatalogUid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lastUsedTopK")] + public long? LastUsedTopK { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public global::System.DateTime? CreateTime { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public global::System.DateTime? UpdateTime { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] + public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tempCatalogId")] + public string? TempCatalogId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chatDisplayName")] + public string? ChatDisplayName { 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. + /// + /// + /// Included only in responses + /// + /// + /// + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public Chat( + string namespaceId, + string? uid, + string? lastUsedCatalogUid, + long? lastUsedTopK, + global::System.DateTime? createTime, + global::System.DateTime? updateTime, + global::Instill.AIAgentAppMetadata? aiAgentApp, + string? tempCatalogId, + string? chatDisplayName) + { + this.NamespaceId = namespaceId ?? throw new global::System.ArgumentNullException(nameof(namespaceId)); + this.Uid = uid; + this.LastUsedCatalogUid = lastUsedCatalogUid; + this.LastUsedTopK = lastUsedTopK; + this.CreateTime = createTime; + this.UpdateTime = updateTime; + this.AiAgentApp = aiAgentApp; + this.TempCatalogId = tempCatalogId; + this.ChatDisplayName = chatDisplayName; + } + + /// + /// Initializes a new instance of the class. + /// + public Chat() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ChatWith.g.cs b/src/libs/Instill/Generated/Instill.Models.ChatWith.g.cs deleted file mode 100644 index 1067b6d..0000000 --- a/src/libs/Instill/Generated/Instill.Models.ChatWith.g.cs +++ /dev/null @@ -1,52 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// - CHAT_WITH_AI_ASSISTANT: chat with ai assistant(default)
- /// - CHAT_WITH_AI_AGENT: chat with ai agent - ///
- public enum ChatWith - { - /// - /// chat with ai assistant(default) - /// - AIASSISTANT, - /// - /// chat with ai agent - /// - AIAGENT, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ChatWithExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ChatWith value) - { - return value switch - { - ChatWith.AIASSISTANT => "CHAT_WITH_AI_ASSISTANT", - ChatWith.AIAGENT => "CHAT_WITH_AI_AGENT", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ChatWith? ToEnum(string value) - { - return value switch - { - "CHAT_WITH_AI_ASSISTANT" => ChatWith.AIASSISTANT, - "CHAT_WITH_AI_AGENT" => ChatWith.AIAGENT, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.Conversation.g.cs b/src/libs/Instill/Generated/Instill.Models.Conversation.g.cs index c43274e..0dbe819 100644 --- a/src/libs/Instill/Generated/Instill.Models.Conversation.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Conversation.g.cs @@ -59,31 +59,6 @@ public sealed partial class Conversation [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] public global::System.DateTime? UpdateTime { get; set; } - /// - /// Included only in responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] - public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tempCatalogId")] - public string? TempCatalogId { get; set; } - - /// - /// Included only in responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chatWith")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Instill.JsonConverters.ChatWithJsonConverter))] - public global::Instill.ChatWith? ChatWith { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationDisplayName")] - public string? ConversationDisplayName { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -107,14 +82,6 @@ public sealed partial class Conversation /// /// Included only in responses /// - /// - /// Included only in responses - /// - /// - /// - /// Included only in responses - /// - /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public Conversation( string namespaceId, @@ -124,11 +91,7 @@ public Conversation( string? lastUsedCatalogUid, long? lastUsedTopK, global::System.DateTime? createTime, - global::System.DateTime? updateTime, - global::Instill.AIAgentAppMetadata? aiAgentApp, - string? tempCatalogId, - global::Instill.ChatWith? chatWith, - string? conversationDisplayName) + global::System.DateTime? updateTime) { this.NamespaceId = namespaceId ?? throw new global::System.ArgumentNullException(nameof(namespaceId)); this.AppId = appId ?? throw new global::System.ArgumentNullException(nameof(appId)); @@ -138,10 +101,6 @@ public Conversation( this.LastUsedTopK = lastUsedTopK; this.CreateTime = createTime; this.UpdateTime = updateTime; - this.AiAgentApp = aiAgentApp; - this.TempCatalogId = tempCatalogId; - this.ChatWith = chatWith; - this.ConversationDisplayName = conversationDisplayName; } /// diff --git a/src/libs/Instill/Generated/Instill.Models.CreateChatBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateChatBody.Json.g.cs new file mode 100644 index 0000000..d56cd10 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateChatBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class CreateChatBody + { + /// + /// 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.CreateChatBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.CreateChatBody), + jsonSerializerContext) as global::Instill.CreateChatBody; + } + + /// + /// 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.CreateChatBody? 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.CreateChatBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.CreateChatBody; + } + + /// + /// 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.CreateChatBody.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateChatBody.g.cs new file mode 100644 index 0000000..de31199 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateChatBody.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class CreateChatBody + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chatDisplayName")] + public string? ChatDisplayName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] + public global::Instill.AIAgentAppMetadata? AiAgentApp { 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 CreateChatBody( + string? chatDisplayName, + global::Instill.AIAgentAppMetadata? aiAgentApp) + { + this.ChatDisplayName = chatDisplayName; + this.AiAgentApp = aiAgentApp; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateChatBody() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.CreateChatResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateChatResponse.Json.g.cs new file mode 100644 index 0000000..bfe05c7 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class CreateChatResponse + { + /// + /// 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.CreateChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.CreateChatResponse), + jsonSerializerContext) as global::Instill.CreateChatResponse; + } + + /// + /// 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.CreateChatResponse? 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.CreateChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.CreateChatResponse; + } + + /// + /// 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.CreateChatResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateChatResponse.g.cs new file mode 100644 index 0000000..602f9f2 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateChatResponse.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class CreateChatResponse + { + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chat")] + public global::Instill.Chat? Chat { 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. + /// + /// + /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CreateChatResponse( + global::Instill.Chat? chat) + { + this.Chat = chat; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateChatResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.CreateConversationBody.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateConversationBody.g.cs index 0715d3d..a44107e 100644 --- a/src/libs/Instill/Generated/Instill.Models.CreateConversationBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.CreateConversationBody.g.cs @@ -15,25 +15,6 @@ public sealed partial class CreateConversationBody [global::System.Text.Json.Serialization.JsonRequired] public required string ConversationId { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chatWith")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Instill.JsonConverters.ChatWithJsonConverter))] - public global::Instill.ChatWith? ChatWith { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationDisplayName")] - public string? ConversationDisplayName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] - public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,20 +25,11 @@ public sealed partial class CreateConversationBody /// Initializes a new instance of the class. /// /// - /// - /// - /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public CreateConversationBody( - string conversationId, - global::Instill.ChatWith? chatWith, - string? conversationDisplayName, - global::Instill.AIAgentAppMetadata? aiAgentApp) + string conversationId) { this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.ChatWith = chatWith; - this.ConversationDisplayName = conversationDisplayName; - this.AiAgentApp = aiAgentApp; } /// diff --git a/src/libs/Instill/Generated/Instill.Models.DeleteChatResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.DeleteChatResponse.Json.g.cs new file mode 100644 index 0000000..3b4fd09 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.DeleteChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class DeleteChatResponse + { + /// + /// 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.DeleteChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.DeleteChatResponse), + jsonSerializerContext) as global::Instill.DeleteChatResponse; + } + + /// + /// 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.DeleteChatResponse? 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.DeleteChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.DeleteChatResponse; + } + + /// + /// 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.DeleteChatResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.DeleteChatResponse.g.cs new file mode 100644 index 0000000..db9a3dd --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.DeleteChatResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class DeleteChatResponse + { + + /// + /// 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 DeleteChatResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ListChatMessagesResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListChatMessagesResponse.Json.g.cs new file mode 100644 index 0000000..b0d4e9f --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListChatMessagesResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class ListChatMessagesResponse + { + /// + /// 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.ListChatMessagesResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.ListChatMessagesResponse), + jsonSerializerContext) as global::Instill.ListChatMessagesResponse; + } + + /// + /// 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.ListChatMessagesResponse? 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.ListChatMessagesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListChatMessagesResponse; + } + + /// + /// 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.ListChatMessagesResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListChatMessagesResponse.g.cs new file mode 100644 index 0000000..dc038ec --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListChatMessagesResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class ListChatMessagesResponse + { + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] + public int? TotalSize { 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. + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ListChatMessagesResponse( + global::System.Collections.Generic.IList? messages, + string? nextPageToken, + int? totalSize) + { + this.Messages = messages; + this.NextPageToken = nextPageToken; + this.TotalSize = totalSize; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatMessagesResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ListChatsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListChatsResponse.Json.g.cs new file mode 100644 index 0000000..5b9328c --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListChatsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class ListChatsResponse + { + /// + /// 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.ListChatsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.ListChatsResponse), + jsonSerializerContext) as global::Instill.ListChatsResponse; + } + + /// + /// 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.ListChatsResponse? 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.ListChatsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListChatsResponse; + } + + /// + /// 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.ListChatsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListChatsResponse.g.cs new file mode 100644 index 0000000..87b3918 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListChatsResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class ListChatsResponse + { + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chats")] + public global::System.Collections.Generic.IList? Chats { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] + public int? TotalSize { 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. + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ListChatsResponse( + global::System.Collections.Generic.IList? chats, + string? nextPageToken, + int? totalSize) + { + this.Chats = chats; + this.NextPageToken = nextPageToken; + this.TotalSize = totalSize; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.Json.g.cs new file mode 100644 index 0000000..5e05cfb --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class UpdateChatBody + { + /// + /// 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.UpdateChatBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.UpdateChatBody), + jsonSerializerContext) as global::Instill.UpdateChatBody; + } + + /// + /// 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.UpdateChatBody? 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.UpdateChatBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.UpdateChatBody; + } + + /// + /// 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.UpdateChatBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs new file mode 100644 index 0000000..30d95df --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class UpdateChatBody + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chatDisplayName")] + public string? ChatDisplayName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] + public global::Instill.AIAgentAppMetadata? AiAgentApp { 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 UpdateChatBody( + string? chatDisplayName, + global::Instill.AIAgentAppMetadata? aiAgentApp) + { + this.ChatDisplayName = chatDisplayName; + this.AiAgentApp = aiAgentApp; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateChatBody() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateChatResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChatResponse.Json.g.cs new file mode 100644 index 0000000..07754c9 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class UpdateChatResponse + { + /// + /// 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.UpdateChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.UpdateChatResponse), + jsonSerializerContext) as global::Instill.UpdateChatResponse; + } + + /// + /// 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.UpdateChatResponse? 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.UpdateChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.UpdateChatResponse; + } + + /// + /// 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.UpdateChatResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChatResponse.g.cs new file mode 100644 index 0000000..b109454 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateChatResponse.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class UpdateChatResponse + { + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chat")] + public global::Instill.Chat? Chat { 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. + /// + /// + /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UpdateChatResponse( + global::Instill.Chat? chat) + { + this.Chat = chat; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateChatResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/JsonConverters.AppPublicServiceListConversationsChatWith.g.cs b/src/libs/Instill/Generated/JsonConverters.AppPublicServiceListConversationsChatWith.g.cs deleted file mode 100644 index bd18ba3..0000000 --- a/src/libs/Instill/Generated/JsonConverters.AppPublicServiceListConversationsChatWith.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class AppPublicServiceListConversationsChatWithJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.AppPublicServiceListConversationsChatWith 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::Instill.AppPublicServiceListConversationsChatWithExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.AppPublicServiceListConversationsChatWith)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.AppPublicServiceListConversationsChatWith value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Instill.AppPublicServiceListConversationsChatWithExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Instill/Generated/JsonConverters.AppPublicServiceListConversationsChatWithNullable.g.cs b/src/libs/Instill/Generated/JsonConverters.AppPublicServiceListConversationsChatWithNullable.g.cs deleted file mode 100644 index 033f8fc..0000000 --- a/src/libs/Instill/Generated/JsonConverters.AppPublicServiceListConversationsChatWithNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class AppPublicServiceListConversationsChatWithNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.AppPublicServiceListConversationsChatWith? 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::Instill.AppPublicServiceListConversationsChatWithExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.AppPublicServiceListConversationsChatWith)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.AppPublicServiceListConversationsChatWith? 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::Instill.AppPublicServiceListConversationsChatWithExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Instill/Generated/JsonConverters.ChatWith.g.cs b/src/libs/Instill/Generated/JsonConverters.ChatWith.g.cs deleted file mode 100644 index 2ca5255..0000000 --- a/src/libs/Instill/Generated/JsonConverters.ChatWith.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class ChatWithJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.ChatWith 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::Instill.ChatWithExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.ChatWith)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.ChatWith value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Instill.ChatWithExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Instill/Generated/JsonConverters.ChatWithNullable.g.cs b/src/libs/Instill/Generated/JsonConverters.ChatWithNullable.g.cs deleted file mode 100644 index e2e87db..0000000 --- a/src/libs/Instill/Generated/JsonConverters.ChatWithNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class ChatWithNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.ChatWith? 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::Instill.ChatWithExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.ChatWith)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.ChatWith? 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::Instill.ChatWithExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Instill/Generated/JsonSerializerContext.g.cs b/src/libs/Instill/Generated/JsonSerializerContext.g.cs index 71ed95c..4049a32 100644 --- a/src/libs/Instill/Generated/JsonSerializerContext.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContext.g.cs @@ -27,8 +27,6 @@ namespace Instill typeof(global::Instill.JsonConverters.RunSourceNullableJsonConverter), typeof(global::Instill.JsonConverters.CatalogTypeJsonConverter), typeof(global::Instill.JsonConverters.CatalogTypeNullableJsonConverter), - typeof(global::Instill.JsonConverters.ChatWithJsonConverter), - typeof(global::Instill.JsonConverters.ChatWithNullableJsonConverter), typeof(global::Instill.JsonConverters.CheckNamespaceAdminResponseNamespaceJsonConverter), typeof(global::Instill.JsonConverters.CheckNamespaceAdminResponseNamespaceNullableJsonConverter), typeof(global::Instill.JsonConverters.CheckNamespaceByUIDAdminResponseNamespaceJsonConverter), @@ -83,8 +81,6 @@ namespace Instill typeof(global::Instill.JsonConverters.ViewNullableJsonConverter), typeof(global::Instill.JsonConverters.AppPublicServiceListAppsAppTypeJsonConverter), typeof(global::Instill.JsonConverters.AppPublicServiceListAppsAppTypeNullableJsonConverter), - typeof(global::Instill.JsonConverters.AppPublicServiceListConversationsChatWithJsonConverter), - typeof(global::Instill.JsonConverters.AppPublicServiceListConversationsChatWithNullableJsonConverter), typeof(global::Instill.JsonConverters.ListUsersViewJsonConverter), typeof(global::Instill.JsonConverters.ListUsersViewNullableJsonConverter), typeof(global::Instill.JsonConverters.GetUserViewJsonConverter), diff --git a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs index de91181..b45cf23 100644 --- a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs @@ -78,55 +78,55 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Instill.AuthenticatedUser? Type15 { get; set; } + public global::Instill.AppPublicServiceChatBody? Type15 { get; set; } /// /// /// - public bool? Type16 { get; set; } + public long? Type16 { get; set; } /// /// /// - public global::Instill.OnboardingStatus? Type17 { get; set; } + public global::Instill.AuthenticatedUser? Type17 { get; set; } /// /// /// - public global::Instill.UserProfile? Type18 { get; set; } + public bool? Type18 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type19 { get; set; } + public global::Instill.OnboardingStatus? Type19 { get; set; } /// /// /// - public global::Instill.Catalog? Type20 { get; set; } + public global::Instill.UserProfile? Type20 { get; set; } /// /// /// - public long? Type21 { get; set; } + public global::System.Collections.Generic.Dictionary? Type21 { get; set; } /// /// /// - public global::Instill.CatalogRun? Type22 { get; set; } + public global::Instill.Catalog? Type22 { get; set; } /// /// /// - public global::Instill.CatalogRunAction? Type23 { get; set; } + public global::Instill.CatalogRun? Type23 { get; set; } /// /// /// - public global::Instill.RunStatus? Type24 { get; set; } + public global::Instill.CatalogRunAction? Type24 { get; set; } /// /// /// - public global::Instill.RunSource? Type25 { get; set; } + public global::Instill.RunStatus? Type25 { get; set; } /// /// /// - public global::Instill.CatalogType? Type26 { get; set; } + public global::Instill.RunSource? Type26 { get; set; } /// /// /// - public global::Instill.ChatBody? Type27 { get; set; } + public global::Instill.CatalogType? Type27 { get; set; } /// /// /// @@ -150,1294 +150,1318 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Instill.ChatWith? Type33 { get; set; } + public global::Instill.CheckNamespaceAdminResponse? Type33 { get; set; } /// /// /// - public global::Instill.CheckNamespaceAdminResponse? Type34 { get; set; } + public global::Instill.CheckNamespaceAdminResponseNamespace? Type34 { get; set; } /// /// /// - public global::Instill.CheckNamespaceAdminResponseNamespace? Type35 { get; set; } + public global::Instill.User? Type35 { get; set; } /// /// /// - public global::Instill.User? Type36 { get; set; } + public global::Instill.Organization? Type36 { get; set; } /// /// /// - public global::Instill.Organization? Type37 { get; set; } + public global::Instill.OrganizationProfile? Type37 { get; set; } /// /// /// - public global::Instill.OrganizationProfile? Type38 { get; set; } + public global::Instill.MgmtV1betaPermission? Type38 { get; set; } /// /// /// - public global::Instill.MgmtV1betaPermission? Type39 { get; set; } + public global::Instill.CheckNamespaceByUIDAdminResponse? Type39 { get; set; } /// /// /// - public global::Instill.CheckNamespaceByUIDAdminResponse? Type40 { get; set; } + public global::Instill.CheckNamespaceByUIDAdminResponseNamespace? Type40 { get; set; } /// /// /// - public global::Instill.CheckNamespaceByUIDAdminResponseNamespace? Type41 { get; set; } + public global::Instill.CheckNamespaceRequest? Type41 { get; set; } /// /// /// - public global::Instill.CheckNamespaceRequest? Type42 { get; set; } + public global::Instill.CheckNamespaceResponse? Type42 { get; set; } /// /// /// - public global::Instill.CheckNamespaceResponse? Type43 { get; set; } + public global::Instill.CheckNamespaceResponseNamespace? Type43 { get; set; } /// /// /// - public global::Instill.CheckNamespaceResponseNamespace? Type44 { get; set; } + public global::Instill.ChunkType? Type44 { get; set; } /// /// /// - public global::Instill.ChunkType? Type45 { get; set; } + public global::Instill.CloneNamespacePipelineBody? Type45 { get; set; } /// /// /// - public global::Instill.CloneNamespacePipelineBody? Type46 { get; set; } + public global::Instill.Sharing? Type46 { get; set; } /// /// /// - public global::Instill.Sharing? Type47 { get; set; } + public global::System.Collections.Generic.Dictionary? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type48 { get; set; } + public global::Instill.SharingUser? Type48 { get; set; } /// /// /// - public global::Instill.SharingUser? Type49 { get; set; } + public global::Instill.Role? Type49 { get; set; } /// /// /// - public global::Instill.Role? Type50 { get; set; } + public global::Instill.ShareCode? Type50 { get; set; } /// /// /// - public global::Instill.ShareCode? Type51 { get; set; } + public global::Instill.CloneNamespacePipelineReleaseBody? Type51 { get; set; } /// /// /// - public global::Instill.CloneNamespacePipelineReleaseBody? Type52 { get; set; } + public global::Instill.ComponentDefinition? Type52 { get; set; } /// /// /// - public global::Instill.ComponentDefinition? Type53 { get; set; } + public global::Instill.Spec? Type53 { get; set; } /// /// /// - public global::Instill.Spec? Type54 { get; set; } + public global::System.Collections.Generic.Dictionary? Type54 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type55 { get; set; } + public global::Instill.DataSpecification? Type55 { get; set; } /// /// /// - public global::Instill.DataSpecification? Type56 { get; set; } + public global::System.Collections.Generic.Dictionary? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type57 { get; set; } + public global::Instill.EventSpecification? Type57 { get; set; } /// /// /// - public global::Instill.EventSpecification? Type58 { get; set; } + public global::Instill.ComponentType? Type58 { get; set; } /// /// /// - public global::Instill.ComponentType? Type59 { get; set; } + public global::System.Collections.Generic.IList? Type59 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type60 { get; set; } + public global::Instill.ComponentTask? Type60 { get; set; } /// /// /// - public global::Instill.ComponentTask? Type61 { get; set; } + public global::Instill.ComponentDefinitionReleaseStage? Type61 { get; set; } /// /// /// - public global::Instill.ComponentDefinitionReleaseStage? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type63 { get; set; } + public global::Instill.ComponentEvent? Type63 { get; set; } /// /// /// - public global::Instill.ComponentEvent? Type64 { get; set; } + public global::Instill.ComponentDefinitionView? Type64 { get; set; } /// /// /// - public global::Instill.ComponentDefinitionView? Type65 { get; set; } + public global::Instill.ComponentRun? Type65 { get; set; } /// /// /// - public global::Instill.ComponentRun? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::Instill.FileReference? Type67 { get; set; } /// /// /// - public global::Instill.FileReference? Type68 { get; set; } + public global::Instill.Connection? Type68 { get; set; } /// /// /// - public global::Instill.Connection? Type69 { get; set; } + public global::Instill.Method? Type69 { get; set; } /// /// /// - public global::Instill.Method? Type70 { get; set; } + public global::Instill.PipelineV1betaView? Type70 { get; set; } /// /// /// - public global::Instill.PipelineV1betaView? Type71 { get; set; } + public global::Instill.Conversation? Type71 { get; set; } /// /// /// - public global::Instill.Conversation? Type72 { get; set; } + public global::Instill.CreateAppBody? Type72 { get; set; } /// /// /// - public global::Instill.CreateAppBody? Type73 { get; set; } + public global::Instill.CreateAppResponse? Type73 { get; set; } /// /// /// - public global::Instill.CreateAppResponse? Type74 { get; set; } + public global::Instill.CreateCatalogBody? Type74 { get; set; } /// /// /// - public global::Instill.CreateCatalogBody? Type75 { get; set; } + public global::Instill.CreateCatalogResponse? Type75 { get; set; } /// /// /// - public global::Instill.CreateCatalogResponse? Type76 { get; set; } + public global::Instill.CreateChatBody? Type76 { get; set; } /// /// /// - public global::Instill.CreateConversationBody? Type77 { get; set; } + public global::Instill.CreateChatResponse? Type77 { get; set; } /// /// /// - public global::Instill.CreateConversationResponse? Type78 { get; set; } + public global::Instill.Chat? Type78 { get; set; } /// /// /// - public global::Instill.CreateMessageBody? Type79 { get; set; } + public global::Instill.CreateConversationBody? Type79 { get; set; } /// /// /// - public global::Instill.MessageType? Type80 { get; set; } + public global::Instill.CreateConversationResponse? Type80 { get; set; } /// /// /// - public global::Instill.CreateMessageResponse? Type81 { get; set; } + public global::Instill.CreateMessageBody? Type81 { get; set; } /// /// /// - public global::Instill.AppV1alphaMessage? Type82 { get; set; } + public global::Instill.MessageType? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::Instill.CreateMessageResponse? Type83 { get; set; } /// /// /// - public global::Instill.CreateNamespaceConnectionResponse? Type84 { get; set; } + public global::Instill.AppV1alphaMessage? Type84 { get; set; } /// /// /// - public global::Instill.CreateNamespaceModelResponse? Type85 { get; set; } + public global::System.Collections.Generic.IList? Type85 { get; set; } /// /// /// - public global::Instill.Model? Type86 { get; set; } + public global::Instill.CreateNamespaceConnectionResponse? Type86 { get; set; } /// /// /// - public global::Instill.AITask? Type87 { get; set; } + public global::Instill.CreateNamespaceModelResponse? Type87 { get; set; } /// /// /// - public global::Instill.ModelVisibility? Type88 { get; set; } + public global::Instill.Model? Type88 { get; set; } /// /// /// - public global::Instill.Owner? Type89 { get; set; } + public global::Instill.AITask? Type89 { get; set; } /// /// /// - public global::Instill.Permission? Type90 { get; set; } + public global::Instill.ModelVisibility? Type90 { get; set; } /// /// /// - public global::Instill.ModelStats? Type91 { get; set; } + public global::Instill.Owner? Type91 { get; set; } /// /// /// - public global::Instill.CreateNamespacePipelineReleaseResponse? Type92 { get; set; } + public global::Instill.Permission? Type92 { get; set; } /// /// /// - public global::Instill.PipelineRelease? Type93 { get; set; } + public global::Instill.ModelStats? Type93 { get; set; } /// /// /// - public global::Instill.Endpoints? Type94 { get; set; } + public global::Instill.CreateNamespacePipelineReleaseResponse? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type95 { get; set; } + public global::Instill.PipelineRelease? Type95 { get; set; } /// /// /// - public global::Instill.WebhookEndpoint? Type96 { get; set; } + public global::Instill.Endpoints? Type96 { get; set; } /// /// /// - public global::Instill.CreateNamespacePipelineResponse? Type97 { get; set; } + public global::System.Collections.Generic.Dictionary? Type97 { get; set; } /// /// /// - public global::Instill.Pipeline? Type98 { get; set; } + public global::Instill.WebhookEndpoint? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Instill.CreateNamespacePipelineResponse? Type99 { get; set; } /// /// /// - public global::Instill.PipelineV1betaPermission? Type100 { get; set; } + public global::Instill.Pipeline? Type100 { get; set; } /// /// /// - public global::Instill.PipelineVisibility? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::Instill.PipelineStats? Type102 { get; set; } + public global::Instill.PipelineV1betaPermission? Type102 { get; set; } /// /// /// - public global::Instill.CreateNamespaceSecretResponse? Type103 { get; set; } + public global::Instill.PipelineVisibility? Type103 { get; set; } /// /// /// - public global::Instill.Secret? Type104 { get; set; } + public global::Instill.PipelineStats? Type104 { get; set; } /// /// /// - public global::Instill.CreateOrganizationResponse? Type105 { get; set; } + public global::Instill.CreateNamespaceSecretResponse? Type105 { get; set; } /// /// /// - public global::Instill.CreateRepositoryTagResponse? Type106 { get; set; } + public global::Instill.Secret? Type106 { get; set; } /// /// /// - public global::Instill.RepositoryTag? Type107 { get; set; } + public global::Instill.CreateOrganizationResponse? Type107 { get; set; } /// /// /// - public global::Instill.CreateTokenResponse? Type108 { get; set; } + public global::Instill.CreateRepositoryTagResponse? Type108 { get; set; } /// /// /// - public global::Instill.CreditConsumptionChartRecord? Type109 { get; set; } + public global::Instill.RepositoryTag? Type109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type110 { get; set; } + public global::Instill.CreateTokenResponse? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::Instill.CreditConsumptionChartRecord? Type111 { get; set; } /// /// /// - public global::Instill.DeleteCatalogFileResponse? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::Instill.DeleteCatalogResponse? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::Instill.ErrPipelineValidation? Type114 { get; set; } + public global::Instill.DeleteCatalogFileResponse? Type114 { get; set; } /// /// /// - public global::Instill.File? Type115 { get; set; } + public global::Instill.DeleteCatalogResponse? Type115 { get; set; } /// /// /// - public global::Instill.FileType? Type116 { get; set; } + public global::Instill.ErrPipelineValidation? Type116 { get; set; } /// /// /// - public global::Instill.FileProcessStatus? Type117 { get; set; } + public global::Instill.File? Type117 { get; set; } /// /// /// - public global::Instill.GetAuthenticatedUserResponse? Type118 { get; set; } + public global::Instill.FileType? Type118 { get; set; } /// /// /// - public global::Instill.GetAuthenticatedUserSubscriptionResponse? Type119 { get; set; } + public global::Instill.FileProcessStatus? Type119 { get; set; } /// /// /// - public global::Instill.UserSubscription? Type120 { get; set; } + public global::Instill.GetAuthenticatedUserResponse? Type120 { get; set; } /// /// /// - public global::Instill.UserSubscriptionPlan? Type121 { get; set; } + public global::Instill.GetAuthenticatedUserSubscriptionResponse? Type121 { get; set; } /// /// /// - public global::Instill.StripeSubscriptionDetail? Type122 { get; set; } + public global::Instill.UserSubscription? Type122 { get; set; } /// /// /// - public global::Instill.StripeSubscriptionDetailStatus? Type123 { get; set; } + public global::Instill.UserSubscriptionPlan? Type123 { get; set; } /// /// /// - public global::Instill.GetFileCatalogResponse? Type124 { get; set; } + public global::Instill.StripeSubscriptionDetail? Type124 { get; set; } /// /// /// - public global::Instill.Metadata? Type125 { get; set; } + public global::Instill.StripeSubscriptionDetailStatus? Type125 { get; set; } /// /// /// - public global::Instill.Text? Type126 { get; set; } + public global::Instill.GetFileCatalogResponse? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::Instill.Metadata? Type127 { get; set; } /// /// /// - public global::Instill.GetFileCatalogResponseChunk? Type128 { get; set; } + public global::Instill.Text? Type128 { get; set; } /// /// /// - public global::Instill.GetIntegrationResponse? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::Instill.Integration? Type130 { get; set; } + public global::Instill.GetFileCatalogResponseChunk? Type130 { get; set; } /// /// /// - public global::Instill.Link? Type131 { get; set; } + public global::Instill.GetIntegrationResponse? Type131 { get; set; } /// /// /// - public global::Instill.OAuthConfig? Type132 { get; set; } + public global::Instill.Integration? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::Instill.Link? Type133 { get; set; } /// /// /// - public global::Instill.SetupSchema? Type134 { get; set; } + public global::Instill.OAuthConfig? Type134 { get; set; } /// /// /// - public global::Instill.GetModelDefinitionResponse? Type135 { get; set; } + public global::System.Collections.Generic.IList? Type135 { get; set; } /// /// /// - public global::Instill.ModelDefinition? Type136 { get; set; } + public global::Instill.SetupSchema? Type136 { get; set; } /// /// /// - public global::Instill.ReleaseStage? Type137 { get; set; } + public global::Instill.GetModelDefinitionResponse? Type137 { get; set; } /// /// /// - public global::Instill.GetModelOperationResponse? Type138 { get; set; } + public global::Instill.ModelDefinition? Type138 { get; set; } /// /// /// - public global::Instill.LongrunningOperation? Type139 { get; set; } + public global::Instill.ReleaseStage? Type139 { get; set; } /// /// /// - public global::Instill.RpcStatus? Type140 { get; set; } + public global::Instill.GetModelOperationResponse? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Instill.LongrunningOperation? Type141 { get; set; } /// /// /// - public global::Instill.GetNamespaceConnectionResponse? Type142 { get; set; } + public global::Instill.RpcStatus? Type142 { get; set; } /// /// /// - public global::Instill.GetNamespaceLatestModelOperationResponse? Type143 { get; set; } + public global::System.Collections.Generic.IList? Type143 { get; set; } /// /// /// - public global::Instill.GetNamespaceModelOperationResponse? Type144 { get; set; } + public global::Instill.GetNamespaceConnectionResponse? Type144 { get; set; } /// /// /// - public global::Instill.GetNamespaceModelResponse? Type145 { get; set; } + public global::Instill.GetNamespaceLatestModelOperationResponse? Type145 { get; set; } /// /// /// - public global::Instill.GetNamespacePipelineReleaseResponse? Type146 { get; set; } + public global::Instill.GetNamespaceModelOperationResponse? Type146 { get; set; } /// /// /// - public global::Instill.GetNamespacePipelineResponse? Type147 { get; set; } + public global::Instill.GetNamespaceModelResponse? Type147 { get; set; } /// /// /// - public global::Instill.GetNamespaceSecretResponse? Type148 { get; set; } + public global::Instill.GetNamespacePipelineReleaseResponse? Type148 { get; set; } /// /// /// - public global::Instill.GetObjectDownloadURLResponse? Type149 { get; set; } + public global::Instill.GetNamespacePipelineResponse? Type149 { get; set; } /// /// /// - public global::Instill.AIObject? Type150 { get; set; } + public global::Instill.GetNamespaceSecretResponse? Type150 { get; set; } /// /// /// - public global::Instill.GetObjectResponse? Type151 { get; set; } + public global::Instill.GetObjectDownloadURLResponse? Type151 { get; set; } /// /// /// - public global::Instill.GetObjectURLResponse? Type152 { get; set; } + public global::Instill.AIObject? Type152 { get; set; } /// /// /// - public global::Instill.ObjectURL? Type153 { get; set; } + public global::Instill.GetObjectResponse? Type153 { get; set; } /// /// /// - public global::Instill.GetObjectUploadURLResponse? Type154 { get; set; } + public global::Instill.GetObjectURLResponse? Type154 { get; set; } /// /// /// - public global::Instill.GetOperationResponse? Type155 { get; set; } + public global::Instill.ObjectURL? Type155 { get; set; } /// /// /// - public global::Instill.GetOrganizationAdminResponse? Type156 { get; set; } + public global::Instill.GetObjectUploadURLResponse? Type156 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipResponse? Type157 { get; set; } + public global::Instill.GetOperationResponse? Type157 { get; set; } /// /// /// - public global::Instill.OrganizationMembership? Type158 { get; set; } + public global::Instill.GetOrganizationAdminResponse? Type158 { get; set; } /// /// /// - public global::Instill.MembershipState? Type159 { get; set; } + public global::Instill.GetOrganizationMembershipResponse? Type159 { get; set; } /// /// /// - public global::Instill.GetOrganizationResponse? Type160 { get; set; } + public global::Instill.OrganizationMembership? Type160 { get; set; } /// /// /// - public global::Instill.GetOrganizationSubscriptionAdminResponse? Type161 { get; set; } + public global::Instill.MembershipState? Type161 { get; set; } /// /// /// - public global::Instill.OrganizationSubscription? Type162 { get; set; } + public global::Instill.GetOrganizationResponse? Type162 { get; set; } /// /// /// - public global::Instill.OrganizationSubscriptionPlan? Type163 { get; set; } + public global::Instill.GetOrganizationSubscriptionAdminResponse? Type163 { get; set; } /// /// /// - public global::Instill.GetOrganizationSubscriptionResponse? Type164 { get; set; } + public global::Instill.OrganizationSubscription? Type164 { get; set; } /// /// /// - public global::Instill.GetPlaygroundConversationResponse? Type165 { get; set; } + public global::Instill.OrganizationSubscriptionPlan? Type165 { get; set; } /// /// /// - public global::Instill.GetRemainingCreditAdminResponse? Type166 { get; set; } + public global::Instill.GetOrganizationSubscriptionResponse? Type166 { get; set; } /// /// /// - public global::Instill.GetRemainingCreditResponse? Type167 { get; set; } + public global::Instill.GetPlaygroundConversationResponse? Type167 { get; set; } /// /// /// - public global::Instill.GetRepositoryTagResponse? Type168 { get; set; } + public global::Instill.GetRemainingCreditAdminResponse? Type168 { get; set; } /// /// /// - public global::Instill.GetSourceFileResponse? Type169 { get; set; } + public global::Instill.GetRemainingCreditResponse? Type169 { get; set; } /// /// /// - public global::Instill.SourceFile? Type170 { get; set; } + public global::Instill.GetRepositoryTagResponse? Type170 { get; set; } /// /// /// - public global::Instill.GetTokenResponse? Type171 { get; set; } + public global::Instill.GetSourceFileResponse? Type171 { get; set; } /// /// /// - public global::Instill.GetUserAdminResponse? Type172 { get; set; } + public global::Instill.SourceFile? Type172 { get; set; } /// /// /// - public global::Instill.GetUserMembershipResponse? Type173 { get; set; } + public global::Instill.GetTokenResponse? Type173 { get; set; } /// /// /// - public global::Instill.UserMembership? Type174 { get; set; } + public global::Instill.GetUserAdminResponse? Type174 { get; set; } /// /// /// - public global::Instill.GetUserResponse? Type175 { get; set; } + public global::Instill.GetUserMembershipResponse? Type175 { get; set; } /// /// /// - public global::Instill.GetUserSubscriptionAdminResponse? Type176 { get; set; } + public global::Instill.UserMembership? Type176 { get; set; } /// /// /// - public global::Instill.ListAppsResponse? Type177 { get; set; } + public global::Instill.GetUserResponse? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Instill.GetUserSubscriptionAdminResponse? Type178 { get; set; } /// /// /// - public global::Instill.ListAvailableRegionsResponse? Type179 { get; set; } + public global::Instill.ListAppsResponse? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::System.Collections.Generic.IList? Type180 { get; set; } /// /// /// - public global::Instill.Region? Type181 { get; set; } + public global::Instill.ListAvailableRegionsResponse? Type181 { get; set; } /// /// /// - public global::Instill.ListCatalogFilesFilter? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::Instill.ListCatalogFilesResponse? Type183 { get; set; } + public global::Instill.Region? Type183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::Instill.ListCatalogFilesFilter? Type184 { get; set; } /// /// /// - public global::Instill.ListCatalogRunsResponse? Type185 { get; set; } + public global::Instill.ListCatalogFilesResponse? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::Instill.ListCatalogsResponse? Type187 { get; set; } + public global::Instill.ListCatalogRunsResponse? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::Instill.ListChunksResponse? Type189 { get; set; } + public global::Instill.ListCatalogsResponse? Type189 { get; set; } /// /// /// - public global::Instill.ListComponentDefinitionsResponse? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::Instill.ListChatMessagesResponse? Type191 { get; set; } /// /// /// - public global::Instill.ListComponentRunsResponse? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type192 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type193 { get; set; } + public global::Instill.ListChatsResponse? Type193 { get; set; } /// /// /// - public global::Instill.ListConversationsResponse? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::Instill.ListChunksResponse? Type195 { get; set; } /// /// /// - public global::Instill.ListCreditConsumptionChartRecordsResponse? Type196 { get; set; } + public global::Instill.ListComponentDefinitionsResponse? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Instill.ListIntegrationsResponse? Type198 { get; set; } + public global::Instill.ListComponentRunsResponse? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::Instill.ListMessagesResponse? Type200 { get; set; } + public global::Instill.ListConversationsResponse? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::Instill.ListCreditConsumptionChartRecordsResponse? Type202 { get; set; } /// /// /// - public global::Instill.MessageSenderProfile? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::Instill.ListModelDefinitionsResponse? Type204 { get; set; } + public global::Instill.ListIntegrationsResponse? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::Instill.ListModelRunsByRequesterResponse? Type206 { get; set; } + public global::Instill.ListMessagesResponse? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Instill.ModelRun? Type208 { get; set; } + public global::Instill.MessageSenderProfile? Type208 { get; set; } /// /// /// - public global::Instill.ListModelRunsResponse? Type209 { get; set; } + public global::Instill.ListModelDefinitionsResponse? Type209 { get; set; } /// /// /// - public global::Instill.ListModelTriggerChartRecordsResponse? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type211 { get; set; } + public global::Instill.ListModelRunsByRequesterResponse? Type211 { get; set; } /// /// /// - public global::Instill.ModelTriggerChartRecord? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::Instill.ModelRun? Type213 { get; set; } /// /// /// - public global::Instill.ListModelsAdminResponse? Type214 { get; set; } + public global::Instill.ListModelRunsResponse? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type215 { get; set; } + public global::Instill.ListModelTriggerChartRecordsResponse? Type215 { get; set; } /// /// /// - public global::Instill.ListModelsResponse? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::Instill.ListNamespaceConnectionsResponse? Type217 { get; set; } + public global::Instill.ModelTriggerChartRecord? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::Instill.ListNamespaceModelVersionsResponse? Type219 { get; set; } + public global::Instill.ListModelsAdminResponse? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::Instill.ModelVersion? Type221 { get; set; } + public global::Instill.ListModelsResponse? Type221 { get; set; } /// /// /// - public global::Instill.State? Type222 { get; set; } + public global::Instill.ListNamespaceConnectionsResponse? Type222 { get; set; } /// /// /// - public global::Instill.ListNamespaceModelsResponse? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Instill.ListNamespacePipelineReleasesResponse? Type224 { get; set; } + public global::Instill.ListNamespaceModelVersionsResponse? Type224 { get; set; } /// /// /// - public global::Instill.ListNamespacePipelinesResponse? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Instill.ModelVersion? Type226 { get; set; } /// /// /// - public global::Instill.ListNamespaceSecretsResponse? Type227 { get; set; } + public global::Instill.State? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Instill.ListNamespaceModelsResponse? Type228 { get; set; } /// /// /// - public global::Instill.ListOrganizationMembershipsResponse? Type229 { get; set; } + public global::Instill.ListNamespacePipelineReleasesResponse? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Instill.ListNamespacePipelinesResponse? Type230 { get; set; } /// /// /// - public global::Instill.ListOrganizationsAdminResponse? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::Instill.ListNamespaceSecretsResponse? Type232 { get; set; } /// /// /// - public global::Instill.ListOrganizationsResponse? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::Instill.ListPipelineIDsByConnectionIDResponse? Type234 { get; set; } + public global::Instill.ListOrganizationMembershipsResponse? Type234 { get; set; } /// /// /// - public global::Instill.ListPipelineReleasesAdminResponse? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::Instill.ListPipelineRunsByRequesterResponse? Type236 { get; set; } + public global::Instill.ListOrganizationsAdminResponse? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public global::Instill.PipelineRun? Type238 { get; set; } + public global::Instill.ListOrganizationsResponse? Type238 { get; set; } /// /// /// - public global::Instill.ListPipelineRunsResponse? Type239 { get; set; } + public global::Instill.ListPipelineIDsByConnectionIDResponse? Type239 { get; set; } /// /// /// - public global::Instill.ListPipelineTriggerChartRecordsResponse? Type240 { get; set; } + public global::Instill.ListPipelineReleasesAdminResponse? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::Instill.ListPipelineRunsByRequesterResponse? Type241 { get; set; } /// /// /// - public global::Instill.PipelineTriggerChartRecord? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::Instill.ListPipelinesAdminResponse? Type243 { get; set; } + public global::Instill.PipelineRun? Type243 { get; set; } /// /// /// - public global::Instill.ListPipelinesResponse? Type244 { get; set; } + public global::Instill.ListPipelineRunsResponse? Type244 { get; set; } /// /// /// - public global::Instill.ListRepositoryTagsResponse? Type245 { get; set; } + public global::Instill.ListPipelineTriggerChartRecordsResponse? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::Instill.ListTokensResponse? Type247 { get; set; } + public global::Instill.PipelineTriggerChartRecord? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::Instill.ListPipelinesAdminResponse? Type248 { get; set; } /// /// /// - public global::Instill.ListUserMembershipsResponse? Type249 { get; set; } + public global::Instill.ListPipelinesResponse? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Instill.ListRepositoryTagsResponse? Type250 { get; set; } /// /// /// - public global::Instill.ListUsersAdminResponse? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type252 { get; set; } + public global::Instill.ListTokensResponse? Type252 { get; set; } /// /// /// - public global::Instill.ListUsersResponse? Type253 { get; set; } + public global::System.Collections.Generic.IList? Type253 { get; set; } /// /// /// - public global::Instill.LookUpModelAdminResponse? Type254 { get; set; } + public global::Instill.ListUserMembershipsResponse? Type254 { get; set; } /// /// /// - public global::Instill.LookUpOrganizationAdminResponse? Type255 { get; set; } + public global::System.Collections.Generic.IList? Type255 { get; set; } /// /// /// - public global::Instill.LookUpPipelineAdminResponse? Type256 { get; set; } + public global::Instill.ListUsersAdminResponse? Type256 { get; set; } /// /// /// - public global::Instill.LookUpUserAdminResponse? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// /// /// - public global::Instill.PatchAuthenticatedUserResponse? Type258 { get; set; } + public global::Instill.ListUsersResponse? Type258 { get; set; } /// /// /// - public global::Instill.PipelineView? Type259 { get; set; } + public global::Instill.LookUpModelAdminResponse? Type259 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesRequest? Type260 { get; set; } + public global::Instill.LookUpOrganizationAdminResponse? Type260 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesResponse? Type261 { get; set; } + public global::Instill.LookUpPipelineAdminResponse? Type261 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringBody? Type262 { get; set; } + public global::Instill.LookUpUserAdminResponse? Type262 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringResponse? Type263 { get; set; } + public global::Instill.PatchAuthenticatedUserResponse? Type263 { get; set; } /// /// /// - public global::Instill.RenameNamespaceModelBody? Type264 { get; set; } + public global::Instill.PipelineView? Type264 { get; set; } /// /// /// - public global::Instill.RenameNamespaceModelResponse? Type265 { get; set; } + public global::Instill.ProcessCatalogFilesRequest? Type265 { get; set; } /// /// /// - public global::Instill.RenameNamespacePipelineBody? Type266 { get; set; } + public global::Instill.ProcessCatalogFilesResponse? Type266 { get; set; } /// /// /// - public global::Instill.RenameNamespacePipelineResponse? Type267 { get; set; } + public global::Instill.QuestionAnsweringBody? Type267 { get; set; } /// /// /// - public global::Instill.RestartPlaygroundConversationResponse? Type268 { get; set; } + public global::Instill.QuestionAnsweringResponse? Type268 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchBody? Type269 { get; set; } + public global::Instill.RenameNamespaceModelBody? Type269 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchResponse? Type270 { get; set; } + public global::Instill.RenameNamespaceModelResponse? Type270 { get; set; } /// /// /// - public global::Instill.SubtractCreditAdminResponse? Type271 { get; set; } + public global::Instill.RenameNamespacePipelineBody? Type271 { get; set; } /// /// /// - public global::Instill.Trace? Type272 { get; set; } + public global::Instill.RenameNamespacePipelineResponse? Type272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type273 { get; set; } + public global::Instill.RestartPlaygroundConversationResponse? Type273 { get; set; } /// /// /// - public global::Instill.TraceStatus? Type274 { get; set; } + public global::Instill.SimilarityChunksSearchBody? Type274 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type275 { get; set; } + public global::Instill.SimilarityChunksSearchResponse? Type275 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type276 { get; set; } + public global::Instill.SubtractCreditAdminResponse? Type276 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelBody? Type277 { get; set; } + public global::Instill.Trace? Type277 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelResponse? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineBody? Type279 { get; set; } + public global::Instill.TraceStatus? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type280 { get; set; } /// /// /// - public global::Instill.TriggerData? Type281 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type281 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type282 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelBody? Type282 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type283 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelResponse? Type283 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineResponse? Type284 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineBody? Type284 { get; set; } /// /// /// - public global::Instill.TriggerMetadata? Type285 { get; set; } + public global::System.Collections.Generic.IList? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type286 { get; set; } + public global::Instill.TriggerData? Type286 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type287 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type287 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBody? Type288 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type288 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelResponse? Type289 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineResponse? Type289 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type290 { get; set; } + public global::Instill.TriggerMetadata? Type290 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBody? Type291 { get; set; } + public global::System.Collections.Generic.Dictionary? Type291 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelResponse? Type292 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type292 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineBody? Type293 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBody? Type293 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseBody? Type294 { get; set; } + public global::Instill.TriggerNamespaceLatestModelResponse? Type294 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseResponse? Type295 { get; set; } + public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type295 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineResponse? Type296 { get; set; } + public global::Instill.TriggerNamespaceModelBody? Type296 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamBody? Type297 { get; set; } + public global::Instill.TriggerNamespaceModelResponse? Type297 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type298 { get; set; } + public global::Instill.TriggerNamespacePipelineBody? Type298 { get; set; } /// /// /// - public global::Instill.UpdateAppBody? Type299 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseBody? Type299 { get; set; } /// /// /// - public global::Instill.UpdateAppResponse? Type300 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseResponse? Type300 { get; set; } /// /// /// - public global::Instill.UpdateCatalogBody? Type301 { get; set; } + public global::Instill.TriggerNamespacePipelineResponse? Type301 { get; set; } /// /// /// - public global::Instill.UpdateCatalogResponse? Type302 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamBody? Type302 { get; set; } /// /// /// - public global::Instill.UpdateChunkBody? Type303 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type303 { get; set; } /// /// /// - public global::Instill.UpdateChunkResponse? Type304 { get; set; } + public global::Instill.UpdateAppBody? Type304 { get; set; } /// /// /// - public global::Instill.UpdateConversationBody? Type305 { get; set; } + public global::Instill.UpdateAppResponse? Type305 { get; set; } /// /// /// - public global::Instill.UpdateConversationResponse? Type306 { get; set; } + public global::Instill.UpdateCatalogBody? Type306 { get; set; } /// /// /// - public global::Instill.UpdateMessageBody? Type307 { get; set; } + public global::Instill.UpdateCatalogResponse? Type307 { get; set; } /// /// /// - public global::Instill.UpdateMessageResponse? Type308 { get; set; } + public global::Instill.UpdateChatBody? Type308 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceConnectionResponse? Type309 { get; set; } + public global::Instill.UpdateChatResponse? Type309 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceModelResponse? Type310 { get; set; } + public global::Instill.UpdateChunkBody? Type310 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineReleaseResponse? Type311 { get; set; } + public global::Instill.UpdateChunkResponse? Type311 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineResponse? Type312 { get; set; } + public global::Instill.UpdateConversationBody? Type312 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceSecretResponse? Type313 { get; set; } + public global::Instill.UpdateConversationResponse? Type313 { get; set; } /// /// /// - public global::Instill.UpdateObjectResponse? Type314 { get; set; } + public global::Instill.UpdateMessageBody? Type314 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationMembershipResponse? Type315 { get; set; } + public global::Instill.UpdateMessageResponse? Type315 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationResponse? Type316 { get; set; } + public global::Instill.UpdateNamespaceConnectionResponse? Type316 { get; set; } /// /// /// - public global::Instill.UpdateUserMembershipResponse? Type317 { get; set; } + public global::Instill.UpdateNamespaceModelResponse? Type317 { get; set; } /// /// /// - public global::Instill.UploadCatalogFileResponse? Type318 { get; set; } + public global::Instill.UpdateNamespacePipelineReleaseResponse? Type318 { get; set; } /// /// /// - public global::Instill.ValidateNamespacePipelineResponse? Type319 { get; set; } + public global::Instill.UpdateNamespacePipelineResponse? Type319 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type320 { get; set; } + public global::Instill.UpdateNamespaceSecretResponse? Type320 { get; set; } /// /// /// - public global::Instill.ValidateTokenResponse? Type321 { get; set; } + public global::Instill.UpdateObjectResponse? Type321 { get; set; } /// /// /// - public global::Instill.WatchNamespaceLatestModelResponse? Type322 { get; set; } + public global::Instill.UpdateOrganizationMembershipResponse? Type322 { get; set; } /// /// /// - public global::Instill.WatchNamespaceModelResponse? Type323 { get; set; } + public global::Instill.UpdateOrganizationResponse? Type323 { get; set; } /// /// /// - public global::Instill.MgmtV1betaView? Type324 { get; set; } + public global::Instill.UpdateUserMembershipResponse? Type324 { get; set; } /// /// /// - public global::Instill.View? Type325 { get; set; } + public global::Instill.UploadCatalogFileResponse? Type325 { get; set; } /// /// /// - public global::Instill.AppPublicServiceListAppsAppType? Type326 { get; set; } + public global::Instill.ValidateNamespacePipelineResponse? Type326 { get; set; } /// /// /// - public global::Instill.AppPublicServiceListConversationsChatWith? Type327 { get; set; } + public global::System.Collections.Generic.IList? Type327 { get; set; } /// /// /// - public global::Instill.ListUsersView? Type328 { get; set; } + public global::Instill.ValidateTokenResponse? Type328 { get; set; } /// /// /// - public global::Instill.GetUserView? Type329 { get; set; } + public global::Instill.WatchNamespaceLatestModelResponse? Type329 { get; set; } /// /// /// - public global::Instill.ListOrganizationsView? Type330 { get; set; } + public global::Instill.WatchNamespaceModelResponse? Type330 { get; set; } /// /// /// - public global::Instill.GetOrganizationView? Type331 { get; set; } + public global::Instill.MgmtV1betaView? Type331 { get; set; } /// /// /// - public global::Instill.GetUserMembershipView? Type332 { get; set; } + public global::Instill.View? Type332 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipView? Type333 { get; set; } + public global::Instill.AppPublicServiceListAppsAppType? Type333 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelDefinitionsView? Type334 { get; set; } + public global::Instill.ListUsersView? Type334 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelDefinitionView? Type335 { get; set; } + public global::Instill.GetUserView? Type335 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsView? Type336 { get; set; } + public global::Instill.ListOrganizationsView? Type336 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsVisibility? Type337 { get; set; } + public global::Instill.GetOrganizationView? Type337 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsView? Type338 { get; set; } + public global::Instill.GetUserMembershipView? Type338 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type339 { get; set; } + public global::Instill.GetOrganizationMembershipView? Type339 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelView? Type340 { get; set; } + public global::Instill.ModelPublicServiceListModelDefinitionsView? Type340 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type341 { get; set; } + public global::Instill.ModelPublicServiceGetModelDefinitionView? Type341 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type342 { get; set; } + public global::Instill.ModelPublicServiceListModelsView? Type342 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelOperationView? Type343 { get; set; } + public global::Instill.ModelPublicServiceListModelsVisibility? Type343 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesView? Type344 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsView? Type344 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type345 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type345 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type346 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelView? Type346 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type347 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type347 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type348 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type348 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type349 { get; set; } + public global::Instill.ModelPublicServiceGetModelOperationView? Type349 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type350 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesView? Type350 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type351 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type351 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListComponentRunsView? Type352 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type352 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type353 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type353 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetIntegrationView? Type354 { get; set; } + public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type354 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type355 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type355 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type356 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type357 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceListComponentRunsView? Type358 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type359 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetIntegrationView? Type360 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type361 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml index 950ad3b..340ef88 100644 --- a/src/libs/Instill/openapi.yaml +++ b/src/libs/Instill/openapi.yaml @@ -224,14 +224,6 @@ paths: description: 'If true, all conversations will be returned. This has higher priority over conversation_id, page_size, and page_token.' schema: type: boolean - - name: chatWith - in: query - description: "chat with\n\n - CHAT_WITH_AI_ASSISTANT: chat with ai assistant(default)\n - CHAT_WITH_AI_AGENT: chat with ai agent" - schema: - enum: - - CHAT_WITH_AI_ASSISTANT - - CHAT_WITH_AI_AGENT - type: string responses: '200': description: A successful response. @@ -392,6 +384,183 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: alpha + '/v1alpha/namespaces/{namespaceId}/chats': + get: + tags: + - 🍎 App + summary: List chats + description: Returns a paginated list of conversations. + operationId: AppPublicService_ListChats + parameters: + - name: namespaceId + in: path + description: namespace id + required: true + schema: + type: string + - name: pageSize + in: query + description: page size + schema: + type: integer + format: int32 + - name: pageToken + in: query + description: page token + schema: + type: string + - name: ifAll + in: query + description: 'if true, all chats will be returned. This has higher priority over page_size and page_token.' + schema: + type: boolean + - name: chatUid + in: query + description: "chat_uid this is optional, if provided, only the chat with the given chat_uid will be returned\nfirst check chat_uid then check if_all" + schema: + type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/ListChatsResponse' + '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: alpha + post: + tags: + - 🍎 App + summary: Create a chat + description: Creates a chat. + operationId: AppPublicService_CreateChat + parameters: + - name: namespaceId + in: path + description: namespace id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateChatBody' + required: true + x-bodyName: body + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/CreateChatResponse' + '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: alpha + '/v1alpha/namespaces/{namespaceId}/chats/{chatUid}': + put: + tags: + - 🍎 App + summary: Update a chat + description: Updates a chat. + operationId: AppPublicService_UpdateChat + parameters: + - name: namespaceId + in: path + description: namespace id + required: true + schema: + type: string + - name: chatUid + in: path + description: chat uid + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateChatBody' + required: true + x-bodyName: body + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateChatResponse' + '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: alpha + delete: + tags: + - 🍎 App + summary: Delete a chat + description: Deletes a chat. + operationId: AppPublicService_DeleteChat + parameters: + - name: namespaceId + in: path + description: namespace id + required: true + schema: + type: string + - name: chatUid + in: path + description: chat uid + required: true + schema: + type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteChatResponse' + '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: alpha '/v1alpha/namespaces/{namespaceId}/apps/{appId}/conversations/{conversationId}/messages': get: tags: @@ -667,6 +836,61 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: alpha + '/v1alpha/namespaces/{namespaceId}/chats/{chatUid}/messages': + get: + tags: + - 🍎 App + summary: List chat messages + description: Returns a paginated list of messages. + operationId: AppPublicService_ListChatMessages + parameters: + - name: namespaceId + in: path + description: namespace id + required: true + schema: + type: string + - name: chatUid + in: path + description: chat uid + required: true + schema: + type: string + - name: pageSize + in: query + description: page size + schema: + type: integer + format: int32 + - name: pageToken + in: query + description: page token + schema: + type: string + - name: ifAll + in: query + description: 'If true, all messages will be returned. This has higher priority over page_size and page_token.' + schema: + type: boolean + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/ListChatMessagesResponse' + '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: alpha '/v1alpha/namespaces/{namespaceId}/apps/{appId}/ai_assistant_playground/restart': post: tags: @@ -730,7 +954,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ChatBody' + $ref: '#/components/schemas/AppPublicService.ChatBody' required: true x-bodyName: body responses: @@ -5899,6 +6123,33 @@ components: type: string readOnly: true description: App represents a app. + AppPublicService.ChatBody: + required: + - catalogId + - conversationUid + - message + type: object + properties: + catalogId: + title: Catalog ID + type: string + conversationUid: + title: Conversation UID + type: string + message: + title: User message + type: string + topK: + title: 'top k, defaults to 5' + type: integer + format: int64 + llmModel: + title: 'LLM model name, defaults to `gpt-4o`' + type: string + userInstruction: + title: 'Instruction for the model to follow, defaults to `Please answer user question accurately and in the same language as the Follow-up Question.`' + type: string + description: "ChatRequest represents a request to send a message\nto a chatbot synchronously and streams back the results." AppType: enum: - APP_TYPE_AI_ASSISTANT @@ -6108,33 +6359,6 @@ components: - CATALOG_TYPE_EPHEMERAL type: string description: "- CATALOG_TYPE_PERSISTENT: PERSISTENT\n - CATALOG_TYPE_EPHEMERAL: EPHEMERAL" - ChatBody: - required: - - catalogId - - conversationUid - - message - type: object - properties: - catalogId: - title: Catalog ID - type: string - conversationUid: - title: Conversation UID - type: string - message: - title: User message - type: string - topK: - title: 'top k, defaults to 5' - type: integer - format: int64 - llmModel: - title: 'LLM model name, defaults to `gpt-4o`' - type: string - userInstruction: - title: 'Instruction for the model to follow, defaults to `Please answer user question accurately and in the same language as the Follow-up Question.`' - type: string - description: "ChatRequest represents a request to send a message\nto a chatbot synchronously and streams back the results." ChatResponse: type: object properties: @@ -6151,13 +6375,6 @@ components: $ref: '#/components/schemas/SimilarityChunk' readOnly: true description: ChatResponse contains the chatbot response. - ChatWith: - title: ChatWith enum - enum: - - CHAT_WITH_AI_ASSISTANT - - CHAT_WITH_AI_AGENT - type: string - description: "- CHAT_WITH_AI_ASSISTANT: chat with ai assistant(default)\n - CHAT_WITH_AI_AGENT: chat with ai agent" CheckNamespaceAdminResponse: type: object properties: @@ -6598,22 +6815,6 @@ components: type: string format: date-time readOnly: true - aiAgentApp: - title: agent metadata - allOf: - - $ref: '#/components/schemas/AIAgentAppMetadata' - readOnly: true - tempCatalogId: - title: temp catalog id automatically created for ai agent app - type: string - chatWith: - title: chat with - allOf: - - $ref: '#/components/schemas/ChatWith' - readOnly: true - conversationDisplayName: - title: conversation display name - type: string CreateAppBody: required: - id @@ -6682,6 +6883,26 @@ components: - $ref: '#/components/schemas/Catalog' description: The created catalog. description: CreateCatalogResponse represents a response for creating a catalog. + CreateChatBody: + title: CreateChatRequest is used to create a new chat + type: object + properties: + chatDisplayName: + title: chat display name + type: string + aiAgentApp: + title: agent metadata + allOf: + - $ref: '#/components/schemas/AIAgentAppMetadata' + CreateChatResponse: + title: CreateChatResponse returns the created chat + type: object + properties: + chat: + title: chat + allOf: + - $ref: '#/components/schemas/.Chat' + readOnly: true CreateConversationBody: title: CreateConversationRequest is used to create a new conversation required: @@ -6691,17 +6912,6 @@ components: conversationId: title: conversation id. only allow kebab case type: string - chatWith: - title: chat with(optional) default is CHAT_WITH_AI_ASSISTANT - allOf: - - $ref: '#/components/schemas/ChatWith' - conversationDisplayName: - title: conversation display name - type: string - aiAgentApp: - title: agent metadata - allOf: - - $ref: '#/components/schemas/AIAgentAppMetadata' CreateConversationResponse: title: CreateConversationResponse returns the created conversation type: object @@ -6865,6 +7075,9 @@ components: - $ref: '#/components/schemas/Catalog' description: The catalog identifier. description: DeleteCatalogResponse represents a response for deleting a catalog. + DeleteChatResponse: + title: DeleteChatResponse is empty as no content needs to be returned + type: object DeleteConversationResponse: title: DeleteConversationResponse is empty as no content needs to be returned type: object @@ -7608,6 +7821,44 @@ components: $ref: '#/components/schemas/Catalog' description: The catalogs container. description: GetCatalogsResponse represents a response for getting all catalogs from users. + ListChatMessagesResponse: + title: ListChatMessagesResponse returns a list of messages + type: object + properties: + messages: + title: messages + type: array + items: + $ref: '#/components/schemas/app.v1alpha.Message' + readOnly: true + nextPageToken: + title: next page token + type: string + readOnly: true + totalSize: + title: total size + type: integer + format: int32 + readOnly: true + ListChatsResponse: + title: ListChatsResponse returns a list of chats + type: object + properties: + chats: + title: chats + type: array + items: + $ref: '#/components/schemas/.Chat' + readOnly: true + nextPageToken: + title: next page token + type: string + readOnly: true + totalSize: + title: total size + type: integer + format: int32 + readOnly: true ListChunksResponse: type: object properties: @@ -10001,6 +10252,26 @@ components: - $ref: '#/components/schemas/Catalog' description: The updated catalog. description: UpdateCatalogResponse represents a response for updating a catalog. + UpdateChatBody: + title: UpdateChatRequest is used to update a chat + type: object + properties: + chatDisplayName: + title: chat display name + type: string + aiAgentApp: + title: ai agent app metadata + allOf: + - $ref: '#/components/schemas/AIAgentAppMetadata' + UpdateChatResponse: + title: UpdateChatResponse returns the updated chat + type: object + properties: + chat: + title: chat + allOf: + - $ref: '#/components/schemas/.Chat' + readOnly: true UpdateChunkBody: title: Create chunk response type: object @@ -10413,6 +10684,47 @@ components: $ref: '#/components/schemas/Any' description: "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use." description: "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors)." + .Chat: + title: Chat represents a chat + required: + - namespaceId + type: object + properties: + uid: + title: unique identifier of the conversation created by the system + type: string + readOnly: true + namespaceId: + title: namespace id + type: string + lastUsedCatalogUid: + title: last used catalog uid + type: string + lastUsedTopK: + title: last used top k + type: integer + format: int64 + createTime: + title: creation time of the chat + type: string + format: date-time + readOnly: true + updateTime: + title: update time of the chat + type: string + format: date-time + readOnly: true + aiAgentApp: + title: agent metadata + allOf: + - $ref: '#/components/schemas/AIAgentAppMetadata' + readOnly: true + tempCatalogId: + title: temp catalog id automatically created for ai agent app + type: string + chatDisplayName: + title: conversation display name + type: string .Chunk: type: object properties: