From 824ba7a1c41e7e04f1eab673b5028287be9e5bd8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 27 Nov 2024 15:18:04 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...AppClient.AppPublicServiceCreateAgent.g.cs | 262 +++++++ ...AppClient.AppPublicServiceDeleteAgent.g.cs | 208 +++++ ...l.AppClient.AppPublicServiceDeleteApp.g.cs | 2 +- ...ublicServiceGetPlaygroundConversation.g.cs | 2 +- ....AppClient.AppPublicServiceListAgents.g.cs | 206 +++++ ...l.AppClient.AppPublicServiceListChats.g.cs | 2 +- ...l.AppClient.AppPublicServiceListTools.g.cs | 206 +++++ ...cServiceRestartPlaygroundConversation.g.cs | 4 +- ...AppClient.AppPublicServiceUpdateAgent.g.cs | 266 +++++++ ...l.AppClient.AppPublicServiceUpdateApp.g.cs | 4 +- ....AppClient.AppPublicServiceUpdateChat.g.cs | 6 +- ...nt.AppPublicServiceUpdateConversation.g.cs | 6 - ...AppClient.AppPublicServiceCreateAgent.g.cs | 49 ++ ...AppClient.AppPublicServiceDeleteAgent.g.cs | 21 + ....IAppClient.AppPublicServiceDeleteApp.g.cs | 2 +- ...ublicServiceGetPlaygroundConversation.g.cs | 2 +- ...IAppClient.AppPublicServiceListAgents.g.cs | 19 + ....IAppClient.AppPublicServiceListChats.g.cs | 2 +- ....IAppClient.AppPublicServiceListTools.g.cs | 19 + ...cServiceRestartPlaygroundConversation.g.cs | 4 +- ...AppClient.AppPublicServiceUpdateAgent.g.cs | 49 ++ ....IAppClient.AppPublicServiceUpdateApp.g.cs | 4 +- ...IAppClient.AppPublicServiceUpdateChat.g.cs | 4 +- ...nt.AppPublicServiceUpdateConversation.g.cs | 4 - .../Generated/Instill.Models.Agent.Json.g.cs | 92 +++ .../Generated/Instill.Models.Agent.g.cs | 140 ++++ ...PublicServiceCreateAgentResponse.Json.g.cs | 92 +++ ...s.AppPublicServiceCreateAgentResponse.g.cs | 27 + ...PublicServiceDeleteAgentResponse.Json.g.cs | 92 +++ ...s.AppPublicServiceDeleteAgentResponse.g.cs | 27 + ...pPublicServiceListAgentsResponse.Json.g.cs | 92 +++ ...ls.AppPublicServiceListAgentsResponse.g.cs | 27 + ...ppPublicServiceListToolsResponse.Json.g.cs | 92 +++ ...els.AppPublicServiceListToolsResponse.g.cs | 27 + ...PublicServiceUpdateAgentResponse.Json.g.cs | 92 +++ ...s.AppPublicServiceUpdateAgentResponse.g.cs | 27 + .../Generated/Instill.Models.Chat.g.cs | 10 +- .../Instill.Models.CreateAgentBody.Json.g.cs | 92 +++ .../Instill.Models.CreateAgentBody.g.cs | 76 ++ ...still.Models.CreateAgentResponse.Json.g.cs | 92 +++ .../Instill.Models.CreateAgentResponse.g.cs | 45 ++ ...still.Models.DeleteAgentResponse.Json.g.cs | 92 +++ .../Instill.Models.DeleteAgentResponse.g.cs | 27 + ...nstill.Models.ListAgentsResponse.Json.g.cs | 92 +++ .../Instill.Models.ListAgentsResponse.g.cs | 43 + ...Instill.Models.ListToolsResponse.Json.g.cs | 92 +++ .../Instill.Models.ListToolsResponse.g.cs | 43 + .../Generated/Instill.Models.Tool.g.cs | 30 +- .../Generated/Instill.Models.ToolConfig.g.cs | 2 +- .../Instill.Models.UpdateAgentBody.Json.g.cs | 92 +++ .../Instill.Models.UpdateAgentBody.g.cs | 65 ++ ...still.Models.UpdateAgentResponse.Json.g.cs | 92 +++ .../Instill.Models.UpdateAgentResponse.g.cs | 45 ++ .../Instill.Models.UpdateChatBody.g.cs | 10 +- ...Instill.Models.UpdateConversationBody.g.cs | 20 +- .../Generated/JsonSerializerContextTypes.g.cs | 736 +++++++++--------- src/libs/Instill/openapi.yaml | 339 +++++++- 57 files changed, 3876 insertions(+), 439 deletions(-) create mode 100644 src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs create mode 100644 src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs create mode 100644 src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteAgent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs create mode 100644 src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.Agent.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.CreateAgentBody.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.ListToolsResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.g.cs diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs new file mode 100644 index 0000000..f39a39a --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs @@ -0,0 +1,262 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceCreateAgentArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + global::Instill.CreateAgentBody request); + partial void PrepareAppPublicServiceCreateAgentRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + global::Instill.CreateAgentBody request); + partial void ProcessAppPublicServiceCreateAgentResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceCreateAgentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create an agent
+ /// Creates an agent. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync( + string namespaceId, + global::Instill.CreateAgentBody request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceCreateAgentArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/agents", + 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); + PrepareAppPublicServiceCreateAgentRequest( + 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); + ProcessAppPublicServiceCreateAgentResponse( + 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); + ProcessAppPublicServiceCreateAgentResponseContent( + 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.CreateAgentResponse.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.CreateAgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Create an agent
+ /// Creates an agent. + ///
+ /// + /// + /// The agent display name. + /// + /// + /// The agent description. + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata. + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync( + string namespaceId, + string? displayName = default, + string? description = default, + global::System.Collections.Generic.IList? tags = default, + global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Instill.CreateAgentBody + { + DisplayName = displayName, + Description = description, + Tags = tags, + AiAgentApp = aiAgentApp, + }; + + return await AppPublicServiceCreateAgentAsync( + namespaceId: namespaceId, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs new file mode 100644 index 0000000..f850dd4 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs @@ -0,0 +1,208 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceDeleteAgentArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + ref string agentUid); + partial void PrepareAppPublicServiceDeleteAgentRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + string agentUid); + partial void ProcessAppPublicServiceDeleteAgentResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceDeleteAgentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete an agent
+ /// Deletes an agent. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceDeleteAgentAsync( + string namespaceId, + string agentUid, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceDeleteAgentArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + agentUid: ref agentUid); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/agents/{agentUid}", + 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); + PrepareAppPublicServiceDeleteAgentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + agentUid: agentUid); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceDeleteAgentResponse( + 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); + ProcessAppPublicServiceDeleteAgentResponseContent( + 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.AppPublicServiceDeleteApp.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs index 507f1aa..b1d1599 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs @@ -24,7 +24,7 @@ partial void ProcessAppPublicServiceDeleteAppResponseContent( ref string content); /// - /// Delete a app
+ /// Delete an app
/// Deletes an app. ///
/// diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs index bf702c9..d6caed1 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs @@ -25,7 +25,7 @@ partial void ProcessAppPublicServiceGetPlaygroundConversationResponseContent( /// /// Get Playground Conversation
- /// Returns the latest conversation of auth user(e.g. login user and api key user). + /// Returns the latest conversation for the authenticated user (e.g., logged-in user or API key user). ///
/// /// diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs new file mode 100644 index 0000000..fbfd7dc --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs @@ -0,0 +1,206 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceListAgentsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId); + partial void PrepareAppPublicServiceListAgentsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId); + partial void ProcessAppPublicServiceListAgentsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceListAgentsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List all agents info
+ /// Returns a paginated list of agents. + ///
+ /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceListAgentsAsync( + string namespaceId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceListAgentsArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/agents", + baseUri: HttpClient.BaseAddress); + 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); + PrepareAppPublicServiceListAgentsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceListAgentsResponse( + 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); + ProcessAppPublicServiceListAgentsResponseContent( + 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.ListAgentsResponse.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.ListAgentsResponse.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 index 3ebc898..731de9e 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs @@ -31,7 +31,7 @@ partial void ProcessAppPublicServiceListChatsResponseContent( /// /// List chats
- /// Returns a paginated list of conversations. + /// Returns a list of chats. ///
/// /// diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs new file mode 100644 index 0000000..bdd6f48 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs @@ -0,0 +1,206 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceListToolsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId); + partial void PrepareAppPublicServiceListToolsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId); + partial void ProcessAppPublicServiceListToolsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceListToolsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List all tools
+ /// Returns a list of tools. + ///
+ /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceListToolsAsync( + string namespaceId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceListToolsArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/tools", + baseUri: HttpClient.BaseAddress); + 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); + PrepareAppPublicServiceListToolsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAppPublicServiceListToolsResponse( + 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); + ProcessAppPublicServiceListToolsResponseContent( + 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.ListToolsResponse.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.ListToolsResponse.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.AppPublicServiceRestartPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs index 92cf86a..5dd5c3c 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs @@ -25,8 +25,8 @@ partial void ProcessAppPublicServiceRestartPlaygroundConversationResponseContent /// /// Restart Playground Conversation
- /// Creates a new conversation and uses the auth user UID as creator UID and
- /// auto-generates a new conversation ID on the behalf of auth user. + /// Creates a new conversation using the authenticated user's UID as creator and
+ /// auto-generates a new conversation ID on behalf of the authenticated user. ///
/// /// diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs new file mode 100644 index 0000000..9236cde --- /dev/null +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs @@ -0,0 +1,266 @@ + +#nullable enable + +namespace Instill +{ + public partial class AppClient + { + partial void PrepareAppPublicServiceUpdateAgentArguments( + global::System.Net.Http.HttpClient httpClient, + ref string namespaceId, + ref string agentUid, + global::Instill.UpdateAgentBody request); + partial void PrepareAppPublicServiceUpdateAgentRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string namespaceId, + string agentUid, + global::Instill.UpdateAgentBody request); + partial void ProcessAppPublicServiceUpdateAgentResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAppPublicServiceUpdateAgentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update an agent
+ /// Updates the information of an agent. + ///
+ /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync( + string namespaceId, + string agentUid, + global::Instill.UpdateAgentBody request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareAppPublicServiceUpdateAgentArguments( + httpClient: HttpClient, + namespaceId: ref namespaceId, + agentUid: ref agentUid, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/agents/{agentUid}", + 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); + PrepareAppPublicServiceUpdateAgentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + namespaceId: namespaceId, + agentUid: agentUid, + 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); + ProcessAppPublicServiceUpdateAgentResponse( + 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); + ProcessAppPublicServiceUpdateAgentResponseContent( + 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.UpdateAgentResponse.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.UpdateAgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Update an agent
+ /// Updates the information of an agent. + ///
+ /// + /// + /// + /// The agent description. + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata. + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + public async global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync( + string namespaceId, + string agentUid, + string? description = default, + global::System.Collections.Generic.IList? tags = default, + global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Instill.UpdateAgentBody + { + Description = description, + Tags = tags, + AiAgentApp = aiAgentApp, + }; + + return await AppPublicServiceUpdateAgentAsync( + namespaceId: namespaceId, + agentUid: agentUid, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs index c4f88ed..edadd3d 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs @@ -26,7 +26,7 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent( ref string content); /// - /// Update a app info
+ /// Update an app's information
/// Updates the information of an app. ///
/// @@ -224,7 +224,7 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent( } /// - /// Update a app info
+ /// Update an app's information
/// Updates the information of an app. ///
/// diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs index 5a8bfa8..ba70bd0 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs @@ -230,7 +230,7 @@ partial void ProcessAppPublicServiceUpdateChatResponseContent( /// /// /// - /// + /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -238,13 +238,13 @@ partial void ProcessAppPublicServiceUpdateChatResponseContent( string namespaceId, string chatUid, string? chatDisplayName = default, - global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::Instill.AIAgentAppMetadata? aiAgentMetadata = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Instill.UpdateChatBody { ChatDisplayName = chatDisplayName, - AiAgentApp = aiAgentApp, + AiAgentMetadata = aiAgentMetadata, }; return await AppPublicServiceUpdateChatAsync( diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs index e68a026..bb163ef 100644 --- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs @@ -239,8 +239,6 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent( /// /// /// - /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -251,8 +249,6 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent( string? newConversationId = default, string? lastUsedCatalogUid = default, long? lastUsedTopK = default, - global::Instill.AIAgentAppMetadata? aiAgentApp = default, - string? conversationDisplayName = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Instill.UpdateConversationBody @@ -260,8 +256,6 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent( NewConversationId = newConversationId, LastUsedCatalogUid = lastUsedCatalogUid, LastUsedTopK = lastUsedTopK, - AiAgentApp = aiAgentApp, - ConversationDisplayName = conversationDisplayName, }; return await AppPublicServiceUpdateConversationAsync( diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs new file mode 100644 index 0000000..6a7349f --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// Create an agent
+ /// Creates an agent. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync( + string namespaceId, + global::Instill.CreateAgentBody request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Create an agent
+ /// Creates an agent. + ///
+ /// + /// + /// The agent display name. + /// + /// + /// The agent description. + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata. + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync( + string namespaceId, + string? displayName = default, + string? description = default, + global::System.Collections.Generic.IList? tags = 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.AppPublicServiceDeleteAgent.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteAgent.g.cs new file mode 100644 index 0000000..98f41bb --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteAgent.g.cs @@ -0,0 +1,21 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// Delete an agent
+ /// Deletes an agent. + ///
+ /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceDeleteAgentAsync( + string namespaceId, + string agentUid, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs index 0760e52..d394856 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs @@ -5,7 +5,7 @@ namespace Instill public partial interface IAppClient { /// - /// Delete a app
+ /// Delete an app
/// Deletes an app. ///
/// diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs index 84fdfe2..282d0e2 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs @@ -6,7 +6,7 @@ public partial interface IAppClient { /// /// Get Playground Conversation
- /// Returns the latest conversation of auth user(e.g. login user and api key user). + /// Returns the latest conversation for the authenticated user (e.g., logged-in user or API key user). ///
/// /// diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs new file mode 100644 index 0000000..5e0d49e --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs @@ -0,0 +1,19 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// List all agents info
+ /// Returns a paginated list of agents. + ///
+ /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceListAgentsAsync( + string namespaceId, + 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 index 6dc04bf..d6f8d13 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs @@ -6,7 +6,7 @@ public partial interface IAppClient { /// /// List chats
- /// Returns a paginated list of conversations. + /// Returns a list of chats. ///
/// /// diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs new file mode 100644 index 0000000..863b743 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs @@ -0,0 +1,19 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// List all tools
+ /// Returns a list of tools. + ///
+ /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceListToolsAsync( + string namespaceId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs index 7ae01b7..c0c87fb 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs @@ -6,8 +6,8 @@ public partial interface IAppClient { /// /// Restart Playground Conversation
- /// Creates a new conversation and uses the auth user UID as creator UID and
- /// auto-generates a new conversation ID on the behalf of auth user. + /// Creates a new conversation using the authenticated user's UID as creator and
+ /// auto-generates a new conversation ID on behalf of the authenticated user. ///
/// /// diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs new file mode 100644 index 0000000..262726b --- /dev/null +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace Instill +{ + public partial interface IAppClient + { + /// + /// Update an agent
+ /// Updates the information of an agent. + ///
+ /// + /// + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync( + string namespaceId, + string agentUid, + global::Instill.UpdateAgentBody request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Update an agent
+ /// Updates the information of an agent. + ///
+ /// + /// + /// + /// The agent description. + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata. + /// + /// The token to cancel the operation with + /// + [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] + global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync( + string namespaceId, + string agentUid, + string? description = default, + global::System.Collections.Generic.IList? tags = 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.AppPublicServiceUpdateApp.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs index 444675a..487281d 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs @@ -5,7 +5,7 @@ namespace Instill public partial interface IAppClient { /// - /// Update a app info
+ /// Update an app's information
/// Updates the information of an app. ///
/// @@ -21,7 +21,7 @@ public partial interface IAppClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update a app info
+ /// Update an app's information
/// Updates the information of an app. ///
/// diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs index 376db5d..95fbe6f 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs @@ -27,7 +27,7 @@ public partial interface IAppClient /// /// /// - /// + /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -35,7 +35,7 @@ public partial interface IAppClient string namespaceId, string chatUid, string? chatDisplayName = default, - global::Instill.AIAgentAppMetadata? aiAgentApp = default, + global::Instill.AIAgentAppMetadata? aiAgentMetadata = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs index cc11ad8..3017895 100644 --- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs +++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs @@ -32,8 +32,6 @@ public partial interface IAppClient /// /// /// - /// - /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")] @@ -44,8 +42,6 @@ public partial interface IAppClient string? newConversationId = default, string? lastUsedCatalogUid = default, long? lastUsedTopK = default, - global::Instill.AIAgentAppMetadata? aiAgentApp = default, - string? conversationDisplayName = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs new file mode 100644 index 0000000..a4958a0 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class Agent + { + /// + /// 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.Agent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.Agent), + jsonSerializerContext) as global::Instill.Agent; + } + + /// + /// 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.Agent? 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.Agent), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.Agent; + } + + /// + /// 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.Agent.g.cs b/src/libs/Instill/Generated/Instill.Models.Agent.g.cs new file mode 100644 index 0000000..4989c9a --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.Agent.g.cs @@ -0,0 +1,140 @@ + +#nullable enable + +namespace Instill +{ + /// + /// Agent represents a agent. + /// + public sealed partial class Agent + { + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agentUid")] + public string? AgentUid { get; set; } + + /// + /// The agent display name. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DisplayName { get; set; } + + /// + /// The agent description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// The namespace of the agent.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("namespaceUid")] + public string? NamespaceUid { get; set; } + + /// + /// The agent tags. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tags")] + public global::System.Collections.Generic.IList? Tags { get; set; } + + /// + /// The agent metadata.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentMetadata")] + public global::Instill.AIAgentAppMetadata? AiAgentMetadata { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("creatorUid")] + public string? CreatorUid { get; set; } + + /// + /// The creation time of the agent.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public global::System.DateTime? CreateTime { get; set; } + + /// + /// The last update time of the agent.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public global::System.DateTime? UpdateTime { 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 + /// + /// + /// The agent display name. + /// + /// + /// The agent description. + /// + /// + /// The namespace of the agent.
+ /// Included only in responses + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata.
+ /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// The creation time of the agent.
+ /// Included only in responses + /// + /// + /// The last update time of the agent.
+ /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public Agent( + string displayName, + string? agentUid, + string? description, + string? namespaceUid, + global::System.Collections.Generic.IList? tags, + global::Instill.AIAgentAppMetadata? aiAgentMetadata, + string? creatorUid, + global::System.DateTime? createTime, + global::System.DateTime? updateTime) + { + this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName)); + this.AgentUid = agentUid; + this.Description = description; + this.NamespaceUid = namespaceUid; + this.Tags = tags; + this.AiAgentMetadata = aiAgentMetadata; + this.CreatorUid = creatorUid; + this.CreateTime = createTime; + this.UpdateTime = updateTime; + } + + /// + /// Initializes a new instance of the class. + /// + public Agent() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs new file mode 100644 index 0000000..5512ad8 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceCreateAgentResponse + { + /// + /// 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.AppPublicServiceCreateAgentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceCreateAgentResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceCreateAgentResponse; + } + + /// + /// 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.AppPublicServiceCreateAgentResponse? 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.AppPublicServiceCreateAgentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceCreateAgentResponse; + } + + /// + /// 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.AppPublicServiceCreateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.g.cs new file mode 100644 index 0000000..1171791 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceCreateAgentResponse + { + + /// + /// 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 AppPublicServiceCreateAgentResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs new file mode 100644 index 0000000..8aabbc6 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceDeleteAgentResponse + { + /// + /// 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.AppPublicServiceDeleteAgentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceDeleteAgentResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceDeleteAgentResponse; + } + + /// + /// 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.AppPublicServiceDeleteAgentResponse? 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.AppPublicServiceDeleteAgentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceDeleteAgentResponse; + } + + /// + /// 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.AppPublicServiceDeleteAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.g.cs new file mode 100644 index 0000000..d106f18 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceDeleteAgentResponse + { + + /// + /// 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 AppPublicServiceDeleteAgentResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs new file mode 100644 index 0000000..bd42276 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceListAgentsResponse + { + /// + /// 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.AppPublicServiceListAgentsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceListAgentsResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceListAgentsResponse; + } + + /// + /// 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.AppPublicServiceListAgentsResponse? 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.AppPublicServiceListAgentsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceListAgentsResponse; + } + + /// + /// 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.AppPublicServiceListAgentsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.g.cs new file mode 100644 index 0000000..b8dfd50 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceListAgentsResponse + { + + /// + /// 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 AppPublicServiceListAgentsResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs new file mode 100644 index 0000000..f5aa059 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceListToolsResponse + { + /// + /// 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.AppPublicServiceListToolsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceListToolsResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceListToolsResponse; + } + + /// + /// 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.AppPublicServiceListToolsResponse? 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.AppPublicServiceListToolsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceListToolsResponse; + } + + /// + /// 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.AppPublicServiceListToolsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.g.cs new file mode 100644 index 0000000..ae96c3a --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceListToolsResponse + { + + /// + /// 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 AppPublicServiceListToolsResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs new file mode 100644 index 0000000..ce806d1 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class AppPublicServiceUpdateAgentResponse + { + /// + /// 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.AppPublicServiceUpdateAgentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.AppPublicServiceUpdateAgentResponse), + jsonSerializerContext) as global::Instill.AppPublicServiceUpdateAgentResponse; + } + + /// + /// 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.AppPublicServiceUpdateAgentResponse? 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.AppPublicServiceUpdateAgentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceUpdateAgentResponse; + } + + /// + /// 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.AppPublicServiceUpdateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.g.cs new file mode 100644 index 0000000..0f5cf48 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class AppPublicServiceUpdateAgentResponse + { + + /// + /// 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 AppPublicServiceUpdateAgentResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.Chat.g.cs b/src/libs/Instill/Generated/Instill.Models.Chat.g.cs index e95d7ab..3c93455 100644 --- a/src/libs/Instill/Generated/Instill.Models.Chat.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Chat.g.cs @@ -48,8 +48,8 @@ public sealed partial class Chat /// /// Included only in responses /// - [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] - public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentMetadata")] + public global::Instill.AIAgentAppMetadata? AiAgentMetadata { get; set; } /// /// @@ -84,7 +84,7 @@ public sealed partial class Chat /// /// Included only in responses /// - /// + /// /// Included only in responses /// /// @@ -97,7 +97,7 @@ public Chat( long? lastUsedTopK, global::System.DateTime? createTime, global::System.DateTime? updateTime, - global::Instill.AIAgentAppMetadata? aiAgentApp, + global::Instill.AIAgentAppMetadata? aiAgentMetadata, string? tempCatalogId, string? chatDisplayName) { @@ -107,7 +107,7 @@ public Chat( this.LastUsedTopK = lastUsedTopK; this.CreateTime = createTime; this.UpdateTime = updateTime; - this.AiAgentApp = aiAgentApp; + this.AiAgentMetadata = aiAgentMetadata; this.TempCatalogId = tempCatalogId; this.ChatDisplayName = chatDisplayName; } diff --git a/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs new file mode 100644 index 0000000..8d4c652 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class CreateAgentBody + { + /// + /// 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.CreateAgentBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.CreateAgentBody), + jsonSerializerContext) as global::Instill.CreateAgentBody; + } + + /// + /// 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.CreateAgentBody? 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.CreateAgentBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.CreateAgentBody; + } + + /// + /// 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.CreateAgentBody.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.g.cs new file mode 100644 index 0000000..5a3abed --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace Instill +{ + /// + /// CreateAgentRequest represents a request to create a agent. + /// + public sealed partial class CreateAgentBody + { + /// + /// The agent display name. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// The agent description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// The agent tags. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tags")] + public global::System.Collections.Generic.IList? Tags { get; set; } + + /// + /// The agent metadata. + /// + [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. + /// + /// + /// The agent display name. + /// + /// + /// The agent description. + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CreateAgentBody( + string? displayName, + string? description, + global::System.Collections.Generic.IList? tags, + global::Instill.AIAgentAppMetadata? aiAgentApp) + { + this.DisplayName = displayName; + this.Description = description; + this.Tags = tags; + this.AiAgentApp = aiAgentApp; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAgentBody() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs new file mode 100644 index 0000000..92730f0 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class CreateAgentResponse + { + /// + /// 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.CreateAgentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.CreateAgentResponse), + jsonSerializerContext) as global::Instill.CreateAgentResponse; + } + + /// + /// 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.CreateAgentResponse? 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.CreateAgentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.CreateAgentResponse; + } + + /// + /// 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.CreateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.g.cs new file mode 100644 index 0000000..445840b --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Instill +{ + /// + /// CreateAgentResponse represents a response for creating a agent. + /// + public sealed partial class CreateAgentResponse + { + /// + /// The created agent.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + public global::Instill.Agent? Agent { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The created agent.
+ /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CreateAgentResponse( + global::Instill.Agent? agent) + { + this.Agent = agent; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAgentResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs new file mode 100644 index 0000000..8ac9c79 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class DeleteAgentResponse + { + /// + /// 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.DeleteAgentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.DeleteAgentResponse), + jsonSerializerContext) as global::Instill.DeleteAgentResponse; + } + + /// + /// 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.DeleteAgentResponse? 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.DeleteAgentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.DeleteAgentResponse; + } + + /// + /// 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.DeleteAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.g.cs new file mode 100644 index 0000000..88fd245 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace Instill +{ + /// + /// DeleteAgentResponse represents a response for deleting a agent. + /// + public sealed partial class DeleteAgentResponse + { + + /// + /// 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 DeleteAgentResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs new file mode 100644 index 0000000..c043c3b --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class ListAgentsResponse + { + /// + /// 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.ListAgentsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.ListAgentsResponse), + jsonSerializerContext) as global::Instill.ListAgentsResponse; + } + + /// + /// 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.ListAgentsResponse? 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.ListAgentsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListAgentsResponse; + } + + /// + /// 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.ListAgentsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.g.cs new file mode 100644 index 0000000..6d97074 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace Instill +{ + /// + /// ListAgentsResponse represents a response for listing agents. + /// + public sealed partial class ListAgentsResponse + { + /// + /// The agents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agents")] + public global::System.Collections.Generic.IList? Agents { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The agents. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ListAgentsResponse( + global::System.Collections.Generic.IList? agents) + { + this.Agents = agents; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentsResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs new file mode 100644 index 0000000..c4cb59d --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class ListToolsResponse + { + /// + /// 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.ListToolsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.ListToolsResponse), + jsonSerializerContext) as global::Instill.ListToolsResponse; + } + + /// + /// 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.ListToolsResponse? 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.ListToolsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListToolsResponse; + } + + /// + /// 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.ListToolsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.g.cs new file mode 100644 index 0000000..f8c0ed6 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace Instill +{ + /// + /// ListToolsResponse represents a response for listing tools. + /// + public sealed partial class ListToolsResponse + { + /// + /// The tools. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The tools. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ListToolsResponse( + global::System.Collections.Generic.IList? tools) + { + this.Tools = tools; + } + + /// + /// Initializes a new instance of the class. + /// + public ListToolsResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.Tool.g.cs b/src/libs/Instill/Generated/Instill.Models.Tool.g.cs index 6e260b1..05c5bb1 100644 --- a/src/libs/Instill/Generated/Instill.Models.Tool.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Tool.g.cs @@ -9,17 +9,22 @@ namespace Instill public sealed partial class Tool { /// - /// The tool name. e.g. ["preset/pipeline@v1.0.0", "preset/pipeline-2@v2.0.0"]. + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pipelineId")] + public string? PipelineId { get; set; } + + /// + /// The tool name. /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public string? Name { get; set; } /// - /// + /// The tool connection key(variable) and value(id). /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] - public object? Config { get; set; } + public global::System.Collections.Generic.Dictionary? Config { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,16 +35,21 @@ public sealed partial class Tool /// /// Initializes a new instance of the class. /// + /// /// - /// The tool name. e.g. ["preset/pipeline@v1.0.0", "preset/pipeline-2@v2.0.0"]. + /// The tool name. + /// + /// + /// The tool connection key(variable) and value(id). /// - /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public Tool( - string name, - object? config) + string? pipelineId, + string? name, + global::System.Collections.Generic.Dictionary? config) { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.PipelineId = pipelineId; + this.Name = name; this.Config = config; } diff --git a/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs b/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs index 39a6423..fa81754 100644 --- a/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs @@ -4,7 +4,7 @@ namespace Instill { /// - /// + /// The tool connection key(variable) and value(id). /// public sealed partial class ToolConfig { diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs new file mode 100644 index 0000000..d1f4731 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class UpdateAgentBody + { + /// + /// 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.UpdateAgentBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.UpdateAgentBody), + jsonSerializerContext) as global::Instill.UpdateAgentBody; + } + + /// + /// 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.UpdateAgentBody? 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.UpdateAgentBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.UpdateAgentBody; + } + + /// + /// 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.UpdateAgentBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.g.cs new file mode 100644 index 0000000..238e7ac --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Instill +{ + /// + /// UpdateAgentRequest represents a request to update a agent. + /// + public sealed partial class UpdateAgentBody + { + /// + /// The agent description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// The agent tags. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tags")] + public global::System.Collections.Generic.IList? Tags { get; set; } + + /// + /// The agent metadata. + /// + [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. + /// + /// + /// The agent description. + /// + /// + /// The agent tags. + /// + /// + /// The agent metadata. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UpdateAgentBody( + string? description, + global::System.Collections.Generic.IList? tags, + global::Instill.AIAgentAppMetadata? aiAgentApp) + { + this.Description = description; + this.Tags = tags; + this.AiAgentApp = aiAgentApp; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAgentBody() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs new file mode 100644 index 0000000..f653e44 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Instill +{ + public sealed partial class UpdateAgentResponse + { + /// + /// 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.UpdateAgentResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Instill.UpdateAgentResponse), + jsonSerializerContext) as global::Instill.UpdateAgentResponse; + } + + /// + /// 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.UpdateAgentResponse? 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.UpdateAgentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Instill.UpdateAgentResponse; + } + + /// + /// 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.UpdateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.g.cs new file mode 100644 index 0000000..74cc21f --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Instill +{ + /// + /// UpdateAgentResponse represents a response for updating a agent. + /// + public sealed partial class UpdateAgentResponse + { + /// + /// The updated agent.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + public global::Instill.Agent? Agent { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The updated agent.
+ /// Included only in responses + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UpdateAgentResponse( + global::Instill.Agent? agent) + { + this.Agent = agent; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAgentResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs index 30d95df..078db91 100644 --- a/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs @@ -17,8 +17,8 @@ public sealed partial class UpdateChatBody /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] - public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentMetadata")] + public global::Instill.AIAgentAppMetadata? AiAgentMetadata { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,14 +30,14 @@ public sealed partial class UpdateChatBody /// Initializes a new instance of the class. /// /// - /// + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public UpdateChatBody( string? chatDisplayName, - global::Instill.AIAgentAppMetadata? aiAgentApp) + global::Instill.AIAgentAppMetadata? aiAgentMetadata) { this.ChatDisplayName = chatDisplayName; - this.AiAgentApp = aiAgentApp; + this.AiAgentMetadata = aiAgentMetadata; } /// diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs index dee658a..f00e6e4 100644 --- a/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs @@ -26,18 +26,6 @@ public sealed partial class UpdateConversationBody [global::System.Text.Json.Serialization.JsonPropertyName("lastUsedTopK")] public long? LastUsedTopK { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")] - public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationDisplayName")] - public string? ConversationDisplayName { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,21 +38,15 @@ public sealed partial class UpdateConversationBody /// /// /// - /// - /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public UpdateConversationBody( string? newConversationId, string? lastUsedCatalogUid, - long? lastUsedTopK, - global::Instill.AIAgentAppMetadata? aiAgentApp, - string? conversationDisplayName) + long? lastUsedTopK) { this.NewConversationId = newConversationId; this.LastUsedCatalogUid = lastUsedCatalogUid; this.LastUsedTopK = lastUsedTopK; - this.AiAgentApp = aiAgentApp; - this.ConversationDisplayName = conversationDisplayName; } /// diff --git a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs index e2781b7..ea969c2 100644 --- a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs @@ -34,7 +34,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public object? Type4 { get; set; } + public global::System.Collections.Generic.Dictionary? Type4 { get; set; } /// /// /// @@ -54,1406 +54,1438 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Instill.Any? Type9 { get; set; } + public global::Instill.Agent? Type9 { get; set; } /// /// /// - public global::Instill.ApiToken? Type10 { get; set; } + public global::System.DateTime? Type10 { get; set; } /// /// /// - public global::System.DateTime? Type11 { get; set; } + public global::Instill.Any? Type11 { get; set; } /// /// /// - public global::Instill.ApiTokenState? Type12 { get; set; } + public object? Type12 { get; set; } /// /// /// - public global::Instill.App? Type13 { get; set; } + public global::Instill.ApiToken? Type13 { get; set; } /// /// /// - public global::Instill.AppType? Type14 { get; set; } + public global::Instill.ApiTokenState? Type14 { get; set; } /// /// /// - public global::Instill.AppPublicServiceChatBody? Type15 { get; set; } + public global::Instill.App? Type15 { get; set; } /// /// /// - public long? Type16 { get; set; } + public global::Instill.AppType? Type16 { get; set; } /// /// /// - public global::Instill.AuthenticatedUser? Type17 { get; set; } + public global::Instill.AppPublicServiceChatBody? Type17 { get; set; } /// /// /// - public bool? Type18 { get; set; } + public long? Type18 { get; set; } /// /// /// - public global::Instill.OnboardingStatus? Type19 { get; set; } + public global::Instill.AuthenticatedUser? Type19 { get; set; } /// /// /// - public global::Instill.UserProfile? Type20 { get; set; } + public bool? Type20 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type21 { get; set; } + public global::Instill.OnboardingStatus? Type21 { get; set; } /// /// /// - public global::Instill.Catalog? Type22 { get; set; } + public global::Instill.UserProfile? Type22 { get; set; } /// /// /// - public global::Instill.CatalogRun? Type23 { get; set; } + public global::Instill.Catalog? Type23 { get; set; } /// /// /// - public global::Instill.CatalogRunAction? Type24 { get; set; } + public global::Instill.CatalogRun? Type24 { get; set; } /// /// /// - public global::Instill.RunStatus? Type25 { get; set; } + public global::Instill.CatalogRunAction? Type25 { get; set; } /// /// /// - public global::Instill.RunSource? Type26 { get; set; } + public global::Instill.RunStatus? Type26 { get; set; } /// /// /// - public global::Instill.CatalogType? Type27 { get; set; } + public global::Instill.RunSource? Type27 { get; set; } /// /// /// - public global::Instill.ChatResponse? Type28 { get; set; } + public global::Instill.CatalogType? Type28 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type29 { get; set; } + public global::Instill.ChatResponse? Type29 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type30 { get; set; } + public global::System.Collections.Generic.IList? Type30 { get; set; } /// /// /// - public global::Instill.SimilarityChunk? Type31 { get; set; } + public global::System.Collections.Generic.IList? Type31 { get; set; } /// /// /// - public global::Instill.Chunk? Type32 { get; set; } + public global::Instill.SimilarityChunk? Type32 { get; set; } /// /// /// - public global::Instill.CheckNamespaceAdminResponse? Type33 { get; set; } + public global::Instill.Chunk? Type33 { get; set; } /// /// /// - public global::Instill.CheckNamespaceAdminResponseNamespace? Type34 { get; set; } + public global::Instill.CheckNamespaceAdminResponse? Type34 { get; set; } /// /// /// - public global::Instill.User? Type35 { get; set; } + public global::Instill.CheckNamespaceAdminResponseNamespace? Type35 { get; set; } /// /// /// - public global::Instill.Organization? Type36 { get; set; } + public global::Instill.User? Type36 { get; set; } /// /// /// - public global::Instill.OrganizationProfile? Type37 { get; set; } + public global::Instill.Organization? Type37 { get; set; } /// /// /// - public global::Instill.MgmtV1betaPermission? Type38 { get; set; } + public global::Instill.OrganizationProfile? Type38 { get; set; } /// /// /// - public global::Instill.CheckNamespaceByUIDAdminResponse? Type39 { get; set; } + public global::Instill.MgmtV1betaPermission? Type39 { get; set; } /// /// /// - public global::Instill.CheckNamespaceByUIDAdminResponseNamespace? Type40 { get; set; } + public global::Instill.CheckNamespaceByUIDAdminResponse? Type40 { get; set; } /// /// /// - public global::Instill.CheckNamespaceRequest? Type41 { get; set; } + public global::Instill.CheckNamespaceByUIDAdminResponseNamespace? Type41 { get; set; } /// /// /// - public global::Instill.CheckNamespaceResponse? Type42 { get; set; } + public global::Instill.CheckNamespaceRequest? Type42 { get; set; } /// /// /// - public global::Instill.CheckNamespaceResponseNamespace? Type43 { get; set; } + public global::Instill.CheckNamespaceResponse? Type43 { get; set; } /// /// /// - public global::Instill.ChunkType? Type44 { get; set; } + public global::Instill.CheckNamespaceResponseNamespace? Type44 { get; set; } /// /// /// - public global::Instill.CloneNamespacePipelineBody? Type45 { get; set; } + public global::Instill.ChunkType? Type45 { get; set; } /// /// /// - public global::Instill.Sharing? Type46 { get; set; } + public global::Instill.CloneNamespacePipelineBody? Type46 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type47 { get; set; } + public global::Instill.Sharing? Type47 { get; set; } /// /// /// - public global::Instill.SharingUser? Type48 { get; set; } + public global::System.Collections.Generic.Dictionary? Type48 { get; set; } /// /// /// - public global::Instill.Role? Type49 { get; set; } + public global::Instill.SharingUser? Type49 { get; set; } /// /// /// - public global::Instill.ShareCode? Type50 { get; set; } + public global::Instill.Role? Type50 { get; set; } /// /// /// - public global::Instill.CloneNamespacePipelineReleaseBody? Type51 { get; set; } + public global::Instill.ShareCode? Type51 { get; set; } /// /// /// - public global::Instill.ComponentDefinition? Type52 { get; set; } + public global::Instill.CloneNamespacePipelineReleaseBody? Type52 { get; set; } /// /// /// - public global::Instill.Spec? Type53 { get; set; } + public global::Instill.ComponentDefinition? Type53 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type54 { get; set; } + public global::Instill.Spec? Type54 { get; set; } /// /// /// - public global::Instill.DataSpecification? Type55 { get; set; } + public global::System.Collections.Generic.Dictionary? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type56 { get; set; } + public global::Instill.DataSpecification? Type56 { get; set; } /// /// /// - public global::Instill.EventSpecification? Type57 { get; set; } + public global::System.Collections.Generic.Dictionary? Type57 { get; set; } /// /// /// - public global::Instill.ComponentType? Type58 { get; set; } + public global::Instill.EventSpecification? Type58 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type59 { get; set; } + public global::Instill.ComponentType? Type59 { get; set; } /// /// /// - public global::Instill.ComponentTask? Type60 { get; set; } + public global::System.Collections.Generic.IList? Type60 { get; set; } /// /// /// - public global::Instill.ComponentDefinitionReleaseStage? Type61 { get; set; } + public global::Instill.ComponentTask? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::Instill.ComponentDefinitionReleaseStage? Type62 { get; set; } /// /// /// - public global::Instill.ComponentEvent? Type63 { get; set; } + public global::System.Collections.Generic.IList? Type63 { get; set; } /// /// /// - public global::Instill.ComponentDefinitionView? Type64 { get; set; } + public global::Instill.ComponentEvent? Type64 { get; set; } /// /// /// - public global::Instill.ComponentRun? Type65 { get; set; } + public global::Instill.ComponentDefinitionView? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::Instill.ComponentRun? Type66 { get; set; } /// /// /// - public global::Instill.FileReference? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::Instill.Connection? Type68 { get; set; } + public global::Instill.FileReference? Type68 { get; set; } /// /// /// - public global::Instill.Method? Type69 { get; set; } + public global::Instill.Connection? Type69 { get; set; } /// /// /// - public global::Instill.PipelineV1betaView? Type70 { get; set; } + public global::Instill.Method? Type70 { get; set; } /// /// /// - public global::Instill.Conversation? Type71 { get; set; } + public global::Instill.PipelineV1betaView? Type71 { get; set; } /// /// /// - public global::Instill.CreateAppBody? Type72 { get; set; } + public global::Instill.Conversation? Type72 { get; set; } /// /// /// - public global::Instill.CreateAppResponse? Type73 { get; set; } + public global::Instill.CreateAgentBody? Type73 { get; set; } /// /// /// - public global::Instill.CreateCatalogBody? Type74 { get; set; } + public global::Instill.CreateAgentResponse? Type74 { get; set; } /// /// /// - public global::Instill.CreateCatalogResponse? Type75 { get; set; } + public global::Instill.CreateAppBody? Type75 { get; set; } /// /// /// - public global::Instill.CreateChatBody? Type76 { get; set; } + public global::Instill.CreateAppResponse? Type76 { get; set; } /// /// /// - public global::Instill.CreateChatResponse? Type77 { get; set; } + public global::Instill.CreateCatalogBody? Type77 { get; set; } /// /// /// - public global::Instill.Chat? Type78 { get; set; } + public global::Instill.CreateCatalogResponse? Type78 { get; set; } /// /// /// - public global::Instill.CreateConversationBody? Type79 { get; set; } + public global::Instill.CreateChatBody? Type79 { get; set; } /// /// /// - public global::Instill.CreateConversationResponse? Type80 { get; set; } + public global::Instill.CreateChatResponse? Type80 { get; set; } /// /// /// - public global::Instill.CreateMessageBody? Type81 { get; set; } + public global::Instill.Chat? Type81 { get; set; } /// /// /// - public global::Instill.MessageType? Type82 { get; set; } + public global::Instill.CreateConversationBody? Type82 { get; set; } /// /// /// - public global::Instill.CreateMessageResponse? Type83 { get; set; } + public global::Instill.CreateConversationResponse? Type83 { get; set; } /// /// /// - public global::Instill.AppV1alphaMessage? Type84 { get; set; } + public global::Instill.CreateMessageBody? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type85 { get; set; } + public global::Instill.MessageType? Type85 { get; set; } /// /// /// - public global::Instill.CreateNamespaceConnectionResponse? Type86 { get; set; } + public global::Instill.CreateMessageResponse? Type86 { get; set; } /// /// /// - public global::Instill.CreateNamespaceModelResponse? Type87 { get; set; } + public global::Instill.AppV1alphaMessage? Type87 { get; set; } /// /// /// - public global::Instill.Model? Type88 { get; set; } + public global::System.Collections.Generic.IList? Type88 { get; set; } /// /// /// - public global::Instill.AITask? Type89 { get; set; } + public global::Instill.CreateNamespaceConnectionResponse? Type89 { get; set; } /// /// /// - public global::Instill.ModelVisibility? Type90 { get; set; } + public global::Instill.CreateNamespaceModelResponse? Type90 { get; set; } /// /// /// - public global::Instill.Owner? Type91 { get; set; } + public global::Instill.Model? Type91 { get; set; } /// /// /// - public global::Instill.Permission? Type92 { get; set; } + public global::Instill.AITask? Type92 { get; set; } /// /// /// - public global::Instill.ModelStats? Type93 { get; set; } + public global::Instill.ModelVisibility? Type93 { get; set; } /// /// /// - public global::Instill.CreateNamespacePipelineReleaseResponse? Type94 { get; set; } + public global::Instill.Owner? Type94 { get; set; } /// /// /// - public global::Instill.PipelineRelease? Type95 { get; set; } + public global::Instill.Permission? Type95 { get; set; } /// /// /// - public global::Instill.Endpoints? Type96 { get; set; } + public global::Instill.ModelStats? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type97 { get; set; } + public global::Instill.CreateNamespacePipelineReleaseResponse? Type97 { get; set; } /// /// /// - public global::Instill.WebhookEndpoint? Type98 { get; set; } + public global::Instill.PipelineRelease? Type98 { get; set; } /// /// /// - public global::Instill.CreateNamespacePipelineResponse? Type99 { get; set; } + public global::Instill.Endpoints? Type99 { get; set; } /// /// /// - public global::Instill.Pipeline? Type100 { get; set; } + public global::System.Collections.Generic.Dictionary? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public global::Instill.WebhookEndpoint? Type101 { get; set; } /// /// /// - public global::Instill.PipelineV1betaPermission? Type102 { get; set; } + public global::Instill.CreateNamespacePipelineResponse? Type102 { get; set; } /// /// /// - public global::Instill.PipelineVisibility? Type103 { get; set; } + public global::Instill.Pipeline? Type103 { get; set; } /// /// /// - public global::Instill.PipelineStats? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::Instill.CreateNamespaceSecretResponse? Type105 { get; set; } + public global::Instill.PipelineV1betaPermission? Type105 { get; set; } /// /// /// - public global::Instill.Secret? Type106 { get; set; } + public global::Instill.PipelineVisibility? Type106 { get; set; } /// /// /// - public global::Instill.CreateOrganizationResponse? Type107 { get; set; } + public global::Instill.PipelineStats? Type107 { get; set; } /// /// /// - public global::Instill.CreateRepositoryTagResponse? Type108 { get; set; } + public global::Instill.CreateNamespaceSecretResponse? Type108 { get; set; } /// /// /// - public global::Instill.RepositoryTag? Type109 { get; set; } + public global::Instill.Secret? Type109 { get; set; } /// /// /// - public global::Instill.CreateTokenResponse? Type110 { get; set; } + public global::Instill.CreateOrganizationResponse? Type110 { get; set; } /// /// /// - public global::Instill.CreditConsumptionChartRecord? Type111 { get; set; } + public global::Instill.CreateRepositoryTagResponse? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::Instill.RepositoryTag? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::Instill.CreateTokenResponse? Type113 { get; set; } /// /// /// - public global::Instill.DeleteCatalogFileResponse? Type114 { get; set; } + public global::Instill.CreditConsumptionChartRecord? Type114 { get; set; } /// /// /// - public global::Instill.DeleteCatalogResponse? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::Instill.ErrPipelineValidation? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::Instill.File? Type117 { get; set; } + public global::Instill.DeleteCatalogFileResponse? Type117 { get; set; } /// /// /// - public global::Instill.FileType? Type118 { get; set; } + public global::Instill.DeleteCatalogResponse? Type118 { get; set; } /// /// /// - public global::Instill.FileProcessStatus? Type119 { get; set; } + public global::Instill.ErrPipelineValidation? Type119 { get; set; } /// /// /// - public global::Instill.GetAuthenticatedUserResponse? Type120 { get; set; } + public global::Instill.File? Type120 { get; set; } /// /// /// - public global::Instill.GetAuthenticatedUserSubscriptionResponse? Type121 { get; set; } + public global::Instill.FileType? Type121 { get; set; } /// /// /// - public global::Instill.UserSubscription? Type122 { get; set; } + public global::Instill.FileProcessStatus? Type122 { get; set; } /// /// /// - public global::Instill.UserSubscriptionPlan? Type123 { get; set; } + public global::Instill.GetAuthenticatedUserResponse? Type123 { get; set; } /// /// /// - public global::Instill.StripeSubscriptionDetail? Type124 { get; set; } + public global::Instill.GetAuthenticatedUserSubscriptionResponse? Type124 { get; set; } /// /// /// - public global::Instill.StripeSubscriptionDetailStatus? Type125 { get; set; } + public global::Instill.UserSubscription? Type125 { get; set; } /// /// /// - public global::Instill.GetFileCatalogResponse? Type126 { get; set; } + public global::Instill.UserSubscriptionPlan? Type126 { get; set; } /// /// /// - public global::Instill.Metadata? Type127 { get; set; } + public global::Instill.StripeSubscriptionDetail? Type127 { get; set; } /// /// /// - public global::Instill.Text? Type128 { get; set; } + public global::Instill.StripeSubscriptionDetailStatus? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::Instill.GetFileCatalogResponse? Type129 { get; set; } /// /// /// - public global::Instill.GetFileCatalogResponseChunk? Type130 { get; set; } + public global::Instill.Metadata? Type130 { get; set; } /// /// /// - public global::Instill.GetIntegrationResponse? Type131 { get; set; } + public global::Instill.Text? Type131 { get; set; } /// /// /// - public global::Instill.Integration? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::Instill.Link? Type133 { get; set; } + public global::Instill.GetFileCatalogResponseChunk? Type133 { get; set; } /// /// /// - public global::Instill.OAuthConfig? Type134 { get; set; } + public global::Instill.GetIntegrationResponse? Type134 { get; set; } /// /// /// - public global::Instill.GetModelDefinitionResponse? Type135 { get; set; } + public global::Instill.Integration? Type135 { get; set; } /// /// /// - public global::Instill.ModelDefinition? Type136 { get; set; } + public global::Instill.Link? Type136 { get; set; } /// /// /// - public global::Instill.ReleaseStage? Type137 { get; set; } + public global::Instill.OAuthConfig? Type137 { get; set; } /// /// /// - public global::Instill.GetModelOperationResponse? Type138 { get; set; } + public global::Instill.GetModelDefinitionResponse? Type138 { get; set; } /// /// /// - public global::Instill.LongrunningOperation? Type139 { get; set; } + public global::Instill.ModelDefinition? Type139 { get; set; } /// /// /// - public global::Instill.RpcStatus? Type140 { get; set; } + public global::Instill.ReleaseStage? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Instill.GetModelOperationResponse? Type141 { get; set; } /// /// /// - public global::Instill.GetNamespaceConnectionResponse? Type142 { get; set; } + public global::Instill.LongrunningOperation? Type142 { get; set; } /// /// /// - public global::Instill.GetNamespaceLatestModelOperationResponse? Type143 { get; set; } + public global::Instill.RpcStatus? Type143 { get; set; } /// /// /// - public global::Instill.GetNamespaceModelOperationResponse? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::Instill.GetNamespaceModelResponse? Type145 { get; set; } + public global::Instill.GetNamespaceConnectionResponse? Type145 { get; set; } /// /// /// - public global::Instill.GetNamespacePipelineReleaseResponse? Type146 { get; set; } + public global::Instill.GetNamespaceLatestModelOperationResponse? Type146 { get; set; } /// /// /// - public global::Instill.GetNamespacePipelineResponse? Type147 { get; set; } + public global::Instill.GetNamespaceModelOperationResponse? Type147 { get; set; } /// /// /// - public global::Instill.GetNamespaceSecretResponse? Type148 { get; set; } + public global::Instill.GetNamespaceModelResponse? Type148 { get; set; } /// /// /// - public global::Instill.GetObjectDownloadURLResponse? Type149 { get; set; } + public global::Instill.GetNamespacePipelineReleaseResponse? Type149 { get; set; } /// /// /// - public global::Instill.AIObject? Type150 { get; set; } + public global::Instill.GetNamespacePipelineResponse? Type150 { get; set; } /// /// /// - public global::Instill.GetObjectResponse? Type151 { get; set; } + public global::Instill.GetNamespaceSecretResponse? Type151 { get; set; } /// /// /// - public global::Instill.GetObjectURLResponse? Type152 { get; set; } + public global::Instill.GetObjectDownloadURLResponse? Type152 { get; set; } /// /// /// - public global::Instill.ObjectURL? Type153 { get; set; } + public global::Instill.AIObject? Type153 { get; set; } /// /// /// - public global::Instill.GetObjectUploadURLResponse? Type154 { get; set; } + public global::Instill.GetObjectResponse? Type154 { get; set; } /// /// /// - public global::Instill.GetOperationResponse? Type155 { get; set; } + public global::Instill.GetObjectURLResponse? Type155 { get; set; } /// /// /// - public global::Instill.GetOrganizationAdminResponse? Type156 { get; set; } + public global::Instill.ObjectURL? Type156 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipResponse? Type157 { get; set; } + public global::Instill.GetObjectUploadURLResponse? Type157 { get; set; } /// /// /// - public global::Instill.OrganizationMembership? Type158 { get; set; } + public global::Instill.GetOperationResponse? Type158 { get; set; } /// /// /// - public global::Instill.MembershipState? Type159 { get; set; } + public global::Instill.GetOrganizationAdminResponse? Type159 { get; set; } /// /// /// - public global::Instill.GetOrganizationResponse? Type160 { get; set; } + public global::Instill.GetOrganizationMembershipResponse? Type160 { get; set; } /// /// /// - public global::Instill.GetOrganizationSubscriptionAdminResponse? Type161 { get; set; } + public global::Instill.OrganizationMembership? Type161 { get; set; } /// /// /// - public global::Instill.OrganizationSubscription? Type162 { get; set; } + public global::Instill.MembershipState? Type162 { get; set; } /// /// /// - public global::Instill.OrganizationSubscriptionPlan? Type163 { get; set; } + public global::Instill.GetOrganizationResponse? Type163 { get; set; } /// /// /// - public global::Instill.GetOrganizationSubscriptionResponse? Type164 { get; set; } + public global::Instill.GetOrganizationSubscriptionAdminResponse? Type164 { get; set; } /// /// /// - public global::Instill.GetPlaygroundConversationResponse? Type165 { get; set; } + public global::Instill.OrganizationSubscription? Type165 { get; set; } /// /// /// - public global::Instill.GetRemainingCreditAdminResponse? Type166 { get; set; } + public global::Instill.OrganizationSubscriptionPlan? Type166 { get; set; } /// /// /// - public global::Instill.GetRemainingCreditResponse? Type167 { get; set; } + public global::Instill.GetOrganizationSubscriptionResponse? Type167 { get; set; } /// /// /// - public global::Instill.GetRepositoryTagResponse? Type168 { get; set; } + public global::Instill.GetPlaygroundConversationResponse? Type168 { get; set; } /// /// /// - public global::Instill.GetSourceFileResponse? Type169 { get; set; } + public global::Instill.GetRemainingCreditAdminResponse? Type169 { get; set; } /// /// /// - public global::Instill.SourceFile? Type170 { get; set; } + public global::Instill.GetRemainingCreditResponse? Type170 { get; set; } /// /// /// - public global::Instill.GetTokenResponse? Type171 { get; set; } + public global::Instill.GetRepositoryTagResponse? Type171 { get; set; } /// /// /// - public global::Instill.GetUserAdminResponse? Type172 { get; set; } + public global::Instill.GetSourceFileResponse? Type172 { get; set; } /// /// /// - public global::Instill.GetUserMembershipResponse? Type173 { get; set; } + public global::Instill.SourceFile? Type173 { get; set; } /// /// /// - public global::Instill.UserMembership? Type174 { get; set; } + public global::Instill.GetTokenResponse? Type174 { get; set; } /// /// /// - public global::Instill.GetUserResponse? Type175 { get; set; } + public global::Instill.GetUserAdminResponse? Type175 { get; set; } /// /// /// - public global::Instill.GetUserSubscriptionAdminResponse? Type176 { get; set; } + public global::Instill.GetUserMembershipResponse? Type176 { get; set; } /// /// /// - public global::Instill.ListAppsResponse? Type177 { get; set; } + public global::Instill.UserMembership? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Instill.GetUserResponse? Type178 { get; set; } /// /// /// - public global::Instill.ListAvailableRegionsResponse? Type179 { get; set; } + public global::Instill.GetUserSubscriptionAdminResponse? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::Instill.ListAgentsResponse? Type180 { get; set; } /// /// /// - public global::Instill.Region? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::Instill.ListCatalogFilesFilter? Type182 { get; set; } + public global::Instill.ListAppsResponse? Type182 { get; set; } /// /// /// - public global::Instill.ListCatalogFilesResponse? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::Instill.ListAvailableRegionsResponse? Type184 { get; set; } /// /// /// - public global::Instill.ListCatalogRunsResponse? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::Instill.Region? Type186 { get; set; } /// /// /// - public global::Instill.ListCatalogsResponse? Type187 { get; set; } + public global::Instill.ListCatalogFilesFilter? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::Instill.ListCatalogFilesResponse? Type188 { get; set; } /// /// /// - public global::Instill.ListChatMessagesResponse? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::Instill.ListCatalogRunsResponse? Type190 { get; set; } /// /// /// - public global::Instill.ListChatsResponse? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::Instill.ListCatalogsResponse? Type192 { get; set; } /// /// /// - public global::Instill.ListChunksResponse? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::Instill.ListComponentDefinitionsResponse? Type194 { get; set; } + public global::Instill.ListChatMessagesResponse? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::Instill.ListComponentRunsResponse? Type196 { get; set; } + public global::Instill.ListChatsResponse? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Instill.ListConversationsResponse? Type198 { get; set; } + public global::Instill.ListChunksResponse? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type199 { get; set; } + public global::Instill.ListComponentDefinitionsResponse? Type199 { get; set; } /// /// /// - public global::Instill.ListCreditConsumptionChartRecordsResponse? Type200 { get; set; } + public global::System.Collections.Generic.IList? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::Instill.ListComponentRunsResponse? Type201 { get; set; } /// /// /// - public global::Instill.ListIntegrationsResponse? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type203 { get; set; } + public global::Instill.ListConversationsResponse? Type203 { get; set; } /// /// /// - public global::Instill.ListMessagesResponse? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::Instill.ListCreditConsumptionChartRecordsResponse? Type205 { get; set; } /// /// /// - public global::Instill.MessageSenderProfile? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::Instill.ListModelDefinitionsResponse? Type207 { get; set; } + public global::Instill.ListIntegrationsResponse? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::Instill.ListModelRunsByRequesterResponse? Type209 { get; set; } + public global::Instill.ListMessagesResponse? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::Instill.ModelRun? Type211 { get; set; } + public global::Instill.MessageSenderProfile? Type211 { get; set; } /// /// /// - public global::Instill.ListModelRunsResponse? Type212 { get; set; } + public global::Instill.ListModelDefinitionsResponse? Type212 { get; set; } /// /// /// - public global::Instill.ListModelTriggerChartRecordsResponse? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::Instill.ListModelRunsByRequesterResponse? Type214 { get; set; } /// /// /// - public global::Instill.ModelTriggerChartRecord? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::Instill.ModelRun? Type216 { get; set; } /// /// /// - public global::Instill.ListModelsAdminResponse? Type217 { get; set; } + public global::Instill.ListModelRunsResponse? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Instill.ListModelTriggerChartRecordsResponse? Type218 { get; set; } /// /// /// - public global::Instill.ListModelsResponse? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::Instill.ListNamespaceConnectionsResponse? Type220 { get; set; } + public global::Instill.ModelTriggerChartRecord? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Instill.ListNamespaceModelVersionsResponse? Type222 { get; set; } + public global::Instill.ListModelsAdminResponse? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Instill.ModelVersion? Type224 { get; set; } + public global::Instill.ListModelsResponse? Type224 { get; set; } /// /// /// - public global::Instill.State? Type225 { get; set; } + public global::Instill.ListNamespaceConnectionsResponse? Type225 { get; set; } /// /// /// - public global::Instill.ListNamespaceModelsResponse? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Instill.ListNamespacePipelineReleasesResponse? Type227 { get; set; } + public global::Instill.ListNamespaceModelVersionsResponse? Type227 { get; set; } /// /// /// - public global::Instill.ListNamespacePipelinesResponse? Type228 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::Instill.ModelVersion? Type229 { get; set; } /// /// /// - public global::Instill.ListNamespaceSecretsResponse? Type230 { get; set; } + public global::Instill.State? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Instill.ListNamespaceModelsResponse? Type231 { get; set; } /// /// /// - public global::Instill.ListOrganizationMembershipsResponse? Type232 { get; set; } + public global::Instill.ListNamespacePipelineReleasesResponse? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Instill.ListNamespacePipelinesResponse? Type233 { get; set; } /// /// /// - public global::Instill.ListOrganizationsAdminResponse? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::Instill.ListNamespaceSecretsResponse? Type235 { get; set; } /// /// /// - public global::Instill.ListOrganizationsResponse? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type236 { get; set; } /// /// /// - public global::Instill.ListPipelineIDsByConnectionIDResponse? Type237 { get; set; } + public global::Instill.ListOrganizationMembershipsResponse? Type237 { get; set; } /// /// /// - public global::Instill.ListPipelineReleasesAdminResponse? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Instill.ListPipelineRunsByRequesterResponse? Type239 { get; set; } + public global::Instill.ListOrganizationsAdminResponse? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::Instill.PipelineRun? Type241 { get; set; } + public global::Instill.ListOrganizationsResponse? Type241 { get; set; } /// /// /// - public global::Instill.ListPipelineRunsResponse? Type242 { get; set; } + public global::Instill.ListPipelineIDsByConnectionIDResponse? Type242 { get; set; } /// /// /// - public global::Instill.ListPipelineTriggerChartRecordsResponse? Type243 { get; set; } + public global::Instill.ListPipelineReleasesAdminResponse? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Instill.ListPipelineRunsByRequesterResponse? Type244 { get; set; } /// /// /// - public global::Instill.PipelineTriggerChartRecord? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::Instill.ListPipelinesAdminResponse? Type246 { get; set; } + public global::Instill.PipelineRun? Type246 { get; set; } /// /// /// - public global::Instill.ListPipelinesResponse? Type247 { get; set; } + public global::Instill.ListPipelineRunsResponse? Type247 { get; set; } /// /// /// - public global::Instill.ListRepositoryTagsResponse? Type248 { get; set; } + public global::Instill.ListPipelineTriggerChartRecordsResponse? Type248 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::Instill.ListTokensResponse? Type250 { get; set; } + public global::Instill.PipelineTriggerChartRecord? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::Instill.ListPipelinesAdminResponse? Type251 { get; set; } /// /// /// - public global::Instill.ListUserMembershipsResponse? Type252 { get; set; } + public global::Instill.ListPipelinesResponse? Type252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type253 { get; set; } + public global::Instill.ListRepositoryTagsResponse? Type253 { get; set; } /// /// /// - public global::Instill.ListUsersAdminResponse? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::Instill.ListTokensResponse? Type255 { get; set; } /// /// /// - public global::Instill.ListUsersResponse? Type256 { get; set; } + public global::System.Collections.Generic.IList? Type256 { get; set; } /// /// /// - public global::Instill.LookUpModelAdminResponse? Type257 { get; set; } + public global::Instill.ListToolsResponse? Type257 { get; set; } /// /// /// - public global::Instill.LookUpOrganizationAdminResponse? Type258 { get; set; } + public global::Instill.ListUserMembershipsResponse? Type258 { get; set; } /// /// /// - public global::Instill.LookUpPipelineAdminResponse? Type259 { get; set; } + public global::System.Collections.Generic.IList? Type259 { get; set; } /// /// /// - public global::Instill.LookUpUserAdminResponse? Type260 { get; set; } + public global::Instill.ListUsersAdminResponse? Type260 { get; set; } /// /// /// - public global::Instill.PatchAuthenticatedUserResponse? Type261 { get; set; } + public global::System.Collections.Generic.IList? Type261 { get; set; } /// /// /// - public global::Instill.PipelineView? Type262 { get; set; } + public global::Instill.ListUsersResponse? Type262 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesRequest? Type263 { get; set; } + public global::Instill.LookUpModelAdminResponse? Type263 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesResponse? Type264 { get; set; } + public global::Instill.LookUpOrganizationAdminResponse? Type264 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringBody? Type265 { get; set; } + public global::Instill.LookUpPipelineAdminResponse? Type265 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringResponse? Type266 { get; set; } + public global::Instill.LookUpUserAdminResponse? Type266 { get; set; } /// /// /// - public global::Instill.RenameNamespaceModelBody? Type267 { get; set; } + public global::Instill.PatchAuthenticatedUserResponse? Type267 { get; set; } /// /// /// - public global::Instill.RenameNamespaceModelResponse? Type268 { get; set; } + public global::Instill.PipelineView? Type268 { get; set; } /// /// /// - public global::Instill.RenameNamespacePipelineBody? Type269 { get; set; } + public global::Instill.ProcessCatalogFilesRequest? Type269 { get; set; } /// /// /// - public global::Instill.RenameNamespacePipelineResponse? Type270 { get; set; } + public global::Instill.ProcessCatalogFilesResponse? Type270 { get; set; } /// /// /// - public global::Instill.RestartPlaygroundConversationResponse? Type271 { get; set; } + public global::Instill.QuestionAnsweringBody? Type271 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchBody? Type272 { get; set; } + public global::Instill.QuestionAnsweringResponse? Type272 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchResponse? Type273 { get; set; } + public global::Instill.RenameNamespaceModelBody? Type273 { get; set; } /// /// /// - public global::Instill.SubtractCreditAdminResponse? Type274 { get; set; } + public global::Instill.RenameNamespaceModelResponse? Type274 { get; set; } /// /// /// - public global::Instill.Trace? Type275 { get; set; } + public global::Instill.RenameNamespacePipelineBody? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::Instill.RenameNamespacePipelineResponse? Type276 { get; set; } /// /// /// - public global::Instill.TraceStatus? Type277 { get; set; } + public global::Instill.RestartPlaygroundConversationResponse? Type277 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type278 { get; set; } + public global::Instill.SimilarityChunksSearchBody? Type278 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type279 { get; set; } + public global::Instill.SimilarityChunksSearchResponse? Type279 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelBody? Type280 { get; set; } + public global::Instill.SubtractCreditAdminResponse? Type280 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelResponse? Type281 { get; set; } + public global::Instill.Trace? Type281 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineBody? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::Instill.TraceStatus? Type283 { get; set; } /// /// /// - public global::Instill.TriggerData? Type284 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type284 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type285 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type285 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type286 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelBody? Type286 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineResponse? Type287 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelResponse? Type287 { get; set; } /// /// /// - public global::Instill.TriggerMetadata? Type288 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineBody? Type288 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type290 { get; set; } + public global::Instill.TriggerData? Type290 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBody? Type291 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type291 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelResponse? Type292 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type292 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type293 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineResponse? Type293 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBody? Type294 { get; set; } + public global::Instill.TriggerMetadata? Type294 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelResponse? Type295 { get; set; } + public global::System.Collections.Generic.Dictionary? Type295 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineBody? Type296 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type296 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseBody? Type297 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBody? Type297 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseResponse? Type298 { get; set; } + public global::Instill.TriggerNamespaceLatestModelResponse? Type298 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineResponse? Type299 { get; set; } + public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type299 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamBody? Type300 { get; set; } + public global::Instill.TriggerNamespaceModelBody? Type300 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type301 { get; set; } + public global::Instill.TriggerNamespaceModelResponse? Type301 { get; set; } /// /// /// - public global::Instill.UpdateAppBody? Type302 { get; set; } + public global::Instill.TriggerNamespacePipelineBody? Type302 { get; set; } /// /// /// - public global::Instill.UpdateAppResponse? Type303 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseBody? Type303 { get; set; } /// /// /// - public global::Instill.UpdateCatalogBody? Type304 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseResponse? Type304 { get; set; } /// /// /// - public global::Instill.UpdateCatalogResponse? Type305 { get; set; } + public global::Instill.TriggerNamespacePipelineResponse? Type305 { get; set; } /// /// /// - public global::Instill.UpdateChatBody? Type306 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamBody? Type306 { get; set; } /// /// /// - public global::Instill.UpdateChatResponse? Type307 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type307 { get; set; } /// /// /// - public global::Instill.UpdateChunkBody? Type308 { get; set; } + public global::Instill.UpdateAgentBody? Type308 { get; set; } /// /// /// - public global::Instill.UpdateChunkResponse? Type309 { get; set; } + public global::Instill.UpdateAgentResponse? Type309 { get; set; } /// /// /// - public global::Instill.UpdateConversationBody? Type310 { get; set; } + public global::Instill.UpdateAppBody? Type310 { get; set; } /// /// /// - public global::Instill.UpdateConversationResponse? Type311 { get; set; } + public global::Instill.UpdateAppResponse? Type311 { get; set; } /// /// /// - public global::Instill.UpdateMessageBody? Type312 { get; set; } + public global::Instill.UpdateCatalogBody? Type312 { get; set; } /// /// /// - public global::Instill.UpdateMessageResponse? Type313 { get; set; } + public global::Instill.UpdateCatalogResponse? Type313 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceConnectionResponse? Type314 { get; set; } + public global::Instill.UpdateChatBody? Type314 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceModelResponse? Type315 { get; set; } + public global::Instill.UpdateChatResponse? Type315 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineReleaseResponse? Type316 { get; set; } + public global::Instill.UpdateChunkBody? Type316 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineResponse? Type317 { get; set; } + public global::Instill.UpdateChunkResponse? Type317 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceSecretResponse? Type318 { get; set; } + public global::Instill.UpdateConversationBody? Type318 { get; set; } /// /// /// - public global::Instill.UpdateObjectResponse? Type319 { get; set; } + public global::Instill.UpdateConversationResponse? Type319 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationMembershipResponse? Type320 { get; set; } + public global::Instill.UpdateMessageBody? Type320 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationResponse? Type321 { get; set; } + public global::Instill.UpdateMessageResponse? Type321 { get; set; } /// /// /// - public global::Instill.UpdateUserMembershipResponse? Type322 { get; set; } + public global::Instill.UpdateNamespaceConnectionResponse? Type322 { get; set; } /// /// /// - public global::Instill.UploadCatalogFileResponse? Type323 { get; set; } + public global::Instill.UpdateNamespaceModelResponse? Type323 { get; set; } /// /// /// - public global::Instill.ValidateNamespacePipelineResponse? Type324 { get; set; } + public global::Instill.UpdateNamespacePipelineReleaseResponse? Type324 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type325 { get; set; } + public global::Instill.UpdateNamespacePipelineResponse? Type325 { get; set; } /// /// /// - public global::Instill.ValidateTokenResponse? Type326 { get; set; } + public global::Instill.UpdateNamespaceSecretResponse? Type326 { get; set; } /// /// /// - public global::Instill.WatchNamespaceLatestModelResponse? Type327 { get; set; } + public global::Instill.UpdateObjectResponse? Type327 { get; set; } /// /// /// - public global::Instill.WatchNamespaceModelResponse? Type328 { get; set; } + public global::Instill.UpdateOrganizationMembershipResponse? Type328 { get; set; } /// /// /// - public global::Instill.MgmtV1betaView? Type329 { get; set; } + public global::Instill.UpdateOrganizationResponse? Type329 { get; set; } /// /// /// - public global::Instill.View? Type330 { get; set; } + public global::Instill.UpdateUserMembershipResponse? Type330 { get; set; } /// /// /// - public global::Instill.AppPublicServiceListAppsAppType? Type331 { get; set; } + public global::Instill.UploadCatalogFileResponse? Type331 { get; set; } /// /// /// - public global::Instill.ListUsersView? Type332 { get; set; } + public global::Instill.ValidateNamespacePipelineResponse? Type332 { get; set; } /// /// /// - public global::Instill.GetUserView? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::Instill.ListOrganizationsView? Type334 { get; set; } + public global::Instill.ValidateTokenResponse? Type334 { get; set; } /// /// /// - public global::Instill.GetOrganizationView? Type335 { get; set; } + public global::Instill.WatchNamespaceLatestModelResponse? Type335 { get; set; } /// /// /// - public global::Instill.GetUserMembershipView? Type336 { get; set; } + public global::Instill.WatchNamespaceModelResponse? Type336 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipView? Type337 { get; set; } + public global::Instill.MgmtV1betaView? Type337 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelDefinitionsView? Type338 { get; set; } + public global::Instill.View? Type338 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelDefinitionView? Type339 { get; set; } + public global::Instill.AppPublicServiceListAppsAppType? Type339 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsView? Type340 { get; set; } + public global::Instill.ListUsersView? Type340 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsVisibility? Type341 { get; set; } + public global::Instill.GetUserView? Type341 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsView? Type342 { get; set; } + public global::Instill.ListOrganizationsView? Type342 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type343 { get; set; } + public global::Instill.GetOrganizationView? Type343 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelView? Type344 { get; set; } + public global::Instill.GetUserMembershipView? Type344 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type345 { get; set; } + public global::Instill.GetOrganizationMembershipView? Type345 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type346 { get; set; } + public global::Instill.ModelPublicServiceListModelDefinitionsView? Type346 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelOperationView? Type347 { get; set; } + public global::Instill.ModelPublicServiceGetModelDefinitionView? Type347 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesView? Type348 { get; set; } + public global::Instill.ModelPublicServiceListModelsView? Type348 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type349 { get; set; } + public global::Instill.ModelPublicServiceListModelsVisibility? Type349 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type350 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsView? Type350 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type351 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type351 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type352 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelView? Type352 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type353 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type353 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type354 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type354 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type355 { get; set; } + public global::Instill.ModelPublicServiceGetModelOperationView? Type355 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListComponentRunsView? Type356 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesView? Type356 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type357 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type357 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetIntegrationView? Type358 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type358 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type359 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type359 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type360 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type361 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type362 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type363 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceListComponentRunsView? Type364 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type365 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceGetIntegrationView? Type366 { get; set; } + /// + /// + /// + public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type367 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml index 80a994a..4e3d700 100644 --- a/src/libs/Instill/openapi.yaml +++ b/src/libs/Instill/openapi.yaml @@ -98,7 +98,7 @@ paths: put: tags: - 🍎 App - summary: Update a app info + summary: Update an app's information description: Updates the information of an app. operationId: AppPublicService_UpdateApp parameters: @@ -143,7 +143,7 @@ paths: delete: tags: - 🍎 App - summary: Delete a app + summary: Delete an app description: Deletes an app. operationId: AppPublicService_DeleteApp parameters: @@ -384,12 +384,168 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: alpha + '/v1alpha/namespaces/{namespaceId}/agents': + get: + tags: + - 🍎 App + summary: List all agents info + description: Returns a paginated list of agents. + operationId: AppPublicService_ListAgents + parameters: + - name: namespaceId + in: path + description: The app's owner(namespaces). + required: true + schema: + type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/ListAgentsResponse' + '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 an agent + description: Creates an agent. + operationId: AppPublicService_CreateAgent + parameters: + - name: namespaceId + in: path + description: The app's owner(namespaces). + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAgentBody' + required: true + x-bodyName: body + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAgentResponse' + '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}/agents/{agentUid}': + put: + tags: + - 🍎 App + summary: Update an agent + description: Updates the information of an agent. + operationId: AppPublicService_UpdateAgent + parameters: + - name: namespaceId + in: path + description: The app's owner(namespaces). + required: true + schema: + type: string + - name: agentUid + in: path + description: The agent uid. + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAgentBody' + required: true + x-bodyName: body + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAgentResponse' + '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 an agent + description: Deletes an agent. + operationId: AppPublicService_DeleteAgent + parameters: + - name: namespaceId + in: path + description: The app's owner(namespaces). + required: true + schema: + type: string + - name: agentUid + in: path + description: The agent uid. + required: true + schema: + type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteAgentResponse' + '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': get: tags: - 🍎 App summary: List chats - description: Returns a paginated list of conversations. + description: Returns a list of chats. operationId: AppPublicService_ListChats parameters: - name: namespaceId @@ -802,7 +958,7 @@ paths: tags: - 🍎 App summary: Get Playground Conversation - description: Returns the latest conversation of auth user(e.g. login user and api key user). + description: 'Returns the latest conversation for the authenticated user (e.g., logged-in user or API key user).' operationId: AppPublicService_GetPlaygroundConversation parameters: - name: namespaceId @@ -836,6 +992,39 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: alpha + '/v1alpha/namespaces/{namespaceId}/tools': + get: + tags: + - 🍎 App + summary: List all tools + description: Returns a list of tools. + operationId: AppPublicService_ListTools + parameters: + - name: namespaceId + in: path + description: The app's owner(namespaces). + required: true + schema: + type: string + responses: + '200': + description: A successful response. + content: + application/json: + schema: + $ref: '#/components/schemas/ListToolsResponse' + '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}/messages': get: tags: @@ -896,7 +1085,7 @@ paths: tags: - 🍎 App summary: Restart Playground Conversation - description: "Creates a new conversation and uses the auth user UID as creator UID and\nauto-generates a new conversation ID on the behalf of auth user." + description: "Creates a new conversation using the authenticated user's UID as creator and\nauto-generates a new conversation ID on behalf of the authenticated user." operationId: AppPublicService_RestartPlaygroundConversation parameters: - name: namespaceId @@ -6004,6 +6193,50 @@ components: description: The AI assistant app top k. format: int32 description: AIAssistantAppMetadata represents the metadata for the AI assistant app. + Agent: + required: + - displayName + type: object + properties: + agentUid: + title: agent uid + type: string + readOnly: true + displayName: + type: string + description: The agent display name. + description: + type: string + description: The agent description. + namespaceUid: + type: string + description: The namespace of the agent. + readOnly: true + tags: + type: array + items: + type: string + description: The agent tags. + aiAgentMetadata: + allOf: + - $ref: '#/components/schemas/AIAgentAppMetadata' + description: The agent metadata. + readOnly: true + creatorUid: + title: creator uid + type: string + readOnly: true + createTime: + type: string + description: The creation time of the agent. + format: date-time + readOnly: true + updateTime: + type: string + description: The last update time of the agent. + format: date-time + readOnly: true + description: Agent represents a agent. Any: type: object properties: @@ -6815,6 +7048,34 @@ components: type: string format: date-time readOnly: true + CreateAgentBody: + type: object + properties: + displayName: + type: string + description: The agent display name. + description: + type: string + description: The agent description. + tags: + type: array + items: + type: string + description: The agent tags. + aiAgentApp: + allOf: + - $ref: '#/components/schemas/AIAgentAppMetadata' + description: The agent metadata. + description: CreateAgentRequest represents a request to create a agent. + CreateAgentResponse: + type: object + properties: + agent: + allOf: + - $ref: '#/components/schemas/Agent' + description: The created agent. + readOnly: true + description: CreateAgentResponse represents a response for creating a agent. CreateAppBody: required: - id @@ -7057,6 +7318,9 @@ components: description: JSON schema describing the component output data. readOnly: true description: "DataSpecification describes the JSON schema of component input and output.\nNote: This message will be renamed to TaskSpecifications in the future." + DeleteAgentResponse: + type: object + description: DeleteAgentResponse represents a response for deleting a agent. DeleteAppResponse: type: object description: DeleteAppResponse represents a response for deleting a app. @@ -7726,6 +7990,15 @@ components: description: URL contains the reference the link will redirect to. readOnly: true description: Link contains the information to display an reference to an external URL. + ListAgentsResponse: + type: object + properties: + agents: + type: array + items: + $ref: '#/components/schemas/Agent' + description: The agents. + description: ListAgentsResponse represents a response for listing agents. ListAppsResponse: type: object properties: @@ -8421,6 +8694,15 @@ components: description: Total number of API token resources. format: int32 description: ListTokensResponse contains a list of API tokens. + ListToolsResponse: + type: object + properties: + tools: + type: array + items: + $ref: '#/components/schemas/Tool' + description: The tools. + description: ListToolsResponse represents a response for listing tools. ListUserMembershipsResponse: type: object properties: @@ -9835,16 +10117,19 @@ components: format: date-time Tool: title: tool definitions - required: - - name type: object properties: + pipelineId: + title: The pipeline id of the tool. e.g. "preset/xxx-search" + type: string name: type: string - description: 'The tool name. e.g. ["preset/pipeline@v1.0.0", "preset/pipeline-2@v2.0.0"].' + description: The tool name. config: - title: The tool config type: object + additionalProperties: + type: string + description: The tool connection key(variable) and value(id). Trace: type: object properties: @@ -10174,6 +10459,31 @@ components: UndeployUserModelAdminResponse: title: UndeployUserModelAdminResponse represents a response for a undeployed model type: object + UpdateAgentBody: + type: object + properties: + description: + type: string + description: The agent description. + tags: + type: array + items: + type: string + description: The agent tags. + aiAgentApp: + allOf: + - $ref: '#/components/schemas/AIAgentAppMetadata' + description: The agent metadata. + description: UpdateAgentRequest represents a request to update a agent. + UpdateAgentResponse: + type: object + properties: + agent: + allOf: + - $ref: '#/components/schemas/Agent' + description: The updated agent. + readOnly: true + description: UpdateAgentResponse represents a response for updating a agent. UpdateAppBody: type: object properties: @@ -10240,7 +10550,7 @@ components: chatDisplayName: title: chat display name type: string - aiAgentApp: + aiAgentMetadata: title: ai agent app metadata allOf: - $ref: '#/components/schemas/AIAgentAppMetadata' @@ -10282,13 +10592,6 @@ components: title: last used top k(only for ai assistant app) type: integer format: int64 - aiAgentApp: - title: ai agent app metadata - allOf: - - $ref: '#/components/schemas/AIAgentAppMetadata' - conversationDisplayName: - title: conversation display name - type: string UpdateConversationResponse: title: UpdateConversationResponse returns the updated conversation type: object @@ -10695,7 +10998,7 @@ components: type: string format: date-time readOnly: true - aiAgentApp: + aiAgentMetadata: title: agent metadata allOf: - $ref: '#/components/schemas/AIAgentAppMetadata'