Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 22, 2024
1 parent fb17614 commit d2c5ba9
Show file tree
Hide file tree
Showing 45 changed files with 1,894 additions and 367 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,30 @@ partial void ProcessAppPublicServiceCreateAppResponseContent(
/// <param name="tags">
/// The app tags.
/// </param>
/// <param name="appType"></param>
/// <param name="aiAssistantApp"></param>
/// <param name="aiAgentApp"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
public async global::System.Threading.Tasks.Task<global::Instill.CreateAppResponse> AppPublicServiceCreateAppAsync(
string namespaceId,
string id,
global::Instill.AppType appType,
string? description = default,
global::System.Collections.Generic.IList<string>? tags = default,
global::Instill.AIAssistantAppMetadata? aiAssistantApp = default,
global::Instill.AIAgentAppMetadata? aiAgentApp = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Instill.CreateAppBody
{
Id = id,
Description = description,
Tags = tags,
AppType = appType,
AiAssistantApp = aiAssistantApp,
AiAgentApp = aiAgentApp,
};

return await AppPublicServiceCreateAppAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,27 @@ partial void ProcessAppPublicServiceCreateConversationResponseContent(
/// <param name="namespaceId"></param>
/// <param name="appId"></param>
/// <param name="conversationId"></param>
/// <param name="chatWith"></param>
/// <param name="conversationDisplayName"></param>
/// <param name="aiAgentApp"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
public async global::System.Threading.Tasks.Task<global::Instill.CreateConversationResponse> AppPublicServiceCreateConversationAsync(
string namespaceId,
string appId,
string conversationId,
global::Instill.ChatWith? chatWith = default,
string? conversationDisplayName = default,
global::Instill.AIAgentAppMetadata? aiAgentApp = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Instill.CreateConversationBody
{
ConversationId = conversationId,
ChatWith = chatWith,
ConversationDisplayName = conversationDisplayName,
AiAgentApp = aiAgentApp,
};

return await AppPublicServiceCreateConversationAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ public partial class AppClient
{
partial void PrepareAppPublicServiceListAppsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string namespaceId);
ref string namespaceId,
ref global::Instill.AppPublicServiceListAppsAppType? appType);
partial void PrepareAppPublicServiceListAppsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string namespaceId);
string namespaceId,
global::Instill.AppPublicServiceListAppsAppType? appType);
partial void ProcessAppPublicServiceListAppsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -26,22 +28,28 @@ partial void ProcessAppPublicServiceListAppsResponseContent(
/// Returns a paginated list of apps.
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="appType"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Instill.ApiException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
public async global::System.Threading.Tasks.Task<global::Instill.ListAppsResponse> AppPublicServiceListAppsAsync(
string namespaceId,
global::Instill.AppPublicServiceListAppsAppType? appType = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareAppPublicServiceListAppsArguments(
httpClient: HttpClient,
namespaceId: ref namespaceId);
namespaceId: ref namespaceId,
appType: ref appType);

var __pathBuilder = new PathBuilder(
path: $"/v1alpha/namespaces/{namespaceId}/apps",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("appType", appType?.ToValueString())
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand Down Expand Up @@ -69,7 +77,8 @@ partial void ProcessAppPublicServiceListAppsResponseContent(
PrepareAppPublicServiceListAppsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
namespaceId: namespaceId);
namespaceId: namespaceId,
appType: appType);

using var __response = await HttpClient.SendAsync(
request: __httpRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ partial void PrepareAppPublicServiceListConversationsArguments(
ref string? pageToken,
ref string? conversationUid,
ref string? conversationId,
ref bool? ifAll);
ref bool? ifAll,
ref global::Instill.AppPublicServiceListConversationsChatWith? chatWith);
partial void PrepareAppPublicServiceListConversationsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
Expand All @@ -23,7 +24,8 @@ partial void PrepareAppPublicServiceListConversationsRequest(
string? pageToken,
string? conversationUid,
string? conversationId,
bool? ifAll);
bool? ifAll,
global::Instill.AppPublicServiceListConversationsChatWith? chatWith);
partial void ProcessAppPublicServiceListConversationsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -44,6 +46,7 @@ partial void ProcessAppPublicServiceListConversationsResponseContent(
/// <param name="conversationUid"></param>
/// <param name="conversationId"></param>
/// <param name="ifAll"></param>
/// <param name="chatWith"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Instill.ApiException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
Expand All @@ -55,6 +58,7 @@ partial void ProcessAppPublicServiceListConversationsResponseContent(
string? conversationUid = default,
string? conversationId = default,
bool? ifAll = default,
global::Instill.AppPublicServiceListConversationsChatWith? chatWith = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand All @@ -67,7 +71,8 @@ partial void ProcessAppPublicServiceListConversationsResponseContent(
pageToken: ref pageToken,
conversationUid: ref conversationUid,
conversationId: ref conversationId,
ifAll: ref ifAll);
ifAll: ref ifAll,
chatWith: ref chatWith);

var __pathBuilder = new PathBuilder(
path: $"/v1alpha/namespaces/{namespaceId}/apps/{appId}/conversations",
Expand All @@ -78,6 +83,7 @@ partial void ProcessAppPublicServiceListConversationsResponseContent(
.AddOptionalParameter("conversationUid", conversationUid)
.AddOptionalParameter("conversationId", conversationId)
.AddOptionalParameter("ifAll", ifAll?.ToString())
.AddOptionalParameter("chatWith", chatWith?.ToValueString())
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
Expand Down Expand Up @@ -112,7 +118,8 @@ partial void ProcessAppPublicServiceListConversationsResponseContent(
pageToken: pageToken,
conversationUid: conversationUid,
conversationId: conversationId,
ifAll: ifAll);
ifAll: ifAll,
chatWith: chatWith);

using var __response = await HttpClient.SendAsync(
request: __httpRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent(
/// last AI assistant app top k<br/>
/// If the last AI assistant app top k is empty, the last AI assistant app top k will be set to empty.
/// </param>
/// <param name="aiAssistantApp"></param>
/// <param name="aiAgentApp"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
Expand All @@ -260,6 +262,8 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent(
global::System.Collections.Generic.IList<string>? newTags = default,
string? lastAiAssistantAppCatalogUid = default,
int? lastAiAssistantAppTopK = default,
global::Instill.AIAssistantAppMetadata? aiAssistantApp = default,
global::Instill.AIAgentAppMetadata? aiAgentApp = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Instill.UpdateAppBody
Expand All @@ -269,6 +273,8 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent(
NewTags = newTags,
LastAiAssistantAppCatalogUid = lastAiAssistantAppCatalogUid,
LastAiAssistantAppTopK = lastAiAssistantAppTopK,
AiAssistantApp = aiAssistantApp,
AiAgentApp = aiAgentApp,
};

return await AppPublicServiceUpdateAppAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent(
/// <param name="newConversationId"></param>
/// <param name="lastUsedCatalogUid"></param>
/// <param name="lastUsedTopK"></param>
/// <param name="aiAgentApp"></param>
/// <param name="conversationDisplayName"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
Expand All @@ -249,13 +251,17 @@ 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
{
NewConversationId = newConversationId,
LastUsedCatalogUid = lastUsedCatalogUid,
LastUsedTopK = lastUsedTopK,
AiAgentApp = aiAgentApp,
ConversationDisplayName = conversationDisplayName,
};

return await AppPublicServiceUpdateConversationAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ partial void ProcessCreateCatalogResponseContent(
/// <param name="tags">
/// The catalog tags.
/// </param>
/// <param name="type"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")]
Expand All @@ -239,13 +240,15 @@ partial void ProcessCreateCatalogResponseContent(
string? name = default,
string? description = default,
global::System.Collections.Generic.IList<string>? tags = default,
global::Instill.CatalogType? type = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Instill.CreateCatalogBody
{
Name = name,
Description = description,
Tags = tags,
Type = type,
};

return await CreateCatalogAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,20 @@ public partial interface IAppClient
/// <param name="tags">
/// The app tags.
/// </param>
/// <param name="appType"></param>
/// <param name="aiAssistantApp"></param>
/// <param name="aiAgentApp"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
global::System.Threading.Tasks.Task<global::Instill.CreateAppResponse> AppPublicServiceCreateAppAsync(
string namespaceId,
string id,
global::Instill.AppType appType,
string? description = default,
global::System.Collections.Generic.IList<string>? tags = default,
global::Instill.AIAssistantAppMetadata? aiAssistantApp = default,
global::Instill.AIAgentAppMetadata? aiAgentApp = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ public partial interface IAppClient
/// <param name="namespaceId"></param>
/// <param name="appId"></param>
/// <param name="conversationId"></param>
/// <param name="chatWith"></param>
/// <param name="conversationDisplayName"></param>
/// <param name="aiAgentApp"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
global::System.Threading.Tasks.Task<global::Instill.CreateConversationResponse> AppPublicServiceCreateConversationAsync(
string namespaceId,
string appId,
string conversationId,
global::Instill.ChatWith? chatWith = default,
string? conversationDisplayName = default,
global::Instill.AIAgentAppMetadata? aiAgentApp = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ public partial interface IAppClient
/// Returns a paginated list of apps.
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="appType"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Instill.ApiException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
global::System.Threading.Tasks.Task<global::Instill.ListAppsResponse> AppPublicServiceListAppsAsync(
string namespaceId,
global::Instill.AppPublicServiceListAppsAppType? appType = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public partial interface IAppClient
/// <param name="conversationUid"></param>
/// <param name="conversationId"></param>
/// <param name="ifAll"></param>
/// <param name="chatWith"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Instill.ApiException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
Expand All @@ -26,6 +27,7 @@ public partial interface IAppClient
string? conversationUid = default,
string? conversationId = default,
bool? ifAll = default,
global::Instill.AppPublicServiceListConversationsChatWith? chatWith = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public partial interface IAppClient
/// last AI assistant app top k<br/>
/// If the last AI assistant app top k is empty, the last AI assistant app top k will be set to empty.
/// </param>
/// <param name="aiAssistantApp"></param>
/// <param name="aiAgentApp"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
Expand All @@ -57,6 +59,8 @@ public partial interface IAppClient
global::System.Collections.Generic.IList<string>? newTags = default,
string? lastAiAssistantAppCatalogUid = default,
int? lastAiAssistantAppTopK = default,
global::Instill.AIAssistantAppMetadata? aiAssistantApp = default,
global::Instill.AIAgentAppMetadata? aiAgentApp = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public partial interface IAppClient
/// <param name="newConversationId"></param>
/// <param name="lastUsedCatalogUid"></param>
/// <param name="lastUsedTopK"></param>
/// <param name="aiAgentApp"></param>
/// <param name="conversationDisplayName"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
Expand All @@ -42,6 +44,8 @@ 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);
}
}
Loading

0 comments on commit d2c5ba9

Please sign in to comment.