@knowledge-stack/ksapi 1.23.5 → 1.25.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 +130 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +282 -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 +161 -5
- package/dist/apis/ChunksApi.js +168 -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 +140 -1
- package/dist/apis/PathPartsApi.js +141 -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 +103 -0
- package/dist/apis/TenantsApi.js +112 -40
- 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 +161 -5
- package/dist/esm/apis/ChunksApi.js +169 -32
- 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 +140 -1
- package/dist/esm/apis/PathPartsApi.js +142 -21
- 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 +103 -0
- package/dist/esm/apis/TenantsApi.js +112 -40
- 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/ChunkBulkResponse.d.ts +139 -0
- package/dist/esm/models/ChunkBulkResponse.js +100 -0
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +19 -16
- package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/esm/models/ChunkSearchRequest.js +6 -2
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +10 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +10 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -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/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +88 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/esm/models/SubtreeChunkGroup.js +52 -0
- package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/esm/models/SubtreeChunksResponse.js +45 -0
- package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
- package/dist/esm/models/index.d.ts +10 -4
- package/dist/esm/models/index.js +10 -4
- package/dist/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/models/ChunkBulkResponse.js +108 -0
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +25 -22
- package/dist/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/models/ChunkSearchRequest.js +6 -2
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +11 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +11 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -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/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +96 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/models/SubtreeChunkGroup.js +60 -0
- package/dist/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/models/SubtreeChunksResponse.js +53 -0
- package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/models/VersionChunkIdsResponse.js +52 -0
- package/dist/models/index.d.ts +10 -4
- package/dist/models/index.js +10 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkBulkResponse.md +65 -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 +51 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +590 -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 +461 -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/SubtreeChunkGroup.md +39 -0
- package/docs/SubtreeChunksResponse.md +35 -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/VersionChunkIdsResponse.md +35 -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 +298 -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 +260 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +183 -40
- 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/ChunkBulkResponse.ts +232 -0
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +43 -53
- package/src/models/ChunkSearchRequest.ts +20 -4
- package/src/models/DocumentResponse.ts +17 -0
- package/src/models/FolderResponse.ts +19 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/SectionContentItem.ts +182 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/SubtreeChunkGroup.ts +104 -0
- package/src/models/SubtreeChunksResponse.ts +91 -0
- package/src/models/VersionChunkIdsResponse.ts +83 -0
- package/src/models/index.ts +10 -4
- 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/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/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
package/src/apis/ChunksApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ChunkBulkResponse,
|
|
18
19
|
ChunkResponse,
|
|
19
20
|
ChunkSearchRequest,
|
|
20
21
|
CreateChunkRequest,
|
|
@@ -22,8 +23,11 @@ import type {
|
|
|
22
23
|
ScoredChunkResponse,
|
|
23
24
|
UpdateChunkContentRequest,
|
|
24
25
|
UpdateChunkMetadataRequest,
|
|
26
|
+
VersionChunkIdsResponse,
|
|
25
27
|
} from '../models/index';
|
|
26
28
|
import {
|
|
29
|
+
ChunkBulkResponseFromJSON,
|
|
30
|
+
ChunkBulkResponseToJSON,
|
|
27
31
|
ChunkResponseFromJSON,
|
|
28
32
|
ChunkResponseToJSON,
|
|
29
33
|
ChunkSearchRequestFromJSON,
|
|
@@ -38,6 +42,8 @@ import {
|
|
|
38
42
|
UpdateChunkContentRequestToJSON,
|
|
39
43
|
UpdateChunkMetadataRequestFromJSON,
|
|
40
44
|
UpdateChunkMetadataRequestToJSON,
|
|
45
|
+
VersionChunkIdsResponseFromJSON,
|
|
46
|
+
VersionChunkIdsResponseToJSON,
|
|
41
47
|
} from '../models/index';
|
|
42
48
|
|
|
43
49
|
export interface CreateChunkOperationRequest {
|
|
@@ -55,6 +61,16 @@ export interface GetChunkRequest {
|
|
|
55
61
|
ksUat?: string | null;
|
|
56
62
|
}
|
|
57
63
|
|
|
64
|
+
export interface GetChunksBulkRequest {
|
|
65
|
+
chunkIds?: Array<string> | null;
|
|
66
|
+
ksUat?: string | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface GetVersionChunkIdsRequest {
|
|
70
|
+
documentVersionId: string;
|
|
71
|
+
ksUat?: string | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
58
74
|
export interface SearchChunksRequest {
|
|
59
75
|
chunkSearchRequest: ChunkSearchRequest;
|
|
60
76
|
ksUat?: string | null;
|
|
@@ -79,6 +95,15 @@ export interface UpdateChunkMetadataOperationRequest {
|
|
|
79
95
|
* @interface ChunksApiInterface
|
|
80
96
|
*/
|
|
81
97
|
export interface ChunksApiInterface {
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for createChunk without sending the request
|
|
100
|
+
* @param {CreateChunkRequest} createChunkRequest
|
|
101
|
+
* @param {string} [ksUat]
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
* @memberof ChunksApiInterface
|
|
104
|
+
*/
|
|
105
|
+
createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts>;
|
|
106
|
+
|
|
82
107
|
/**
|
|
83
108
|
* 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
109
|
* @summary Create Chunk Handler
|
|
@@ -96,6 +121,15 @@ export interface ChunksApiInterface {
|
|
|
96
121
|
*/
|
|
97
122
|
createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
98
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Creates request options for deleteChunk without sending the request
|
|
126
|
+
* @param {string} chunkId
|
|
127
|
+
* @param {string} [ksUat]
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof ChunksApiInterface
|
|
130
|
+
*/
|
|
131
|
+
deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts>;
|
|
132
|
+
|
|
99
133
|
/**
|
|
100
134
|
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
101
135
|
* @summary Delete Chunk Handler
|
|
@@ -113,6 +147,15 @@ export interface ChunksApiInterface {
|
|
|
113
147
|
*/
|
|
114
148
|
deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
115
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Creates request options for getChunk without sending the request
|
|
152
|
+
* @param {string} chunkId
|
|
153
|
+
* @param {string} [ksUat]
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
* @memberof ChunksApiInterface
|
|
156
|
+
*/
|
|
157
|
+
getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts>;
|
|
158
|
+
|
|
116
159
|
/**
|
|
117
160
|
* Get a chunk by its ID, including content.
|
|
118
161
|
* @summary Get Chunk Handler
|
|
@@ -131,7 +174,68 @@ export interface ChunksApiInterface {
|
|
|
131
174
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
132
175
|
|
|
133
176
|
/**
|
|
134
|
-
*
|
|
177
|
+
* Creates request options for getChunksBulk without sending the request
|
|
178
|
+
* @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
|
|
179
|
+
* @param {string} [ksUat]
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
* @memberof ChunksApiInterface
|
|
182
|
+
*/
|
|
183
|
+
getChunksBulkRequestOpts(requestParameters: GetChunksBulkRequest): Promise<runtime.RequestOpts>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
187
|
+
* @summary Get Chunks Bulk Handler
|
|
188
|
+
* @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
|
|
189
|
+
* @param {string} [ksUat]
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
* @memberof ChunksApiInterface
|
|
193
|
+
*/
|
|
194
|
+
getChunksBulkRaw(requestParameters: GetChunksBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChunkBulkResponse>>>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
198
|
+
* Get Chunks Bulk Handler
|
|
199
|
+
*/
|
|
200
|
+
getChunksBulk(requestParameters: GetChunksBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkBulkResponse>>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Creates request options for getVersionChunkIds without sending the request
|
|
204
|
+
* @param {string} documentVersionId Document version ID
|
|
205
|
+
* @param {string} [ksUat]
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
* @memberof ChunksApiInterface
|
|
208
|
+
*/
|
|
209
|
+
getVersionChunkIdsRequestOpts(requestParameters: GetVersionChunkIdsRequest): Promise<runtime.RequestOpts>;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
|
|
213
|
+
* @summary Get Version Chunk Ids Handler
|
|
214
|
+
* @param {string} documentVersionId Document version ID
|
|
215
|
+
* @param {string} [ksUat]
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
* @memberof ChunksApiInterface
|
|
219
|
+
*/
|
|
220
|
+
getVersionChunkIdsRaw(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionChunkIdsResponse>>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
|
|
224
|
+
* Get Version Chunk Ids Handler
|
|
225
|
+
*/
|
|
226
|
+
getVersionChunkIds(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionChunkIdsResponse>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Creates request options for searchChunks without sending the request
|
|
230
|
+
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
231
|
+
* @param {string} [ksUat]
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
* @memberof ChunksApiInterface
|
|
234
|
+
*/
|
|
235
|
+
searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts>;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
|
|
135
239
|
* @summary Search Chunks Handler
|
|
136
240
|
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
137
241
|
* @param {string} [ksUat]
|
|
@@ -142,11 +246,21 @@ export interface ChunksApiInterface {
|
|
|
142
246
|
searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
|
|
143
247
|
|
|
144
248
|
/**
|
|
145
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
249
|
+
* Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
|
|
146
250
|
* Search Chunks Handler
|
|
147
251
|
*/
|
|
148
252
|
searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
|
|
149
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Creates request options for updateChunkContent without sending the request
|
|
256
|
+
* @param {string} chunkId
|
|
257
|
+
* @param {UpdateChunkContentRequest} updateChunkContentRequest
|
|
258
|
+
* @param {string} [ksUat]
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof ChunksApiInterface
|
|
261
|
+
*/
|
|
262
|
+
updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts>;
|
|
263
|
+
|
|
150
264
|
/**
|
|
151
265
|
* 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
266
|
* @summary Update Chunk Content Handler
|
|
@@ -165,6 +279,16 @@ export interface ChunksApiInterface {
|
|
|
165
279
|
*/
|
|
166
280
|
updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
167
281
|
|
|
282
|
+
/**
|
|
283
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
284
|
+
* @param {string} chunkId
|
|
285
|
+
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
286
|
+
* @param {string} [ksUat]
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
* @memberof ChunksApiInterface
|
|
289
|
+
*/
|
|
290
|
+
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
291
|
+
|
|
168
292
|
/**
|
|
169
293
|
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
170
294
|
* @summary Update Chunk Metadata Handler
|
|
@@ -191,10 +315,9 @@ export interface ChunksApiInterface {
|
|
|
191
315
|
export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
192
316
|
|
|
193
317
|
/**
|
|
194
|
-
*
|
|
195
|
-
* Create Chunk Handler
|
|
318
|
+
* Creates request options for createChunk without sending the request
|
|
196
319
|
*/
|
|
197
|
-
async
|
|
320
|
+
async createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts> {
|
|
198
321
|
if (requestParameters['createChunkRequest'] == null) {
|
|
199
322
|
throw new runtime.RequiredError(
|
|
200
323
|
'createChunkRequest',
|
|
@@ -211,13 +334,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
211
334
|
|
|
212
335
|
let urlPath = `/v1/chunks`;
|
|
213
336
|
|
|
214
|
-
|
|
337
|
+
return {
|
|
215
338
|
path: urlPath,
|
|
216
339
|
method: 'POST',
|
|
217
340
|
headers: headerParameters,
|
|
218
341
|
query: queryParameters,
|
|
219
342
|
body: CreateChunkRequestToJSON(requestParameters['createChunkRequest']),
|
|
220
|
-
}
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* 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.
|
|
348
|
+
* Create Chunk Handler
|
|
349
|
+
*/
|
|
350
|
+
async createChunkRaw(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
351
|
+
const requestOptions = await this.createChunkRequestOpts(requestParameters);
|
|
352
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
221
353
|
|
|
222
354
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
223
355
|
}
|
|
@@ -232,10 +364,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
232
364
|
}
|
|
233
365
|
|
|
234
366
|
/**
|
|
235
|
-
*
|
|
236
|
-
* Delete Chunk Handler
|
|
367
|
+
* Creates request options for deleteChunk without sending the request
|
|
237
368
|
*/
|
|
238
|
-
async
|
|
369
|
+
async deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts> {
|
|
239
370
|
if (requestParameters['chunkId'] == null) {
|
|
240
371
|
throw new runtime.RequiredError(
|
|
241
372
|
'chunkId',
|
|
@@ -251,12 +382,21 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
251
382
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
252
383
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
253
384
|
|
|
254
|
-
|
|
385
|
+
return {
|
|
255
386
|
path: urlPath,
|
|
256
387
|
method: 'DELETE',
|
|
257
388
|
headers: headerParameters,
|
|
258
389
|
query: queryParameters,
|
|
259
|
-
}
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
395
|
+
* Delete Chunk Handler
|
|
396
|
+
*/
|
|
397
|
+
async deleteChunkRaw(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
398
|
+
const requestOptions = await this.deleteChunkRequestOpts(requestParameters);
|
|
399
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
260
400
|
|
|
261
401
|
return new runtime.VoidApiResponse(response);
|
|
262
402
|
}
|
|
@@ -270,10 +410,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
270
410
|
}
|
|
271
411
|
|
|
272
412
|
/**
|
|
273
|
-
*
|
|
274
|
-
* Get Chunk Handler
|
|
413
|
+
* Creates request options for getChunk without sending the request
|
|
275
414
|
*/
|
|
276
|
-
async
|
|
415
|
+
async getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts> {
|
|
277
416
|
if (requestParameters['chunkId'] == null) {
|
|
278
417
|
throw new runtime.RequiredError(
|
|
279
418
|
'chunkId',
|
|
@@ -289,12 +428,21 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
289
428
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
290
429
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
291
430
|
|
|
292
|
-
|
|
431
|
+
return {
|
|
293
432
|
path: urlPath,
|
|
294
433
|
method: 'GET',
|
|
295
434
|
headers: headerParameters,
|
|
296
435
|
query: queryParameters,
|
|
297
|
-
}
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Get a chunk by its ID, including content.
|
|
441
|
+
* Get Chunk Handler
|
|
442
|
+
*/
|
|
443
|
+
async getChunkRaw(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
444
|
+
const requestOptions = await this.getChunkRequestOpts(requestParameters);
|
|
445
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
298
446
|
|
|
299
447
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
300
448
|
}
|
|
@@ -309,10 +457,102 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
309
457
|
}
|
|
310
458
|
|
|
311
459
|
/**
|
|
312
|
-
*
|
|
313
|
-
* Search Chunks Handler
|
|
460
|
+
* Creates request options for getChunksBulk without sending the request
|
|
314
461
|
*/
|
|
315
|
-
async
|
|
462
|
+
async getChunksBulkRequestOpts(requestParameters: GetChunksBulkRequest): Promise<runtime.RequestOpts> {
|
|
463
|
+
const queryParameters: any = {};
|
|
464
|
+
|
|
465
|
+
if (requestParameters['chunkIds'] != null) {
|
|
466
|
+
queryParameters['chunk_ids'] = requestParameters['chunkIds'];
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
let urlPath = `/v1/chunks/bulk`;
|
|
473
|
+
|
|
474
|
+
return {
|
|
475
|
+
path: urlPath,
|
|
476
|
+
method: 'GET',
|
|
477
|
+
headers: headerParameters,
|
|
478
|
+
query: queryParameters,
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
484
|
+
* Get Chunks Bulk Handler
|
|
485
|
+
*/
|
|
486
|
+
async getChunksBulkRaw(requestParameters: GetChunksBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChunkBulkResponse>>> {
|
|
487
|
+
const requestOptions = await this.getChunksBulkRequestOpts(requestParameters);
|
|
488
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
489
|
+
|
|
490
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ChunkBulkResponseFromJSON));
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
495
|
+
* Get Chunks Bulk Handler
|
|
496
|
+
*/
|
|
497
|
+
async getChunksBulk(requestParameters: GetChunksBulkRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkBulkResponse>> {
|
|
498
|
+
const response = await this.getChunksBulkRaw(requestParameters, initOverrides);
|
|
499
|
+
return await response.value();
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Creates request options for getVersionChunkIds without sending the request
|
|
504
|
+
*/
|
|
505
|
+
async getVersionChunkIdsRequestOpts(requestParameters: GetVersionChunkIdsRequest): Promise<runtime.RequestOpts> {
|
|
506
|
+
if (requestParameters['documentVersionId'] == null) {
|
|
507
|
+
throw new runtime.RequiredError(
|
|
508
|
+
'documentVersionId',
|
|
509
|
+
'Required parameter "documentVersionId" was null or undefined when calling getVersionChunkIds().'
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
const queryParameters: any = {};
|
|
514
|
+
|
|
515
|
+
if (requestParameters['documentVersionId'] != null) {
|
|
516
|
+
queryParameters['document_version_id'] = requestParameters['documentVersionId'];
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
let urlPath = `/v1/chunks/version-chunk-ids`;
|
|
523
|
+
|
|
524
|
+
return {
|
|
525
|
+
path: urlPath,
|
|
526
|
+
method: 'GET',
|
|
527
|
+
headers: headerParameters,
|
|
528
|
+
query: queryParameters,
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
|
|
534
|
+
* Get Version Chunk Ids Handler
|
|
535
|
+
*/
|
|
536
|
+
async getVersionChunkIdsRaw(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionChunkIdsResponse>> {
|
|
537
|
+
const requestOptions = await this.getVersionChunkIdsRequestOpts(requestParameters);
|
|
538
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
539
|
+
|
|
540
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VersionChunkIdsResponseFromJSON(jsonValue));
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
|
|
545
|
+
* Get Version Chunk Ids Handler
|
|
546
|
+
*/
|
|
547
|
+
async getVersionChunkIds(requestParameters: GetVersionChunkIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionChunkIdsResponse> {
|
|
548
|
+
const response = await this.getVersionChunkIdsRaw(requestParameters, initOverrides);
|
|
549
|
+
return await response.value();
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Creates request options for searchChunks without sending the request
|
|
554
|
+
*/
|
|
555
|
+
async searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts> {
|
|
316
556
|
if (requestParameters['chunkSearchRequest'] == null) {
|
|
317
557
|
throw new runtime.RequiredError(
|
|
318
558
|
'chunkSearchRequest',
|
|
@@ -329,19 +569,28 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
329
569
|
|
|
330
570
|
let urlPath = `/v1/chunks/search`;
|
|
331
571
|
|
|
332
|
-
|
|
572
|
+
return {
|
|
333
573
|
path: urlPath,
|
|
334
574
|
method: 'POST',
|
|
335
575
|
headers: headerParameters,
|
|
336
576
|
query: queryParameters,
|
|
337
577
|
body: ChunkSearchRequestToJSON(requestParameters['chunkSearchRequest']),
|
|
338
|
-
}
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
|
|
583
|
+
* Search Chunks Handler
|
|
584
|
+
*/
|
|
585
|
+
async searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>> {
|
|
586
|
+
const requestOptions = await this.searchChunksRequestOpts(requestParameters);
|
|
587
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
339
588
|
|
|
340
589
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ScoredChunkResponseFromJSON));
|
|
341
590
|
}
|
|
342
591
|
|
|
343
592
|
/**
|
|
344
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
593
|
+
* Semantic search over chunks using Qdrant vector similarity. Combines vector similarity with path-based authorization and optional metadata filters. Uses Qdrant for vector search and hydrates results from Postgres.
|
|
345
594
|
* Search Chunks Handler
|
|
346
595
|
*/
|
|
347
596
|
async searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>> {
|
|
@@ -350,10 +599,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
350
599
|
}
|
|
351
600
|
|
|
352
601
|
/**
|
|
353
|
-
*
|
|
354
|
-
* Update Chunk Content Handler
|
|
602
|
+
* Creates request options for updateChunkContent without sending the request
|
|
355
603
|
*/
|
|
356
|
-
async
|
|
604
|
+
async updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts> {
|
|
357
605
|
if (requestParameters['chunkId'] == null) {
|
|
358
606
|
throw new runtime.RequiredError(
|
|
359
607
|
'chunkId',
|
|
@@ -378,13 +626,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
378
626
|
let urlPath = `/v1/chunks/{chunk_id}/content`;
|
|
379
627
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
380
628
|
|
|
381
|
-
|
|
629
|
+
return {
|
|
382
630
|
path: urlPath,
|
|
383
631
|
method: 'PATCH',
|
|
384
632
|
headers: headerParameters,
|
|
385
633
|
query: queryParameters,
|
|
386
634
|
body: UpdateChunkContentRequestToJSON(requestParameters['updateChunkContentRequest']),
|
|
387
|
-
}
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* 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.
|
|
640
|
+
* Update Chunk Content Handler
|
|
641
|
+
*/
|
|
642
|
+
async updateChunkContentRaw(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
643
|
+
const requestOptions = await this.updateChunkContentRequestOpts(requestParameters);
|
|
644
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
388
645
|
|
|
389
646
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
390
647
|
}
|
|
@@ -399,10 +656,9 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
399
656
|
}
|
|
400
657
|
|
|
401
658
|
/**
|
|
402
|
-
*
|
|
403
|
-
* Update Chunk Metadata Handler
|
|
659
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
404
660
|
*/
|
|
405
|
-
async
|
|
661
|
+
async updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts> {
|
|
406
662
|
if (requestParameters['chunkId'] == null) {
|
|
407
663
|
throw new runtime.RequiredError(
|
|
408
664
|
'chunkId',
|
|
@@ -427,13 +683,22 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
|
427
683
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
428
684
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
429
685
|
|
|
430
|
-
|
|
686
|
+
return {
|
|
431
687
|
path: urlPath,
|
|
432
688
|
method: 'PATCH',
|
|
433
689
|
headers: headerParameters,
|
|
434
690
|
query: queryParameters,
|
|
435
691
|
body: UpdateChunkMetadataRequestToJSON(requestParameters['updateChunkMetadataRequest']),
|
|
436
|
-
}
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
697
|
+
* Update Chunk Metadata Handler
|
|
698
|
+
*/
|
|
699
|
+
async updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
|
|
700
|
+
const requestOptions = await this.updateChunkMetadataRequestOpts(requestParameters);
|
|
701
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
437
702
|
|
|
438
703
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChunkResponseFromJSON(jsonValue));
|
|
439
704
|
}
|
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
|
}
|