@knowledge-stack/ksapi 1.23.4 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +125 -6
- package/.openapi-generator/VERSION +1 -1
- package/README.md +274 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +78 -4
- package/dist/apis/ChunksApi.js +85 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +54 -0
- package/dist/apis/PathPartsApi.js +56 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +172 -5
- package/dist/apis/TenantsApi.js +179 -31
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +78 -4
- package/dist/esm/apis/ChunksApi.js +85 -31
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +54 -0
- package/dist/esm/apis/PathPartsApi.js +56 -20
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +172 -5
- package/dist/esm/apis/TenantsApi.js +180 -32
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- package/dist/esm/models/ChunkResponse.d.ts +6 -0
- package/dist/esm/models/ChunkResponse.js +2 -0
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +8 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/InviteResponse.d.ts +7 -0
- package/dist/esm/models/InviteResponse.js +5 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseTenantUserInTenantResponse.js → PaginatedResponseTenantUserResponse.js} +12 -12
- package/dist/esm/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/esm/models/ScoredChunkResponse.js +2 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/TenantUserEditRequest.d.ts +48 -0
- package/dist/esm/models/TenantUserEditRequest.js +45 -0
- package/dist/esm/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/esm/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +13 -9
- package/dist/esm/models/index.d.ts +9 -6
- package/dist/esm/models/index.js +9 -6
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/ChunkResponse.d.ts +6 -0
- package/dist/models/ChunkResponse.js +2 -0
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +9 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +9 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +5 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTenantUserResponse.js +78 -0
- package/dist/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/models/ScoredChunkResponse.js +2 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/TenantUserEditRequest.d.ts +48 -0
- package/dist/models/TenantUserEditRequest.js +53 -0
- package/dist/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +19 -15
- package/dist/models/index.d.ts +9 -6
- package/dist/models/index.js +9 -6
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +47 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +446 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +314 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +137 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +94 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +339 -37
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/ChunkResponse.ts +8 -0
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/InviteResponse.ts +19 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/{PaginatedResponseFolderDocumentResponse.ts → PaginatedResponseTenantUserResponse.ts} +25 -25
- package/src/models/ScoredChunkResponse.ts +8 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/TenantUserEditRequest.ts +93 -0
- package/src/models/{TenantUserInTenantResponse.ts → TenantUserResponse.ts} +24 -15
- package/src/models/index.ts +9 -6
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/esm/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseTenantUserInTenantResponse.ts +0 -130
|
@@ -55,6 +55,15 @@ export interface GetChunkLineageRequest {
|
|
|
55
55
|
* @interface ChunkLineagesApiInterface
|
|
56
56
|
*/
|
|
57
57
|
export interface ChunkLineagesApiInterface {
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for createChunkLineage without sending the request
|
|
60
|
+
* @param {CreateChunkLineageRequest} createChunkLineageRequest
|
|
61
|
+
* @param {string} [ksUat]
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof ChunkLineagesApiInterface
|
|
64
|
+
*/
|
|
65
|
+
createChunkLineageRequestOpts(requestParameters: CreateChunkLineageOperationRequest): Promise<runtime.RequestOpts>;
|
|
66
|
+
|
|
58
67
|
/**
|
|
59
68
|
* Batch-create lineage edges for a child chunk. Creates edges from each parent chunk to the specified child chunk. All chunks must exist in the same tenant.
|
|
60
69
|
* @summary Create Chunk Lineage Handler
|
|
@@ -72,6 +81,16 @@ export interface ChunkLineagesApiInterface {
|
|
|
72
81
|
*/
|
|
73
82
|
createChunkLineage(requestParameters: CreateChunkLineageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkLineageResponse>>;
|
|
74
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for deleteChunkLineage without sending the request
|
|
86
|
+
* @param {string} parentChunkId Parent chunk ID
|
|
87
|
+
* @param {string} chunkId Child chunk ID
|
|
88
|
+
* @param {string} [ksUat]
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
* @memberof ChunkLineagesApiInterface
|
|
91
|
+
*/
|
|
92
|
+
deleteChunkLineageRequestOpts(requestParameters: DeleteChunkLineageRequest): Promise<runtime.RequestOpts>;
|
|
93
|
+
|
|
75
94
|
/**
|
|
76
95
|
* Delete a single lineage edge between parent and child chunks.
|
|
77
96
|
* @summary Delete Chunk Lineage Handler
|
|
@@ -90,6 +109,16 @@ export interface ChunkLineagesApiInterface {
|
|
|
90
109
|
*/
|
|
91
110
|
deleteChunkLineage(requestParameters: DeleteChunkLineageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
92
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for getChunkLineage without sending the request
|
|
114
|
+
* @param {string} chunkId
|
|
115
|
+
* @param {number} [maxDepth]
|
|
116
|
+
* @param {string} [ksUat]
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
* @memberof ChunkLineagesApiInterface
|
|
119
|
+
*/
|
|
120
|
+
getChunkLineageRequestOpts(requestParameters: GetChunkLineageRequest): Promise<runtime.RequestOpts>;
|
|
121
|
+
|
|
93
122
|
/**
|
|
94
123
|
* Get lineage graph for a chunk. Traverses both ancestors and descendants up to max_depth, returning enriched nodes and edges.
|
|
95
124
|
* @summary Get Chunk Lineage Handler
|
|
@@ -116,10 +145,9 @@ export interface ChunkLineagesApiInterface {
|
|
|
116
145
|
export class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesApiInterface {
|
|
117
146
|
|
|
118
147
|
/**
|
|
119
|
-
*
|
|
120
|
-
* Create Chunk Lineage Handler
|
|
148
|
+
* Creates request options for createChunkLineage without sending the request
|
|
121
149
|
*/
|
|
122
|
-
async
|
|
150
|
+
async createChunkLineageRequestOpts(requestParameters: CreateChunkLineageOperationRequest): Promise<runtime.RequestOpts> {
|
|
123
151
|
if (requestParameters['createChunkLineageRequest'] == null) {
|
|
124
152
|
throw new runtime.RequiredError(
|
|
125
153
|
'createChunkLineageRequest',
|
|
@@ -136,13 +164,22 @@ export class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesAp
|
|
|
136
164
|
|
|
137
165
|
let urlPath = `/v1/chunk-lineages`;
|
|
138
166
|
|
|
139
|
-
|
|
167
|
+
return {
|
|
140
168
|
path: urlPath,
|
|
141
169
|
method: 'POST',
|
|
142
170
|
headers: headerParameters,
|
|
143
171
|
query: queryParameters,
|
|
144
172
|
body: CreateChunkLineageRequestToJSON(requestParameters['createChunkLineageRequest']),
|
|
145
|
-
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Batch-create lineage edges for a child chunk. Creates edges from each parent chunk to the specified child chunk. All chunks must exist in the same tenant.
|
|
178
|
+
* Create Chunk Lineage Handler
|
|
179
|
+
*/
|
|
180
|
+
async createChunkLineageRaw(requestParameters: CreateChunkLineageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChunkLineageResponse>>> {
|
|
181
|
+
const requestOptions = await this.createChunkLineageRequestOpts(requestParameters);
|
|
182
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
146
183
|
|
|
147
184
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ChunkLineageResponseFromJSON));
|
|
148
185
|
}
|
|
@@ -157,10 +194,9 @@ export class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesAp
|
|
|
157
194
|
}
|
|
158
195
|
|
|
159
196
|
/**
|
|
160
|
-
*
|
|
161
|
-
* Delete Chunk Lineage Handler
|
|
197
|
+
* Creates request options for deleteChunkLineage without sending the request
|
|
162
198
|
*/
|
|
163
|
-
async
|
|
199
|
+
async deleteChunkLineageRequestOpts(requestParameters: DeleteChunkLineageRequest): Promise<runtime.RequestOpts> {
|
|
164
200
|
if (requestParameters['parentChunkId'] == null) {
|
|
165
201
|
throw new runtime.RequiredError(
|
|
166
202
|
'parentChunkId',
|
|
@@ -190,12 +226,21 @@ export class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesAp
|
|
|
190
226
|
|
|
191
227
|
let urlPath = `/v1/chunk-lineages`;
|
|
192
228
|
|
|
193
|
-
|
|
229
|
+
return {
|
|
194
230
|
path: urlPath,
|
|
195
231
|
method: 'DELETE',
|
|
196
232
|
headers: headerParameters,
|
|
197
233
|
query: queryParameters,
|
|
198
|
-
}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Delete a single lineage edge between parent and child chunks.
|
|
239
|
+
* Delete Chunk Lineage Handler
|
|
240
|
+
*/
|
|
241
|
+
async deleteChunkLineageRaw(requestParameters: DeleteChunkLineageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
242
|
+
const requestOptions = await this.deleteChunkLineageRequestOpts(requestParameters);
|
|
243
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
199
244
|
|
|
200
245
|
return new runtime.VoidApiResponse(response);
|
|
201
246
|
}
|
|
@@ -209,10 +254,9 @@ export class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesAp
|
|
|
209
254
|
}
|
|
210
255
|
|
|
211
256
|
/**
|
|
212
|
-
*
|
|
213
|
-
* Get Chunk Lineage Handler
|
|
257
|
+
* Creates request options for getChunkLineage without sending the request
|
|
214
258
|
*/
|
|
215
|
-
async
|
|
259
|
+
async getChunkLineageRequestOpts(requestParameters: GetChunkLineageRequest): Promise<runtime.RequestOpts> {
|
|
216
260
|
if (requestParameters['chunkId'] == null) {
|
|
217
261
|
throw new runtime.RequiredError(
|
|
218
262
|
'chunkId',
|
|
@@ -232,12 +276,21 @@ export class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesAp
|
|
|
232
276
|
let urlPath = `/v1/chunk-lineages/{chunk_id}`;
|
|
233
277
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
234
278
|
|
|
235
|
-
|
|
279
|
+
return {
|
|
236
280
|
path: urlPath,
|
|
237
281
|
method: 'GET',
|
|
238
282
|
headers: headerParameters,
|
|
239
283
|
query: queryParameters,
|
|
240
|
-
}
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Get lineage graph for a chunk. Traverses both ancestors and descendants up to max_depth, returning enriched nodes and edges.
|
|
289
|
+
* Get Chunk Lineage Handler
|
|
290
|
+
*/
|
|
291
|
+
async getChunkLineageRaw(requestParameters: GetChunkLineageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LineageGraphResponse>> {
|
|
292
|
+
const requestOptions = await this.getChunkLineageRequestOpts(requestParameters);
|
|
293
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
241
294
|
|
|
242
295
|
return new runtime.JSONApiResponse(response, (jsonValue) => LineageGraphResponseFromJSON(jsonValue));
|
|
243
296
|
}
|
package/src/apis/ChunksApi.ts
CHANGED
|
@@ -79,6 +79,15 @@ export interface UpdateChunkMetadataOperationRequest {
|
|
|
79
79
|
* @interface ChunksApiInterface
|
|
80
80
|
*/
|
|
81
81
|
export interface ChunksApiInterface {
|
|
82
|
+
/**
|
|
83
|
+
* Creates request options for createChunk without sending the request
|
|
84
|
+
* @param {CreateChunkRequest} createChunkRequest
|
|
85
|
+
* @param {string} [ksUat]
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof ChunksApiInterface
|
|
88
|
+
*/
|
|
89
|
+
createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts>;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
|
|
84
93
|
* @summary Create Chunk Handler
|
|
@@ -96,6 +105,15 @@ export interface ChunksApiInterface {
|
|
|
96
105
|
*/
|
|
97
106
|
createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
98
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Creates request options for deleteChunk without sending the request
|
|
110
|
+
* @param {string} chunkId
|
|
111
|
+
* @param {string} [ksUat]
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
* @memberof ChunksApiInterface
|
|
114
|
+
*/
|
|
115
|
+
deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts>;
|
|
116
|
+
|
|
99
117
|
/**
|
|
100
118
|
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
101
119
|
* @summary Delete Chunk Handler
|
|
@@ -113,6 +131,15 @@ export interface ChunksApiInterface {
|
|
|
113
131
|
*/
|
|
114
132
|
deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
115
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Creates request options for getChunk without sending the request
|
|
136
|
+
* @param {string} chunkId
|
|
137
|
+
* @param {string} [ksUat]
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
* @memberof ChunksApiInterface
|
|
140
|
+
*/
|
|
141
|
+
getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts>;
|
|
142
|
+
|
|
116
143
|
/**
|
|
117
144
|
* Get a chunk by its ID, including content.
|
|
118
145
|
* @summary Get Chunk Handler
|
|
@@ -131,7 +158,16 @@ export interface ChunksApiInterface {
|
|
|
131
158
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
132
159
|
|
|
133
160
|
/**
|
|
134
|
-
*
|
|
161
|
+
* Creates request options for searchChunks without sending the request
|
|
162
|
+
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
163
|
+
* @param {string} [ksUat]
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
* @memberof ChunksApiInterface
|
|
166
|
+
*/
|
|
167
|
+
searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Semantic search over chunks using vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
135
171
|
* @summary Search Chunks Handler
|
|
136
172
|
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
137
173
|
* @param {string} [ksUat]
|
|
@@ -142,11 +178,21 @@ export interface ChunksApiInterface {
|
|
|
142
178
|
searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
|
|
143
179
|
|
|
144
180
|
/**
|
|
145
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
181
|
+
* Semantic search over chunks using vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
146
182
|
* Search Chunks Handler
|
|
147
183
|
*/
|
|
148
184
|
searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
|
|
149
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Creates request options for updateChunkContent without sending the request
|
|
188
|
+
* @param {string} chunkId
|
|
189
|
+
* @param {UpdateChunkContentRequest} updateChunkContentRequest
|
|
190
|
+
* @param {string} [ksUat]
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
* @memberof ChunksApiInterface
|
|
193
|
+
*/
|
|
194
|
+
updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts>;
|
|
195
|
+
|
|
150
196
|
/**
|
|
151
197
|
* Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
|
|
152
198
|
* @summary Update Chunk Content Handler
|
|
@@ -165,6 +211,16 @@ export interface ChunksApiInterface {
|
|
|
165
211
|
*/
|
|
166
212
|
updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
167
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
216
|
+
* @param {string} chunkId
|
|
217
|
+
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
218
|
+
* @param {string} [ksUat]
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
* @memberof ChunksApiInterface
|
|
221
|
+
*/
|
|
222
|
+
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
223
|
+
|
|
168
224
|
/**
|
|
169
225
|
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
170
226
|
* @summary Update Chunk Metadata Handler
|
|
@@ -191,10 +247,9 @@ export interface ChunksApiInterface {
|
|
|
191
247
|
export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
192
248
|
|
|
193
249
|
/**
|
|
194
|
-
*
|
|
195
|
-
* Create Chunk Handler
|
|
250
|
+
* Creates request options for createChunk without sending the request
|
|
196
251
|
*/
|
|
197
|
-
async
|
|
252
|
+
async createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts> {
|
|
198
253
|
if (requestParameters['createChunkRequest'] == null) {
|
|
199
254
|
throw new runtime.RequiredError(
|
|
200
255
|
'createChunkRequest',
|
|
@@ -211,13 +266,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
211
266
|
|
|
212
267
|
let urlPath = `/v1/chunks`;
|
|
213
268
|
|
|
214
|
-
|
|
269
|
+
return {
|
|
215
270
|
path: urlPath,
|
|
216
271
|
method: 'POST',
|
|
217
272
|
headers: headerParameters,
|
|
218
273
|
query: queryParameters,
|
|
219
274
|
body: CreateChunkRequestToJSON(requestParameters['createChunkRequest']),
|
|
220
|
-
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
|
|
280
|
+
* Create Chunk Handler
|
|
281
|
+
*/
|
|
282
|
+
async createChunkRaw(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
283
|
+
const requestOptions = await this.createChunkRequestOpts(requestParameters);
|
|
284
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
221
285
|
|
|
222
286
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
223
287
|
}
|
|
@@ -232,10 +296,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
232
296
|
}
|
|
233
297
|
|
|
234
298
|
/**
|
|
235
|
-
*
|
|
236
|
-
* Delete Chunk Handler
|
|
299
|
+
* Creates request options for deleteChunk without sending the request
|
|
237
300
|
*/
|
|
238
|
-
async
|
|
301
|
+
async deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts> {
|
|
239
302
|
if (requestParameters['chunkId'] == null) {
|
|
240
303
|
throw new runtime.RequiredError(
|
|
241
304
|
'chunkId',
|
|
@@ -251,12 +314,21 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
251
314
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
252
315
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
253
316
|
|
|
254
|
-
|
|
317
|
+
return {
|
|
255
318
|
path: urlPath,
|
|
256
319
|
method: 'DELETE',
|
|
257
320
|
headers: headerParameters,
|
|
258
321
|
query: queryParameters,
|
|
259
|
-
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
327
|
+
* Delete Chunk Handler
|
|
328
|
+
*/
|
|
329
|
+
async deleteChunkRaw(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
330
|
+
const requestOptions = await this.deleteChunkRequestOpts(requestParameters);
|
|
331
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
260
332
|
|
|
261
333
|
return new runtime.VoidApiResponse(response);
|
|
262
334
|
}
|
|
@@ -270,10 +342,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
270
342
|
}
|
|
271
343
|
|
|
272
344
|
/**
|
|
273
|
-
*
|
|
274
|
-
* Get Chunk Handler
|
|
345
|
+
* Creates request options for getChunk without sending the request
|
|
275
346
|
*/
|
|
276
|
-
async
|
|
347
|
+
async getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts> {
|
|
277
348
|
if (requestParameters['chunkId'] == null) {
|
|
278
349
|
throw new runtime.RequiredError(
|
|
279
350
|
'chunkId',
|
|
@@ -289,12 +360,21 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
289
360
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
290
361
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
291
362
|
|
|
292
|
-
|
|
363
|
+
return {
|
|
293
364
|
path: urlPath,
|
|
294
365
|
method: 'GET',
|
|
295
366
|
headers: headerParameters,
|
|
296
367
|
query: queryParameters,
|
|
297
|
-
}
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Get a chunk by its ID, including content.
|
|
373
|
+
* Get Chunk Handler
|
|
374
|
+
*/
|
|
375
|
+
async getChunkRaw(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
376
|
+
const requestOptions = await this.getChunkRequestOpts(requestParameters);
|
|
377
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
298
378
|
|
|
299
379
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
300
380
|
}
|
|
@@ -309,10 +389,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
309
389
|
}
|
|
310
390
|
|
|
311
391
|
/**
|
|
312
|
-
*
|
|
313
|
-
* Search Chunks Handler
|
|
392
|
+
* Creates request options for searchChunks without sending the request
|
|
314
393
|
*/
|
|
315
|
-
async
|
|
394
|
+
async searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts> {
|
|
316
395
|
if (requestParameters['chunkSearchRequest'] == null) {
|
|
317
396
|
throw new runtime.RequiredError(
|
|
318
397
|
'chunkSearchRequest',
|
|
@@ -329,19 +408,28 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
329
408
|
|
|
330
409
|
let urlPath = `/v1/chunks/search`;
|
|
331
410
|
|
|
332
|
-
|
|
411
|
+
return {
|
|
333
412
|
path: urlPath,
|
|
334
413
|
method: 'POST',
|
|
335
414
|
headers: headerParameters,
|
|
336
415
|
query: queryParameters,
|
|
337
416
|
body: ChunkSearchRequestToJSON(requestParameters['chunkSearchRequest']),
|
|
338
|
-
}
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Semantic search over chunks using vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
422
|
+
* Search Chunks Handler
|
|
423
|
+
*/
|
|
424
|
+
async searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>> {
|
|
425
|
+
const requestOptions = await this.searchChunksRequestOpts(requestParameters);
|
|
426
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
339
427
|
|
|
340
428
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ScoredChunkResponseFromJSON));
|
|
341
429
|
}
|
|
342
430
|
|
|
343
431
|
/**
|
|
344
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
432
|
+
* Semantic search over chunks using vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
345
433
|
* Search Chunks Handler
|
|
346
434
|
*/
|
|
347
435
|
async searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>> {
|
|
@@ -350,10 +438,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
350
438
|
}
|
|
351
439
|
|
|
352
440
|
/**
|
|
353
|
-
*
|
|
354
|
-
* Update Chunk Content Handler
|
|
441
|
+
* Creates request options for updateChunkContent without sending the request
|
|
355
442
|
*/
|
|
356
|
-
async
|
|
443
|
+
async updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts> {
|
|
357
444
|
if (requestParameters['chunkId'] == null) {
|
|
358
445
|
throw new runtime.RequiredError(
|
|
359
446
|
'chunkId',
|
|
@@ -378,13 +465,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
378
465
|
let urlPath = `/v1/chunks/{chunk_id}/content`;
|
|
379
466
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
380
467
|
|
|
381
|
-
|
|
468
|
+
return {
|
|
382
469
|
path: urlPath,
|
|
383
470
|
method: 'PATCH',
|
|
384
471
|
headers: headerParameters,
|
|
385
472
|
query: queryParameters,
|
|
386
473
|
body: UpdateChunkContentRequestToJSON(requestParameters['updateChunkContentRequest']),
|
|
387
|
-
}
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
|
|
479
|
+
* Update Chunk Content Handler
|
|
480
|
+
*/
|
|
481
|
+
async updateChunkContentRaw(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
482
|
+
const requestOptions = await this.updateChunkContentRequestOpts(requestParameters);
|
|
483
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
388
484
|
|
|
389
485
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
390
486
|
}
|
|
@@ -399,10 +495,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
399
495
|
}
|
|
400
496
|
|
|
401
497
|
/**
|
|
402
|
-
*
|
|
403
|
-
* Update Chunk Metadata Handler
|
|
498
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
404
499
|
*/
|
|
405
|
-
async
|
|
500
|
+
async updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts> {
|
|
406
501
|
if (requestParameters['chunkId'] == null) {
|
|
407
502
|
throw new runtime.RequiredError(
|
|
408
503
|
'chunkId',
|
|
@@ -427,13 +522,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
427
522
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
428
523
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
429
524
|
|
|
430
|
-
|
|
525
|
+
return {
|
|
431
526
|
path: urlPath,
|
|
432
527
|
method: 'PATCH',
|
|
433
528
|
headers: headerParameters,
|
|
434
529
|
query: queryParameters,
|
|
435
530
|
body: UpdateChunkMetadataRequestToJSON(requestParameters['updateChunkMetadataRequest']),
|
|
436
|
-
}
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
536
|
+
* Update Chunk Metadata Handler
|
|
537
|
+
*/
|
|
538
|
+
async updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
539
|
+
const requestOptions = await this.updateChunkMetadataRequestOpts(requestParameters);
|
|
540
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
437
541
|
|
|
438
542
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
439
543
|
}
|
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -32,6 +32,13 @@ import {
|
|
|
32
32
|
* @interface DefaultApiInterface
|
|
33
33
|
*/
|
|
34
34
|
export interface DefaultApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for healthCheck without sending the request
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
* @memberof DefaultApiInterface
|
|
39
|
+
*/
|
|
40
|
+
healthCheckRequestOpts(): Promise<runtime.RequestOpts>;
|
|
41
|
+
|
|
35
42
|
/**
|
|
36
43
|
* Health check endpoint.
|
|
37
44
|
* @summary Health Check Handler
|
|
@@ -47,6 +54,13 @@ export interface DefaultApiInterface {
|
|
|
47
54
|
*/
|
|
48
55
|
healthCheck(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponse>;
|
|
49
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for hello without sending the request
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
* @memberof DefaultApiInterface
|
|
61
|
+
*/
|
|
62
|
+
helloRequestOpts(): Promise<runtime.RequestOpts>;
|
|
63
|
+
|
|
50
64
|
/**
|
|
51
65
|
* Root endpoint.
|
|
52
66
|
* @summary Root Handler
|
|
@@ -70,10 +84,9 @@ export interface DefaultApiInterface {
|
|
|
70
84
|
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
71
85
|
|
|
72
86
|
/**
|
|
73
|
-
*
|
|
74
|
-
* Health Check Handler
|
|
87
|
+
* Creates request options for healthCheck without sending the request
|
|
75
88
|
*/
|
|
76
|
-
async
|
|
89
|
+
async healthCheckRequestOpts(): Promise<runtime.RequestOpts> {
|
|
77
90
|
const queryParameters: any = {};
|
|
78
91
|
|
|
79
92
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -81,12 +94,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
81
94
|
|
|
82
95
|
let urlPath = `/healthz`;
|
|
83
96
|
|
|
84
|
-
|
|
97
|
+
return {
|
|
85
98
|
path: urlPath,
|
|
86
99
|
method: 'GET',
|
|
87
100
|
headers: headerParameters,
|
|
88
101
|
query: queryParameters,
|
|
89
|
-
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Health check endpoint.
|
|
107
|
+
* Health Check Handler
|
|
108
|
+
*/
|
|
109
|
+
async healthCheckRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthCheckResponse>> {
|
|
110
|
+
const requestOptions = await this.healthCheckRequestOpts();
|
|
111
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
90
112
|
|
|
91
113
|
return new runtime.JSONApiResponse(response, (jsonValue) => HealthCheckResponseFromJSON(jsonValue));
|
|
92
114
|
}
|
|
@@ -101,10 +123,9 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
101
123
|
}
|
|
102
124
|
|
|
103
125
|
/**
|
|
104
|
-
*
|
|
105
|
-
* Root Handler
|
|
126
|
+
* Creates request options for hello without sending the request
|
|
106
127
|
*/
|
|
107
|
-
async
|
|
128
|
+
async helloRequestOpts(): Promise<runtime.RequestOpts> {
|
|
108
129
|
const queryParameters: any = {};
|
|
109
130
|
|
|
110
131
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -112,12 +133,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
112
133
|
|
|
113
134
|
let urlPath = `/`;
|
|
114
135
|
|
|
115
|
-
|
|
136
|
+
return {
|
|
116
137
|
path: urlPath,
|
|
117
138
|
method: 'GET',
|
|
118
139
|
headers: headerParameters,
|
|
119
140
|
query: queryParameters,
|
|
120
|
-
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Root endpoint.
|
|
146
|
+
* Root Handler
|
|
147
|
+
*/
|
|
148
|
+
async helloRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RootResponse>> {
|
|
149
|
+
const requestOptions = await this.helloRequestOpts();
|
|
150
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
121
151
|
|
|
122
152
|
return new runtime.JSONApiResponse(response, (jsonValue) => RootResponseFromJSON(jsonValue));
|
|
123
153
|
}
|