@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
|
@@ -32,6 +32,14 @@ export interface GetChunkLineageRequest {
|
|
|
32
32
|
* @interface ChunkLineagesApiInterface
|
|
33
33
|
*/
|
|
34
34
|
export interface ChunkLineagesApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for createChunkLineage without sending the request
|
|
37
|
+
* @param {CreateChunkLineageRequest} createChunkLineageRequest
|
|
38
|
+
* @param {string} [ksUat]
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof ChunkLineagesApiInterface
|
|
41
|
+
*/
|
|
42
|
+
createChunkLineageRequestOpts(requestParameters: CreateChunkLineageOperationRequest): Promise<runtime.RequestOpts>;
|
|
35
43
|
/**
|
|
36
44
|
* 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.
|
|
37
45
|
* @summary Create Chunk Lineage Handler
|
|
@@ -47,6 +55,15 @@ export interface ChunkLineagesApiInterface {
|
|
|
47
55
|
* Create Chunk Lineage Handler
|
|
48
56
|
*/
|
|
49
57
|
createChunkLineage(requestParameters: CreateChunkLineageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkLineageResponse>>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for deleteChunkLineage without sending the request
|
|
60
|
+
* @param {string} parentChunkId Parent chunk ID
|
|
61
|
+
* @param {string} chunkId Child chunk ID
|
|
62
|
+
* @param {string} [ksUat]
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof ChunkLineagesApiInterface
|
|
65
|
+
*/
|
|
66
|
+
deleteChunkLineageRequestOpts(requestParameters: DeleteChunkLineageRequest): Promise<runtime.RequestOpts>;
|
|
50
67
|
/**
|
|
51
68
|
* Delete a single lineage edge between parent and child chunks.
|
|
52
69
|
* @summary Delete Chunk Lineage Handler
|
|
@@ -63,6 +80,15 @@ export interface ChunkLineagesApiInterface {
|
|
|
63
80
|
* Delete Chunk Lineage Handler
|
|
64
81
|
*/
|
|
65
82
|
deleteChunkLineage(requestParameters: DeleteChunkLineageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Creates request options for getChunkLineage without sending the request
|
|
85
|
+
* @param {string} chunkId
|
|
86
|
+
* @param {number} [maxDepth]
|
|
87
|
+
* @param {string} [ksUat]
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof ChunkLineagesApiInterface
|
|
90
|
+
*/
|
|
91
|
+
getChunkLineageRequestOpts(requestParameters: GetChunkLineageRequest): Promise<runtime.RequestOpts>;
|
|
66
92
|
/**
|
|
67
93
|
* Get lineage graph for a chunk. Traverses both ancestors and descendants up to max_depth, returning enriched nodes and edges.
|
|
68
94
|
* @summary Get Chunk Lineage Handler
|
|
@@ -84,6 +110,10 @@ export interface ChunkLineagesApiInterface {
|
|
|
84
110
|
*
|
|
85
111
|
*/
|
|
86
112
|
export declare class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLineagesApiInterface {
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for createChunkLineage without sending the request
|
|
115
|
+
*/
|
|
116
|
+
createChunkLineageRequestOpts(requestParameters: CreateChunkLineageOperationRequest): Promise<runtime.RequestOpts>;
|
|
87
117
|
/**
|
|
88
118
|
* 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.
|
|
89
119
|
* Create Chunk Lineage Handler
|
|
@@ -94,6 +124,10 @@ export declare class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLi
|
|
|
94
124
|
* Create Chunk Lineage Handler
|
|
95
125
|
*/
|
|
96
126
|
createChunkLineage(requestParameters: CreateChunkLineageOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkLineageResponse>>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for deleteChunkLineage without sending the request
|
|
129
|
+
*/
|
|
130
|
+
deleteChunkLineageRequestOpts(requestParameters: DeleteChunkLineageRequest): Promise<runtime.RequestOpts>;
|
|
97
131
|
/**
|
|
98
132
|
* Delete a single lineage edge between parent and child chunks.
|
|
99
133
|
* Delete Chunk Lineage Handler
|
|
@@ -104,6 +138,10 @@ export declare class ChunkLineagesApi extends runtime.BaseAPI implements ChunkLi
|
|
|
104
138
|
* Delete Chunk Lineage Handler
|
|
105
139
|
*/
|
|
106
140
|
deleteChunkLineage(requestParameters: DeleteChunkLineageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Creates request options for getChunkLineage without sending the request
|
|
143
|
+
*/
|
|
144
|
+
getChunkLineageRequestOpts(requestParameters: GetChunkLineageRequest): Promise<runtime.RequestOpts>;
|
|
107
145
|
/**
|
|
108
146
|
* Get lineage graph for a chunk. Traverses both ancestors and descendants up to max_depth, returning enriched nodes and edges.
|
|
109
147
|
* Get Chunk Lineage Handler
|
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class ChunkLineagesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Create Chunk Lineage Handler
|
|
33
|
+
* Creates request options for createChunkLineage without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
createChunkLineageRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['createChunkLineageRequest'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('createChunkLineageRequest', 'Required parameter "createChunkLineageRequest" was null or undefined when calling createChunkLineage().');
|
|
@@ -42,13 +41,23 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
43
|
let urlPath = `/v1/chunk-lineages`;
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'POST',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
49
|
body: (0, index_1.CreateChunkLineageRequestToJSON)(requestParameters['createChunkLineageRequest']),
|
|
51
|
-
}
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 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.
|
|
55
|
+
* Create Chunk Lineage Handler
|
|
56
|
+
*/
|
|
57
|
+
createChunkLineageRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.createChunkLineageRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
52
61
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ChunkLineageResponseFromJSON));
|
|
53
62
|
});
|
|
54
63
|
}
|
|
@@ -63,10 +72,9 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
63
72
|
});
|
|
64
73
|
}
|
|
65
74
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Delete Chunk Lineage Handler
|
|
75
|
+
* Creates request options for deleteChunkLineage without sending the request
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
deleteChunkLineageRequestOpts(requestParameters) {
|
|
70
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
79
|
if (requestParameters['parentChunkId'] == null) {
|
|
72
80
|
throw new runtime.RequiredError('parentChunkId', 'Required parameter "parentChunkId" was null or undefined when calling deleteChunkLineage().');
|
|
@@ -83,12 +91,22 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
83
91
|
}
|
|
84
92
|
const headerParameters = {};
|
|
85
93
|
let urlPath = `/v1/chunk-lineages`;
|
|
86
|
-
|
|
94
|
+
return {
|
|
87
95
|
path: urlPath,
|
|
88
96
|
method: 'DELETE',
|
|
89
97
|
headers: headerParameters,
|
|
90
98
|
query: queryParameters,
|
|
91
|
-
}
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Delete a single lineage edge between parent and child chunks.
|
|
104
|
+
* Delete Chunk Lineage Handler
|
|
105
|
+
*/
|
|
106
|
+
deleteChunkLineageRaw(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const requestOptions = yield this.deleteChunkLineageRequestOpts(requestParameters);
|
|
109
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
92
110
|
return new runtime.VoidApiResponse(response);
|
|
93
111
|
});
|
|
94
112
|
}
|
|
@@ -102,10 +120,9 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
102
120
|
});
|
|
103
121
|
}
|
|
104
122
|
/**
|
|
105
|
-
*
|
|
106
|
-
* Get Chunk Lineage Handler
|
|
123
|
+
* Creates request options for getChunkLineage without sending the request
|
|
107
124
|
*/
|
|
108
|
-
|
|
125
|
+
getChunkLineageRequestOpts(requestParameters) {
|
|
109
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
127
|
if (requestParameters['chunkId'] == null) {
|
|
111
128
|
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling getChunkLineage().');
|
|
@@ -117,12 +134,22 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
117
134
|
const headerParameters = {};
|
|
118
135
|
let urlPath = `/v1/chunk-lineages/{chunk_id}`;
|
|
119
136
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
120
|
-
|
|
137
|
+
return {
|
|
121
138
|
path: urlPath,
|
|
122
139
|
method: 'GET',
|
|
123
140
|
headers: headerParameters,
|
|
124
141
|
query: queryParameters,
|
|
125
|
-
}
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get lineage graph for a chunk. Traverses both ancestors and descendants up to max_depth, returning enriched nodes and edges.
|
|
147
|
+
* Get Chunk Lineage Handler
|
|
148
|
+
*/
|
|
149
|
+
getChunkLineageRaw(requestParameters, initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const requestOptions = yield this.getChunkLineageRequestOpts(requestParameters);
|
|
152
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
126
153
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LineageGraphResponseFromJSON)(jsonValue));
|
|
127
154
|
});
|
|
128
155
|
}
|
package/dist/apis/ChunksApi.d.ts
CHANGED
|
@@ -44,6 +44,14 @@ export interface UpdateChunkMetadataOperationRequest {
|
|
|
44
44
|
* @interface ChunksApiInterface
|
|
45
45
|
*/
|
|
46
46
|
export interface ChunksApiInterface {
|
|
47
|
+
/**
|
|
48
|
+
* Creates request options for createChunk without sending the request
|
|
49
|
+
* @param {CreateChunkRequest} createChunkRequest
|
|
50
|
+
* @param {string} [ksUat]
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
* @memberof ChunksApiInterface
|
|
53
|
+
*/
|
|
54
|
+
createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts>;
|
|
47
55
|
/**
|
|
48
56
|
* 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.
|
|
49
57
|
* @summary Create Chunk Handler
|
|
@@ -59,6 +67,14 @@ export interface ChunksApiInterface {
|
|
|
59
67
|
* Create Chunk Handler
|
|
60
68
|
*/
|
|
61
69
|
createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for deleteChunk without sending the request
|
|
72
|
+
* @param {string} chunkId
|
|
73
|
+
* @param {string} [ksUat]
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
* @memberof ChunksApiInterface
|
|
76
|
+
*/
|
|
77
|
+
deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts>;
|
|
62
78
|
/**
|
|
63
79
|
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
64
80
|
* @summary Delete Chunk Handler
|
|
@@ -74,6 +90,14 @@ export interface ChunksApiInterface {
|
|
|
74
90
|
* Delete Chunk Handler
|
|
75
91
|
*/
|
|
76
92
|
deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates request options for getChunk without sending the request
|
|
95
|
+
* @param {string} chunkId
|
|
96
|
+
* @param {string} [ksUat]
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
* @memberof ChunksApiInterface
|
|
99
|
+
*/
|
|
100
|
+
getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts>;
|
|
77
101
|
/**
|
|
78
102
|
* Get a chunk by its ID, including content.
|
|
79
103
|
* @summary Get Chunk Handler
|
|
@@ -90,7 +114,15 @@ export interface ChunksApiInterface {
|
|
|
90
114
|
*/
|
|
91
115
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
92
116
|
/**
|
|
93
|
-
*
|
|
117
|
+
* Creates request options for searchChunks without sending the request
|
|
118
|
+
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
119
|
+
* @param {string} [ksUat]
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof ChunksApiInterface
|
|
122
|
+
*/
|
|
123
|
+
searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts>;
|
|
124
|
+
/**
|
|
125
|
+
* 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.
|
|
94
126
|
* @summary Search Chunks Handler
|
|
95
127
|
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
96
128
|
* @param {string} [ksUat]
|
|
@@ -100,10 +132,19 @@ export interface ChunksApiInterface {
|
|
|
100
132
|
*/
|
|
101
133
|
searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
|
|
102
134
|
/**
|
|
103
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
135
|
+
* 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.
|
|
104
136
|
* Search Chunks Handler
|
|
105
137
|
*/
|
|
106
138
|
searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
|
|
139
|
+
/**
|
|
140
|
+
* Creates request options for updateChunkContent without sending the request
|
|
141
|
+
* @param {string} chunkId
|
|
142
|
+
* @param {UpdateChunkContentRequest} updateChunkContentRequest
|
|
143
|
+
* @param {string} [ksUat]
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
* @memberof ChunksApiInterface
|
|
146
|
+
*/
|
|
147
|
+
updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts>;
|
|
107
148
|
/**
|
|
108
149
|
* 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.
|
|
109
150
|
* @summary Update Chunk Content Handler
|
|
@@ -120,6 +161,15 @@ export interface ChunksApiInterface {
|
|
|
120
161
|
* Update Chunk Content Handler
|
|
121
162
|
*/
|
|
122
163
|
updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
166
|
+
* @param {string} chunkId
|
|
167
|
+
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
168
|
+
* @param {string} [ksUat]
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
* @memberof ChunksApiInterface
|
|
171
|
+
*/
|
|
172
|
+
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
123
173
|
/**
|
|
124
174
|
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
125
175
|
* @summary Update Chunk Metadata Handler
|
|
@@ -141,6 +191,10 @@ export interface ChunksApiInterface {
|
|
|
141
191
|
*
|
|
142
192
|
*/
|
|
143
193
|
export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
|
|
194
|
+
/**
|
|
195
|
+
* Creates request options for createChunk without sending the request
|
|
196
|
+
*/
|
|
197
|
+
createChunkRequestOpts(requestParameters: CreateChunkOperationRequest): Promise<runtime.RequestOpts>;
|
|
144
198
|
/**
|
|
145
199
|
* 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.
|
|
146
200
|
* Create Chunk Handler
|
|
@@ -151,6 +205,10 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
151
205
|
* Create Chunk Handler
|
|
152
206
|
*/
|
|
153
207
|
createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
208
|
+
/**
|
|
209
|
+
* Creates request options for deleteChunk without sending the request
|
|
210
|
+
*/
|
|
211
|
+
deleteChunkRequestOpts(requestParameters: DeleteChunkRequest): Promise<runtime.RequestOpts>;
|
|
154
212
|
/**
|
|
155
213
|
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
156
214
|
* Delete Chunk Handler
|
|
@@ -161,6 +219,10 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
161
219
|
* Delete Chunk Handler
|
|
162
220
|
*/
|
|
163
221
|
deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Creates request options for getChunk without sending the request
|
|
224
|
+
*/
|
|
225
|
+
getChunkRequestOpts(requestParameters: GetChunkRequest): Promise<runtime.RequestOpts>;
|
|
164
226
|
/**
|
|
165
227
|
* Get a chunk by its ID, including content.
|
|
166
228
|
* Get Chunk Handler
|
|
@@ -172,15 +234,23 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
172
234
|
*/
|
|
173
235
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
174
236
|
/**
|
|
175
|
-
*
|
|
237
|
+
* Creates request options for searchChunks without sending the request
|
|
238
|
+
*/
|
|
239
|
+
searchChunksRequestOpts(requestParameters: SearchChunksRequest): Promise<runtime.RequestOpts>;
|
|
240
|
+
/**
|
|
241
|
+
* 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.
|
|
176
242
|
* Search Chunks Handler
|
|
177
243
|
*/
|
|
178
244
|
searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
|
|
179
245
|
/**
|
|
180
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
246
|
+
* 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.
|
|
181
247
|
* Search Chunks Handler
|
|
182
248
|
*/
|
|
183
249
|
searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
|
|
250
|
+
/**
|
|
251
|
+
* Creates request options for updateChunkContent without sending the request
|
|
252
|
+
*/
|
|
253
|
+
updateChunkContentRequestOpts(requestParameters: UpdateChunkContentOperationRequest): Promise<runtime.RequestOpts>;
|
|
184
254
|
/**
|
|
185
255
|
* 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.
|
|
186
256
|
* Update Chunk Content Handler
|
|
@@ -191,6 +261,10 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
191
261
|
* Update Chunk Content Handler
|
|
192
262
|
*/
|
|
193
263
|
updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
266
|
+
*/
|
|
267
|
+
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
194
268
|
/**
|
|
195
269
|
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
196
270
|
* Update Chunk Metadata Handler
|
package/dist/apis/ChunksApi.js
CHANGED
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class ChunksApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Create Chunk Handler
|
|
33
|
+
* Creates request options for createChunk without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
createChunkRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['createChunkRequest'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('createChunkRequest', 'Required parameter "createChunkRequest" was null or undefined when calling createChunk().');
|
|
@@ -42,13 +41,23 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
43
|
let urlPath = `/v1/chunks`;
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'POST',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
49
|
body: (0, index_1.CreateChunkRequestToJSON)(requestParameters['createChunkRequest']),
|
|
51
|
-
}
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 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.
|
|
55
|
+
* Create Chunk Handler
|
|
56
|
+
*/
|
|
57
|
+
createChunkRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.createChunkRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
52
61
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkResponseFromJSON)(jsonValue));
|
|
53
62
|
});
|
|
54
63
|
}
|
|
@@ -63,10 +72,9 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
63
72
|
});
|
|
64
73
|
}
|
|
65
74
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Delete Chunk Handler
|
|
75
|
+
* Creates request options for deleteChunk without sending the request
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
deleteChunkRequestOpts(requestParameters) {
|
|
70
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
79
|
if (requestParameters['chunkId'] == null) {
|
|
72
80
|
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling deleteChunk().');
|
|
@@ -75,12 +83,22 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
75
83
|
const headerParameters = {};
|
|
76
84
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
77
85
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
78
|
-
|
|
86
|
+
return {
|
|
79
87
|
path: urlPath,
|
|
80
88
|
method: 'DELETE',
|
|
81
89
|
headers: headerParameters,
|
|
82
90
|
query: queryParameters,
|
|
83
|
-
}
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
|
|
96
|
+
* Delete Chunk Handler
|
|
97
|
+
*/
|
|
98
|
+
deleteChunkRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.deleteChunkRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
84
102
|
return new runtime.VoidApiResponse(response);
|
|
85
103
|
});
|
|
86
104
|
}
|
|
@@ -94,10 +112,9 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
94
112
|
});
|
|
95
113
|
}
|
|
96
114
|
/**
|
|
97
|
-
*
|
|
98
|
-
* Get Chunk Handler
|
|
115
|
+
* Creates request options for getChunk without sending the request
|
|
99
116
|
*/
|
|
100
|
-
|
|
117
|
+
getChunkRequestOpts(requestParameters) {
|
|
101
118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
119
|
if (requestParameters['chunkId'] == null) {
|
|
103
120
|
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling getChunk().');
|
|
@@ -106,12 +123,22 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
106
123
|
const headerParameters = {};
|
|
107
124
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
108
125
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
109
|
-
|
|
126
|
+
return {
|
|
110
127
|
path: urlPath,
|
|
111
128
|
method: 'GET',
|
|
112
129
|
headers: headerParameters,
|
|
113
130
|
query: queryParameters,
|
|
114
|
-
}
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get a chunk by its ID, including content.
|
|
136
|
+
* Get Chunk Handler
|
|
137
|
+
*/
|
|
138
|
+
getChunkRaw(requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const requestOptions = yield this.getChunkRequestOpts(requestParameters);
|
|
141
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
115
142
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkResponseFromJSON)(jsonValue));
|
|
116
143
|
});
|
|
117
144
|
}
|
|
@@ -126,10 +153,9 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
126
153
|
});
|
|
127
154
|
}
|
|
128
155
|
/**
|
|
129
|
-
*
|
|
130
|
-
* Search Chunks Handler
|
|
156
|
+
* Creates request options for searchChunks without sending the request
|
|
131
157
|
*/
|
|
132
|
-
|
|
158
|
+
searchChunksRequestOpts(requestParameters) {
|
|
133
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
160
|
if (requestParameters['chunkSearchRequest'] == null) {
|
|
135
161
|
throw new runtime.RequiredError('chunkSearchRequest', 'Required parameter "chunkSearchRequest" was null or undefined when calling searchChunks().');
|
|
@@ -138,18 +164,28 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
138
164
|
const headerParameters = {};
|
|
139
165
|
headerParameters['Content-Type'] = 'application/json';
|
|
140
166
|
let urlPath = `/v1/chunks/search`;
|
|
141
|
-
|
|
167
|
+
return {
|
|
142
168
|
path: urlPath,
|
|
143
169
|
method: 'POST',
|
|
144
170
|
headers: headerParameters,
|
|
145
171
|
query: queryParameters,
|
|
146
172
|
body: (0, index_1.ChunkSearchRequestToJSON)(requestParameters['chunkSearchRequest']),
|
|
147
|
-
}
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 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.
|
|
178
|
+
* Search Chunks Handler
|
|
179
|
+
*/
|
|
180
|
+
searchChunksRaw(requestParameters, initOverrides) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
const requestOptions = yield this.searchChunksRequestOpts(requestParameters);
|
|
183
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
148
184
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ScoredChunkResponseFromJSON));
|
|
149
185
|
});
|
|
150
186
|
}
|
|
151
187
|
/**
|
|
152
|
-
* Semantic search over chunks using vector similarity. Combines
|
|
188
|
+
* 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.
|
|
153
189
|
* Search Chunks Handler
|
|
154
190
|
*/
|
|
155
191
|
searchChunks(requestParameters, initOverrides) {
|
|
@@ -159,10 +195,9 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
159
195
|
});
|
|
160
196
|
}
|
|
161
197
|
/**
|
|
162
|
-
*
|
|
163
|
-
* Update Chunk Content Handler
|
|
198
|
+
* Creates request options for updateChunkContent without sending the request
|
|
164
199
|
*/
|
|
165
|
-
|
|
200
|
+
updateChunkContentRequestOpts(requestParameters) {
|
|
166
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
202
|
if (requestParameters['chunkId'] == null) {
|
|
168
203
|
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling updateChunkContent().');
|
|
@@ -175,13 +210,23 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
175
210
|
headerParameters['Content-Type'] = 'application/json';
|
|
176
211
|
let urlPath = `/v1/chunks/{chunk_id}/content`;
|
|
177
212
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
178
|
-
|
|
213
|
+
return {
|
|
179
214
|
path: urlPath,
|
|
180
215
|
method: 'PATCH',
|
|
181
216
|
headers: headerParameters,
|
|
182
217
|
query: queryParameters,
|
|
183
218
|
body: (0, index_1.UpdateChunkContentRequestToJSON)(requestParameters['updateChunkContentRequest']),
|
|
184
|
-
}
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 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.
|
|
224
|
+
* Update Chunk Content Handler
|
|
225
|
+
*/
|
|
226
|
+
updateChunkContentRaw(requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const requestOptions = yield this.updateChunkContentRequestOpts(requestParameters);
|
|
229
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
185
230
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkResponseFromJSON)(jsonValue));
|
|
186
231
|
});
|
|
187
232
|
}
|
|
@@ -196,10 +241,9 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
196
241
|
});
|
|
197
242
|
}
|
|
198
243
|
/**
|
|
199
|
-
*
|
|
200
|
-
* Update Chunk Metadata Handler
|
|
244
|
+
* Creates request options for updateChunkMetadata without sending the request
|
|
201
245
|
*/
|
|
202
|
-
|
|
246
|
+
updateChunkMetadataRequestOpts(requestParameters) {
|
|
203
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
248
|
if (requestParameters['chunkId'] == null) {
|
|
205
249
|
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling updateChunkMetadata().');
|
|
@@ -212,13 +256,23 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
212
256
|
headerParameters['Content-Type'] = 'application/json';
|
|
213
257
|
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
214
258
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
215
|
-
|
|
259
|
+
return {
|
|
216
260
|
path: urlPath,
|
|
217
261
|
method: 'PATCH',
|
|
218
262
|
headers: headerParameters,
|
|
219
263
|
query: queryParameters,
|
|
220
264
|
body: (0, index_1.UpdateChunkMetadataRequestToJSON)(requestParameters['updateChunkMetadataRequest']),
|
|
221
|
-
}
|
|
265
|
+
};
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
|
|
270
|
+
* Update Chunk Metadata Handler
|
|
271
|
+
*/
|
|
272
|
+
updateChunkMetadataRaw(requestParameters, initOverrides) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
const requestOptions = yield this.updateChunkMetadataRequestOpts(requestParameters);
|
|
275
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
222
276
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkResponseFromJSON)(jsonValue));
|
|
223
277
|
});
|
|
224
278
|
}
|
|
@@ -18,6 +18,12 @@ import type { HealthCheckResponse, RootResponse } from '../models/index';
|
|
|
18
18
|
* @interface DefaultApiInterface
|
|
19
19
|
*/
|
|
20
20
|
export interface DefaultApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for healthCheck without sending the request
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @memberof DefaultApiInterface
|
|
25
|
+
*/
|
|
26
|
+
healthCheckRequestOpts(): Promise<runtime.RequestOpts>;
|
|
21
27
|
/**
|
|
22
28
|
* Health check endpoint.
|
|
23
29
|
* @summary Health Check Handler
|
|
@@ -31,6 +37,12 @@ export interface DefaultApiInterface {
|
|
|
31
37
|
* Health Check Handler
|
|
32
38
|
*/
|
|
33
39
|
healthCheck(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for hello without sending the request
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof DefaultApiInterface
|
|
44
|
+
*/
|
|
45
|
+
helloRequestOpts(): Promise<runtime.RequestOpts>;
|
|
34
46
|
/**
|
|
35
47
|
* Root endpoint.
|
|
36
48
|
* @summary Root Handler
|
|
@@ -49,6 +61,10 @@ export interface DefaultApiInterface {
|
|
|
49
61
|
*
|
|
50
62
|
*/
|
|
51
63
|
export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
64
|
+
/**
|
|
65
|
+
* Creates request options for healthCheck without sending the request
|
|
66
|
+
*/
|
|
67
|
+
healthCheckRequestOpts(): Promise<runtime.RequestOpts>;
|
|
52
68
|
/**
|
|
53
69
|
* Health check endpoint.
|
|
54
70
|
* Health Check Handler
|
|
@@ -59,6 +75,10 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
59
75
|
* Health Check Handler
|
|
60
76
|
*/
|
|
61
77
|
healthCheck(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for hello without sending the request
|
|
80
|
+
*/
|
|
81
|
+
helloRequestOpts(): Promise<runtime.RequestOpts>;
|
|
62
82
|
/**
|
|
63
83
|
* Root endpoint.
|
|
64
84
|
* Root Handler
|