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 Sep 20, 2024
1 parent 1265fe5 commit 596a040
Show file tree
Hide file tree
Showing 86 changed files with 801 additions and 1,033 deletions.
114 changes: 0 additions & 114 deletions src/libs/Instill/Generated/AllOf.1.g.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ partial void PrepareQuestionAnsweringArguments(
global::System.Net.Http.HttpClient httpClient,
ref string namespaceId,
ref string catalogId,
ref string? instillRequesterUid,
global::Instill.QuestionAnsweringBody request);
partial void PrepareQuestionAnsweringRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string namespaceId,
string catalogId,
string? instillRequesterUid,
global::Instill.QuestionAnsweringBody request);
partial void ProcessQuestionAnsweringResponse(
global::System.Net.Http.HttpClient httpClient,
Expand All @@ -30,13 +32,15 @@ partial void ProcessQuestionAnsweringResponseContent(
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.QuestionAnsweringResponse> QuestionAnsweringAsync(
string namespaceId,
string catalogId,
global::Instill.QuestionAnsweringBody request,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand All @@ -47,6 +51,7 @@ partial void ProcessQuestionAnsweringResponseContent(
httpClient: _httpClient,
namespaceId: ref namespaceId,
catalogId: ref catalogId,
instillRequesterUid: ref instillRequesterUid,
request: request);

var __pathBuilder = new PathBuilder(
Expand All @@ -71,6 +76,7 @@ partial void ProcessQuestionAnsweringResponseContent(
httpRequestMessage: httpRequest,
namespaceId: namespaceId,
catalogId: catalogId,
instillRequesterUid: instillRequesterUid,
request: request);

using var response = await _httpClient.SendAsync(
Expand Down Expand Up @@ -115,13 +121,15 @@ partial void ProcessQuestionAnsweringResponseContent(
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="question"></param>
/// <param name="topK"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.QuestionAnsweringResponse> QuestionAnsweringAsync(
string namespaceId,
string catalogId,
string? instillRequesterUid = default,
string? question = default,
int? topK = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -135,6 +143,7 @@ partial void ProcessQuestionAnsweringResponseContent(
return await QuestionAnsweringAsync(
namespaceId: namespaceId,
catalogId: catalogId,
instillRequesterUid: instillRequesterUid,
request: request,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ partial void PrepareSimilarityChunksSearchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string namespaceId,
ref string catalogId,
ref string? instillRequesterUid,
global::Instill.SimilarityChunksSearchBody request);
partial void PrepareSimilarityChunksSearchRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string namespaceId,
string catalogId,
string? instillRequesterUid,
global::Instill.SimilarityChunksSearchBody request);
partial void ProcessSimilarityChunksSearchResponse(
global::System.Net.Http.HttpClient httpClient,
Expand All @@ -30,13 +32,15 @@ partial void ProcessSimilarityChunksSearchResponseContent(
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.SimilarityChunksSearchResponse> SimilarityChunksSearchAsync(
string namespaceId,
string catalogId,
global::Instill.SimilarityChunksSearchBody request,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand All @@ -47,6 +51,7 @@ partial void ProcessSimilarityChunksSearchResponseContent(
httpClient: _httpClient,
namespaceId: ref namespaceId,
catalogId: ref catalogId,
instillRequesterUid: ref instillRequesterUid,
request: request);

var __pathBuilder = new PathBuilder(
Expand All @@ -71,6 +76,7 @@ partial void ProcessSimilarityChunksSearchResponseContent(
httpRequestMessage: httpRequest,
namespaceId: namespaceId,
catalogId: catalogId,
instillRequesterUid: instillRequesterUid,
request: request);

using var response = await _httpClient.SendAsync(
Expand Down Expand Up @@ -115,13 +121,15 @@ partial void ProcessSimilarityChunksSearchResponseContent(
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="textPrompt"></param>
/// <param name="topK"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.SimilarityChunksSearchResponse> SimilarityChunksSearchAsync(
string namespaceId,
string catalogId,
string? instillRequesterUid = default,
string? textPrompt = default,
long? topK = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -135,6 +143,7 @@ partial void ProcessSimilarityChunksSearchResponseContent(
return await SimilarityChunksSearchAsync(
namespaceId: namespaceId,
catalogId: catalogId,
instillRequesterUid: instillRequesterUid,
request: request,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,31 @@ partial void ProcessUploadCatalogFileResponseContent(
/// <param name="catalogId"></param>
/// <param name="fileUid"></param>
/// <param name="name"></param>
/// <param name="type"></param>
/// <param name="processStatus"></param>
/// <param name="processStatus">
/// - FILE_PROCESS_STATUS_NOTSTARTED: NOTSTARTED<br/>
/// - FILE_PROCESS_STATUS_WAITING: file is waiting for embedding process<br/>
/// - FILE_PROCESS_STATUS_CONVERTING: file is converting<br/>
/// - FILE_PROCESS_STATUS_CHUNKING: file is chunking<br/>
/// - FILE_PROCESS_STATUS_EMBEDDING: file is embedding<br/>
/// - FILE_PROCESS_STATUS_COMPLETED: completed<br/>
/// - FILE_PROCESS_STATUS_FAILED: failed
/// </param>
/// <param name="type">
/// - FILE_TYPE_TEXT: text<br/>
/// - FILE_TYPE_PDF: PDF<br/>
/// - FILE_TYPE_MARKDOWN: MARKDOWN<br/>
/// - FILE_TYPE_PNG: PNG(not supported yet)<br/>
/// - FILE_TYPE_JPEG: JPEG(not supported yet)<br/>
/// - FILE_TYPE_JPG: JPG(not supported yet)<br/>
/// - FILE_TYPE_HTML: HTML<br/>
/// - FILE_TYPE_DOCX: DOCX<br/>
/// - FILE_TYPE_DOC: DOC<br/>
/// - FILE_TYPE_PPT: PPT<br/>
/// - FILE_TYPE_PPTX: PPTX<br/>
/// - FILE_TYPE_XLS: XLS<br/>
/// - FILE_TYPE_XLSX: XLSX<br/>
/// - FILE_TYPE_CSV: CSV
/// </param>
/// <param name="processOutcome"></param>
/// <param name="retrievable"></param>
/// <param name="content"></param>
Expand All @@ -137,9 +160,9 @@ partial void ProcessUploadCatalogFileResponseContent(
string namespaceId,
string catalogId,
string name,
global::Instill.AllOf<global::Instill.FileType2?> type,
global::Instill.FileType type,
string? fileUid = default,
global::Instill.AllOf<global::Instill.FileProcessStatus2?>? processStatus = default,
global::Instill.FileProcessStatus? processStatus = default,
string? processOutcome = default,
bool? retrievable = default,
string? content = default,
Expand All @@ -158,8 +181,8 @@ partial void ProcessUploadCatalogFileResponseContent(
{
FileUid = fileUid,
Name = name,
Type = type,
ProcessStatus = processStatus,
Type = type,
ProcessOutcome = processOutcome,
Retrievable = retrievable,
Content = content,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,31 @@ public partial interface ICatalogClient
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.QuestionAnsweringResponse> QuestionAnsweringAsync(
string namespaceId,
string catalogId,
global::Instill.QuestionAnsweringBody request,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Ask a question
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="question"></param>
/// <param name="topK"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.QuestionAnsweringResponse> QuestionAnsweringAsync(
string namespaceId,
string catalogId,
string? instillRequesterUid = default,
string? question = default,
int? topK = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,31 @@ public partial interface ICatalogClient
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.SimilarityChunksSearchResponse> SimilarityChunksSearchAsync(
string namespaceId,
string catalogId,
global::Instill.SimilarityChunksSearchBody request,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Retrieve similar chunks
/// </summary>
/// <param name="namespaceId"></param>
/// <param name="catalogId"></param>
/// <param name="instillRequesterUid"></param>
/// <param name="textPrompt"></param>
/// <param name="topK"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.SimilarityChunksSearchResponse> SimilarityChunksSearchAsync(
string namespaceId,
string catalogId,
string? instillRequesterUid = default,
string? textPrompt = default,
long? topK = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Loading

0 comments on commit 596a040

Please sign in to comment.