@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/WorkflowsApi.ts
CHANGED
|
@@ -58,6 +58,15 @@ export interface WorkflowActionRequest {
|
|
|
58
58
|
* @interface WorkflowsApiInterface
|
|
59
59
|
*/
|
|
60
60
|
export interface WorkflowsApiInterface {
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for getWorkflow without sending the request
|
|
63
|
+
* @param {string} workflowId
|
|
64
|
+
* @param {string} [ksUat]
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof WorkflowsApiInterface
|
|
67
|
+
*/
|
|
68
|
+
getWorkflowRequestOpts(requestParameters: GetWorkflowRequest): Promise<runtime.RequestOpts>;
|
|
69
|
+
|
|
61
70
|
/**
|
|
62
71
|
* Get single workflow detail with live Temporal status.
|
|
63
72
|
* @summary Get Workflow Handler
|
|
@@ -75,6 +84,16 @@ export interface WorkflowsApiInterface {
|
|
|
75
84
|
*/
|
|
76
85
|
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
|
|
77
86
|
|
|
87
|
+
/**
|
|
88
|
+
* Creates request options for listWorkflows without sending the request
|
|
89
|
+
* @param {number} [limit] Number of items per page
|
|
90
|
+
* @param {number} [offset] Number of items to skip
|
|
91
|
+
* @param {string} [ksUat]
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof WorkflowsApiInterface
|
|
94
|
+
*/
|
|
95
|
+
listWorkflowsRequestOpts(requestParameters: ListWorkflowsRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
|
|
78
97
|
/**
|
|
79
98
|
* List all workflows for the current tenant (paginated, DB-backed).
|
|
80
99
|
* @summary List Workflows Handler
|
|
@@ -93,6 +112,16 @@ export interface WorkflowsApiInterface {
|
|
|
93
112
|
*/
|
|
94
113
|
listWorkflows(requestParameters: ListWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;
|
|
95
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for workflowAction without sending the request
|
|
117
|
+
* @param {string} workflowId
|
|
118
|
+
* @param {WorkflowAction} action Action to perform
|
|
119
|
+
* @param {string} [ksUat]
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof WorkflowsApiInterface
|
|
122
|
+
*/
|
|
123
|
+
workflowActionRequestOpts(requestParameters: WorkflowActionRequest): Promise<runtime.RequestOpts>;
|
|
124
|
+
|
|
96
125
|
/**
|
|
97
126
|
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
98
127
|
* @summary Workflow Action Handler
|
|
@@ -119,10 +148,9 @@ export interface WorkflowsApiInterface {
|
|
|
119
148
|
export class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterface {
|
|
120
149
|
|
|
121
150
|
/**
|
|
122
|
-
*
|
|
123
|
-
* Get Workflow Handler
|
|
151
|
+
* Creates request options for getWorkflow without sending the request
|
|
124
152
|
*/
|
|
125
|
-
async
|
|
153
|
+
async getWorkflowRequestOpts(requestParameters: GetWorkflowRequest): Promise<runtime.RequestOpts> {
|
|
126
154
|
if (requestParameters['workflowId'] == null) {
|
|
127
155
|
throw new runtime.RequiredError(
|
|
128
156
|
'workflowId',
|
|
@@ -138,12 +166,21 @@ export class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterfa
|
|
|
138
166
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
139
167
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
140
168
|
|
|
141
|
-
|
|
169
|
+
return {
|
|
142
170
|
path: urlPath,
|
|
143
171
|
method: 'GET',
|
|
144
172
|
headers: headerParameters,
|
|
145
173
|
query: queryParameters,
|
|
146
|
-
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Get single workflow detail with live Temporal status.
|
|
179
|
+
* Get Workflow Handler
|
|
180
|
+
*/
|
|
181
|
+
async getWorkflowRaw(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowDetailResponse>> {
|
|
182
|
+
const requestOptions = await this.getWorkflowRequestOpts(requestParameters);
|
|
183
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
147
184
|
|
|
148
185
|
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
|
|
149
186
|
}
|
|
@@ -158,10 +195,9 @@ export class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterfa
|
|
|
158
195
|
}
|
|
159
196
|
|
|
160
197
|
/**
|
|
161
|
-
*
|
|
162
|
-
* List Workflows Handler
|
|
198
|
+
* Creates request options for listWorkflows without sending the request
|
|
163
199
|
*/
|
|
164
|
-
async
|
|
200
|
+
async listWorkflowsRequestOpts(requestParameters: ListWorkflowsRequest): Promise<runtime.RequestOpts> {
|
|
165
201
|
const queryParameters: any = {};
|
|
166
202
|
|
|
167
203
|
if (requestParameters['limit'] != null) {
|
|
@@ -177,12 +213,21 @@ export class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterfa
|
|
|
177
213
|
|
|
178
214
|
let urlPath = `/v1/workflows`;
|
|
179
215
|
|
|
180
|
-
|
|
216
|
+
return {
|
|
181
217
|
path: urlPath,
|
|
182
218
|
method: 'GET',
|
|
183
219
|
headers: headerParameters,
|
|
184
220
|
query: queryParameters,
|
|
185
|
-
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* List all workflows for the current tenant (paginated, DB-backed).
|
|
226
|
+
* List Workflows Handler
|
|
227
|
+
*/
|
|
228
|
+
async listWorkflowsRaw(requestParameters: ListWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseWorkflowSummaryResponse>> {
|
|
229
|
+
const requestOptions = await this.listWorkflowsRequestOpts(requestParameters);
|
|
230
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
186
231
|
|
|
187
232
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseWorkflowSummaryResponseFromJSON(jsonValue));
|
|
188
233
|
}
|
|
@@ -197,10 +242,9 @@ export class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterfa
|
|
|
197
242
|
}
|
|
198
243
|
|
|
199
244
|
/**
|
|
200
|
-
*
|
|
201
|
-
* Workflow Action Handler
|
|
245
|
+
* Creates request options for workflowAction without sending the request
|
|
202
246
|
*/
|
|
203
|
-
async
|
|
247
|
+
async workflowActionRequestOpts(requestParameters: WorkflowActionRequest): Promise<runtime.RequestOpts> {
|
|
204
248
|
if (requestParameters['workflowId'] == null) {
|
|
205
249
|
throw new runtime.RequiredError(
|
|
206
250
|
'workflowId',
|
|
@@ -227,12 +271,21 @@ export class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterfa
|
|
|
227
271
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
228
272
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
229
273
|
|
|
230
|
-
|
|
274
|
+
return {
|
|
231
275
|
path: urlPath,
|
|
232
276
|
method: 'POST',
|
|
233
277
|
headers: headerParameters,
|
|
234
278
|
query: queryParameters,
|
|
235
|
-
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
284
|
+
* Workflow Action Handler
|
|
285
|
+
*/
|
|
286
|
+
async workflowActionRaw(requestParameters: WorkflowActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowActionResponse>> {
|
|
287
|
+
const requestOptions = await this.workflowActionRequestOpts(requestParameters);
|
|
288
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
236
289
|
|
|
237
290
|
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowActionResponseFromJSON(jsonValue));
|
|
238
291
|
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
17
|
+
import {
|
|
18
|
+
ChunkMetadataOutputFromJSON,
|
|
19
|
+
ChunkMetadataOutputFromJSONTyped,
|
|
20
|
+
ChunkMetadataOutputToJSON,
|
|
21
|
+
ChunkMetadataOutputToJSONTyped,
|
|
22
|
+
} from './ChunkMetadataOutput';
|
|
23
|
+
import type { ChunkType } from './ChunkType';
|
|
24
|
+
import {
|
|
25
|
+
ChunkTypeFromJSON,
|
|
26
|
+
ChunkTypeFromJSONTyped,
|
|
27
|
+
ChunkTypeToJSON,
|
|
28
|
+
ChunkTypeToJSONTyped,
|
|
29
|
+
} from './ChunkType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Chunk response with ancestor path part IDs for Qdrant payload construction.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ChunkBulkResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface ChunkBulkResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Chunk ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ChunkBulkResponse
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* PathPart ID
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ChunkBulkResponse
|
|
47
|
+
*/
|
|
48
|
+
pathPartId: string;
|
|
49
|
+
/**
|
|
50
|
+
* ChunkContent ID
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ChunkBulkResponse
|
|
53
|
+
*/
|
|
54
|
+
contentId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Chunk text content
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ChunkBulkResponse
|
|
59
|
+
*/
|
|
60
|
+
content: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ChunkType}
|
|
64
|
+
* @memberof ChunkBulkResponse
|
|
65
|
+
*/
|
|
66
|
+
chunkType: ChunkType;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ChunkMetadataOutput}
|
|
70
|
+
* @memberof ChunkBulkResponse
|
|
71
|
+
*/
|
|
72
|
+
chunkMetadata: ChunkMetadataOutput;
|
|
73
|
+
/**
|
|
74
|
+
* Parent PathPart ID
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ChunkBulkResponse
|
|
77
|
+
*/
|
|
78
|
+
parentPathId: string;
|
|
79
|
+
/**
|
|
80
|
+
* Previous sibling PathPart ID
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ChunkBulkResponse
|
|
83
|
+
*/
|
|
84
|
+
prevSiblingPathId?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Next sibling PathPart ID
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ChunkBulkResponse
|
|
89
|
+
*/
|
|
90
|
+
nextSiblingPathId?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Full materialized path from root
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ChunkBulkResponse
|
|
95
|
+
*/
|
|
96
|
+
materializedPath: string;
|
|
97
|
+
/**
|
|
98
|
+
* Whether this chunk is system-managed
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof ChunkBulkResponse
|
|
101
|
+
*/
|
|
102
|
+
systemManaged: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Tenant ID
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof ChunkBulkResponse
|
|
107
|
+
*/
|
|
108
|
+
tenantId: string;
|
|
109
|
+
/**
|
|
110
|
+
* Creation timestamp
|
|
111
|
+
* @type {Date}
|
|
112
|
+
* @memberof ChunkBulkResponse
|
|
113
|
+
*/
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
/**
|
|
116
|
+
* Last update timestamp
|
|
117
|
+
* @type {Date}
|
|
118
|
+
* @memberof ChunkBulkResponse
|
|
119
|
+
*/
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
/**
|
|
122
|
+
* Presigned URL to download the chunk's visual asset (6-hour validity)
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof ChunkBulkResponse
|
|
125
|
+
*/
|
|
126
|
+
assetS3Url?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* Ordered ancestor PathPart IDs from root to chunk
|
|
129
|
+
* @type {Array<string>}
|
|
130
|
+
* @memberof ChunkBulkResponse
|
|
131
|
+
*/
|
|
132
|
+
pathPartIdSegments: Array<string>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Check if a given object implements the ChunkBulkResponse interface.
|
|
139
|
+
*/
|
|
140
|
+
export function instanceOfChunkBulkResponse(value: object): value is ChunkBulkResponse {
|
|
141
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
142
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
143
|
+
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
144
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
145
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined) return false;
|
|
146
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
|
|
147
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
148
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
149
|
+
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
150
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
151
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
152
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
153
|
+
if (!('pathPartIdSegments' in value) || value['pathPartIdSegments'] === undefined) return false;
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function ChunkBulkResponseFromJSON(json: any): ChunkBulkResponse {
|
|
158
|
+
return ChunkBulkResponseFromJSONTyped(json, false);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function ChunkBulkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkBulkResponse {
|
|
162
|
+
if (json == null) {
|
|
163
|
+
return json;
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
|
|
167
|
+
'id': json['id'],
|
|
168
|
+
'pathPartId': json['path_part_id'],
|
|
169
|
+
'contentId': json['content_id'],
|
|
170
|
+
'content': json['content'],
|
|
171
|
+
'chunkType': ChunkTypeFromJSON(json['chunk_type']),
|
|
172
|
+
'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
|
|
173
|
+
'parentPathId': json['parent_path_id'],
|
|
174
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
175
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
176
|
+
'materializedPath': json['materialized_path'],
|
|
177
|
+
'systemManaged': json['system_managed'],
|
|
178
|
+
'tenantId': json['tenant_id'],
|
|
179
|
+
'createdAt': (new Date(json['created_at'])),
|
|
180
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
181
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
182
|
+
'pathPartIdSegments': json['path_part_id_segments'],
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function ChunkBulkResponseToJSON(json: any): ChunkBulkResponse {
|
|
187
|
+
return ChunkBulkResponseToJSONTyped(json, false);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function ChunkBulkResponseToJSONTyped(value?: ChunkBulkResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
191
|
+
if (value == null) {
|
|
192
|
+
return value;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
|
|
197
|
+
'id': value['id'],
|
|
198
|
+
'path_part_id': value['pathPartId'],
|
|
199
|
+
'content_id': value['contentId'],
|
|
200
|
+
'content': value['content'],
|
|
201
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
202
|
+
'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
|
|
203
|
+
'parent_path_id': value['parentPathId'],
|
|
204
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
205
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
206
|
+
'materialized_path': value['materializedPath'],
|
|
207
|
+
'system_managed': value['systemManaged'],
|
|
208
|
+
'tenant_id': value['tenantId'],
|
|
209
|
+
'created_at': value['createdAt'].toISOString(),
|
|
210
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
211
|
+
'asset_s3_url': value['assetS3Url'],
|
|
212
|
+
'path_part_id_segments': value['pathPartIdSegments'],
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export const ChunkBulkResponsePropertyValidationAttributesMap: {
|
|
217
|
+
[property: string]: {
|
|
218
|
+
maxLength?: number,
|
|
219
|
+
minLength?: number,
|
|
220
|
+
pattern?: string,
|
|
221
|
+
maximum?: number,
|
|
222
|
+
exclusiveMaximum?: boolean,
|
|
223
|
+
minimum?: number,
|
|
224
|
+
exclusiveMinimum?: boolean,
|
|
225
|
+
multipleOf?: number,
|
|
226
|
+
maxItems?: number,
|
|
227
|
+
minItems?: number,
|
|
228
|
+
uniqueItems?: boolean
|
|
229
|
+
}
|
|
230
|
+
} = {
|
|
231
|
+
}
|
|
232
|
+
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PartType } from './PartType';
|
|
17
|
-
import {
|
|
18
|
-
PartTypeFromJSON,
|
|
19
|
-
PartTypeFromJSONTyped,
|
|
20
|
-
PartTypeToJSON,
|
|
21
|
-
PartTypeToJSONTyped,
|
|
22
|
-
} from './PartType';
|
|
23
16
|
import type { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
24
17
|
import {
|
|
25
18
|
ChunkMetadataOutputFromJSON,
|
|
@@ -36,109 +29,108 @@ import {
|
|
|
36
29
|
} from './ChunkType';
|
|
37
30
|
|
|
38
31
|
/**
|
|
39
|
-
* Response model for a
|
|
40
|
-
*
|
|
41
|
-
* Represents a section or chunk with enriched data (content, metadata)
|
|
42
|
-
* returned in depth-first logical order.
|
|
32
|
+
* Response model for a chunk item in document version contents.
|
|
43
33
|
* @export
|
|
44
|
-
* @interface
|
|
34
|
+
* @interface ChunkContentItem
|
|
45
35
|
*/
|
|
46
|
-
export interface
|
|
36
|
+
export interface ChunkContentItem {
|
|
37
|
+
/**
|
|
38
|
+
* Path part type
|
|
39
|
+
* @type {ChunkContentItemPartTypeEnum}
|
|
40
|
+
* @memberof ChunkContentItem
|
|
41
|
+
*/
|
|
42
|
+
partType: ChunkContentItemPartTypeEnum;
|
|
47
43
|
/**
|
|
48
44
|
* PathPart ID
|
|
49
45
|
* @type {string}
|
|
50
|
-
* @memberof
|
|
46
|
+
* @memberof ChunkContentItem
|
|
51
47
|
*/
|
|
52
48
|
pathPartId: string;
|
|
53
49
|
/**
|
|
54
50
|
* PathPart name
|
|
55
51
|
* @type {string}
|
|
56
|
-
* @memberof
|
|
52
|
+
* @memberof ChunkContentItem
|
|
57
53
|
*/
|
|
58
54
|
name: string;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {PartType}
|
|
62
|
-
* @memberof DocumentContentPathPart
|
|
63
|
-
*/
|
|
64
|
-
partType: PartType;
|
|
65
55
|
/**
|
|
66
56
|
* Parent PathPart ID
|
|
67
57
|
* @type {string}
|
|
68
|
-
* @memberof
|
|
58
|
+
* @memberof ChunkContentItem
|
|
69
59
|
*/
|
|
70
60
|
parentPathId: string;
|
|
71
61
|
/**
|
|
72
|
-
*
|
|
62
|
+
* Chunk ID
|
|
73
63
|
* @type {string}
|
|
74
|
-
* @memberof
|
|
64
|
+
* @memberof ChunkContentItem
|
|
75
65
|
*/
|
|
76
66
|
metadataObjId: string;
|
|
77
67
|
/**
|
|
78
68
|
* Depth relative to document version root
|
|
79
69
|
* @type {number}
|
|
80
|
-
* @memberof
|
|
70
|
+
* @memberof ChunkContentItem
|
|
81
71
|
*/
|
|
82
72
|
depth: number;
|
|
83
73
|
/**
|
|
84
|
-
* Chunk content
|
|
74
|
+
* Chunk content
|
|
85
75
|
* @type {string}
|
|
86
|
-
* @memberof
|
|
76
|
+
* @memberof ChunkContentItem
|
|
87
77
|
*/
|
|
88
78
|
content?: string | null;
|
|
89
79
|
/**
|
|
90
80
|
*
|
|
91
81
|
* @type {ChunkType}
|
|
92
|
-
* @memberof
|
|
82
|
+
* @memberof ChunkContentItem
|
|
93
83
|
*/
|
|
94
84
|
chunkType?: ChunkType;
|
|
95
85
|
/**
|
|
96
86
|
*
|
|
97
87
|
* @type {ChunkMetadataOutput}
|
|
98
|
-
* @memberof
|
|
88
|
+
* @memberof ChunkContentItem
|
|
99
89
|
*/
|
|
100
90
|
chunkMetadata?: ChunkMetadataOutput;
|
|
101
|
-
/**
|
|
102
|
-
* Section page number (None for chunks)
|
|
103
|
-
* @type {number}
|
|
104
|
-
* @memberof DocumentContentPathPart
|
|
105
|
-
*/
|
|
106
|
-
pageNumber?: number | null;
|
|
107
91
|
/**
|
|
108
92
|
* Full materialized path from root
|
|
109
93
|
* @type {string}
|
|
110
|
-
* @memberof
|
|
94
|
+
* @memberof ChunkContentItem
|
|
111
95
|
*/
|
|
112
96
|
materializedPath: string;
|
|
113
97
|
/**
|
|
114
98
|
* Whether this item is system-managed
|
|
115
99
|
* @type {boolean}
|
|
116
|
-
* @memberof
|
|
100
|
+
* @memberof ChunkContentItem
|
|
117
101
|
*/
|
|
118
102
|
systemManaged: boolean;
|
|
119
103
|
/**
|
|
120
104
|
* Creation timestamp
|
|
121
105
|
* @type {Date}
|
|
122
|
-
* @memberof
|
|
106
|
+
* @memberof ChunkContentItem
|
|
123
107
|
*/
|
|
124
108
|
createdAt: Date;
|
|
125
109
|
/**
|
|
126
110
|
* Last update timestamp
|
|
127
111
|
* @type {Date}
|
|
128
|
-
* @memberof
|
|
112
|
+
* @memberof ChunkContentItem
|
|
129
113
|
*/
|
|
130
114
|
updatedAt: Date;
|
|
131
115
|
}
|
|
132
116
|
|
|
133
117
|
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export const ChunkContentItemPartTypeEnum = {
|
|
122
|
+
Chunk: 'CHUNK'
|
|
123
|
+
} as const;
|
|
124
|
+
export type ChunkContentItemPartTypeEnum = typeof ChunkContentItemPartTypeEnum[keyof typeof ChunkContentItemPartTypeEnum];
|
|
125
|
+
|
|
134
126
|
|
|
135
127
|
/**
|
|
136
|
-
* Check if a given object implements the
|
|
128
|
+
* Check if a given object implements the ChunkContentItem interface.
|
|
137
129
|
*/
|
|
138
|
-
export function
|
|
130
|
+
export function instanceOfChunkContentItem(value: object): value is ChunkContentItem {
|
|
131
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
139
132
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
140
133
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
141
|
-
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
142
134
|
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
143
135
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined) return false;
|
|
144
136
|
if (!('depth' in value) || value['depth'] === undefined) return false;
|
|
@@ -149,26 +141,25 @@ export function instanceOfDocumentContentPathPart(value: object): value is Docum
|
|
|
149
141
|
return true;
|
|
150
142
|
}
|
|
151
143
|
|
|
152
|
-
export function
|
|
153
|
-
return
|
|
144
|
+
export function ChunkContentItemFromJSON(json: any): ChunkContentItem {
|
|
145
|
+
return ChunkContentItemFromJSONTyped(json, false);
|
|
154
146
|
}
|
|
155
147
|
|
|
156
|
-
export function
|
|
148
|
+
export function ChunkContentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkContentItem {
|
|
157
149
|
if (json == null) {
|
|
158
150
|
return json;
|
|
159
151
|
}
|
|
160
152
|
return {
|
|
161
153
|
|
|
154
|
+
'partType': json['part_type'],
|
|
162
155
|
'pathPartId': json['path_part_id'],
|
|
163
156
|
'name': json['name'],
|
|
164
|
-
'partType': PartTypeFromJSON(json['part_type']),
|
|
165
157
|
'parentPathId': json['parent_path_id'],
|
|
166
158
|
'metadataObjId': json['metadata_obj_id'],
|
|
167
159
|
'depth': json['depth'],
|
|
168
160
|
'content': json['content'] == null ? undefined : json['content'],
|
|
169
161
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
170
162
|
'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataOutputFromJSON(json['chunk_metadata']),
|
|
171
|
-
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
172
163
|
'materializedPath': json['materialized_path'],
|
|
173
164
|
'systemManaged': json['system_managed'],
|
|
174
165
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -176,27 +167,26 @@ export function DocumentContentPathPartFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
176
167
|
};
|
|
177
168
|
}
|
|
178
169
|
|
|
179
|
-
export function
|
|
180
|
-
return
|
|
170
|
+
export function ChunkContentItemToJSON(json: any): ChunkContentItem {
|
|
171
|
+
return ChunkContentItemToJSONTyped(json, false);
|
|
181
172
|
}
|
|
182
173
|
|
|
183
|
-
export function
|
|
174
|
+
export function ChunkContentItemToJSONTyped(value?: ChunkContentItem | null, ignoreDiscriminator: boolean = false): any {
|
|
184
175
|
if (value == null) {
|
|
185
176
|
return value;
|
|
186
177
|
}
|
|
187
178
|
|
|
188
179
|
return {
|
|
189
180
|
|
|
181
|
+
'part_type': value['partType'],
|
|
190
182
|
'path_part_id': value['pathPartId'],
|
|
191
183
|
'name': value['name'],
|
|
192
|
-
'part_type': PartTypeToJSON(value['partType']),
|
|
193
184
|
'parent_path_id': value['parentPathId'],
|
|
194
185
|
'metadata_obj_id': value['metadataObjId'],
|
|
195
186
|
'depth': value['depth'],
|
|
196
187
|
'content': value['content'],
|
|
197
188
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
198
189
|
'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
|
|
199
|
-
'page_number': value['pageNumber'],
|
|
200
190
|
'materialized_path': value['materializedPath'],
|
|
201
191
|
'system_managed': value['systemManaged'],
|
|
202
192
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -204,7 +194,7 @@ export function DocumentContentPathPartToJSONTyped(value?: DocumentContentPathPa
|
|
|
204
194
|
};
|
|
205
195
|
}
|
|
206
196
|
|
|
207
|
-
export const
|
|
197
|
+
export const ChunkContentItemPropertyValidationAttributesMap: {
|
|
208
198
|
[property: string]: {
|
|
209
199
|
maxLength?: number,
|
|
210
200
|
minLength?: number,
|
|
@@ -52,6 +52,12 @@ export interface ChunkSearchRequest {
|
|
|
52
52
|
* @memberof ChunkSearchRequest
|
|
53
53
|
*/
|
|
54
54
|
parentPathIds?: Array<string> | null;
|
|
55
|
+
/**
|
|
56
|
+
* Filter by tag IDs (AND logic — chunks must have ALL specified tags)
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof ChunkSearchRequest
|
|
59
|
+
*/
|
|
60
|
+
tagIds?: Array<string> | null;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {ChunkType}
|
|
@@ -59,11 +65,17 @@ export interface ChunkSearchRequest {
|
|
|
59
65
|
*/
|
|
60
66
|
chunkType?: ChunkType;
|
|
61
67
|
/**
|
|
62
|
-
* Only chunks
|
|
68
|
+
* Only chunks ingested after this timestamp
|
|
63
69
|
* @type {Date}
|
|
64
70
|
* @memberof ChunkSearchRequest
|
|
65
71
|
*/
|
|
66
|
-
|
|
72
|
+
ingestionTimeAfter?: Date | null;
|
|
73
|
+
/**
|
|
74
|
+
* Only return chunks from the active document version
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ChunkSearchRequest
|
|
77
|
+
*/
|
|
78
|
+
activeVersionOnly?: boolean;
|
|
67
79
|
/**
|
|
68
80
|
* Number of results (1-50)
|
|
69
81
|
* @type {number}
|
|
@@ -101,8 +113,10 @@ export function ChunkSearchRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
101
113
|
'query': json['query'],
|
|
102
114
|
'model': json['model'] == null ? undefined : EmbeddingModelFromJSON(json['model']),
|
|
103
115
|
'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
|
|
116
|
+
'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
|
|
104
117
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
105
|
-
'
|
|
118
|
+
'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
|
|
119
|
+
'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
|
|
106
120
|
'topK': json['top_k'] == null ? undefined : json['top_k'],
|
|
107
121
|
'scoreThreshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
|
|
108
122
|
};
|
|
@@ -122,8 +136,10 @@ export function ChunkSearchRequestToJSONTyped(value?: ChunkSearchRequest | null,
|
|
|
122
136
|
'query': value['query'],
|
|
123
137
|
'model': EmbeddingModelToJSON(value['model']),
|
|
124
138
|
'parent_path_ids': value['parentPathIds'],
|
|
139
|
+
'tag_ids': value['tagIds'],
|
|
125
140
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
126
|
-
'
|
|
141
|
+
'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
|
|
142
|
+
'active_version_only': value['activeVersionOnly'],
|
|
127
143
|
'top_k': value['topK'],
|
|
128
144
|
'score_threshold': value['scoreThreshold'],
|
|
129
145
|
};
|