@knowledge-stack/ksapi 1.23.5 → 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 +122 -4
- 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 +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 +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 +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/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- 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/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 +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/index.d.ts +6 -4
- package/dist/esm/models/index.js +6 -4
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- 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/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 +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/index.d.ts +6 -4
- package/dist/models/index.js +6 -4
- 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 +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/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -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 +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/index.ts +6 -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/PathPartsApi.ts
CHANGED
|
@@ -70,6 +70,16 @@ export interface ListPathPartsRequest {
|
|
|
70
70
|
* @interface PathPartsApiInterface
|
|
71
71
|
*/
|
|
72
72
|
export interface PathPartsApiInterface {
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
75
|
+
* @param {string} pathPartId
|
|
76
|
+
* @param {BulkTagRequest} bulkTagRequest
|
|
77
|
+
* @param {string} [ksUat]
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
* @memberof PathPartsApiInterface
|
|
80
|
+
*/
|
|
81
|
+
bulkAddPathPartTagsRequestOpts(requestParameters: BulkAddPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
82
|
+
|
|
73
83
|
/**
|
|
74
84
|
* Bulk add tags to a path part. Idempotent — already-attached tags are skipped. Returns 400 if any tag_id doesn\'t exist (FK violation). Requires write permission on the target path part.
|
|
75
85
|
* @summary Bulk Add Path Part Tags Handler
|
|
@@ -88,6 +98,16 @@ export interface PathPartsApiInterface {
|
|
|
88
98
|
*/
|
|
89
99
|
bulkAddPathPartTags(requestParameters: BulkAddPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
90
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
103
|
+
* @param {string} pathPartId
|
|
104
|
+
* @param {BulkTagRequest} bulkTagRequest
|
|
105
|
+
* @param {string} [ksUat]
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
* @memberof PathPartsApiInterface
|
|
108
|
+
*/
|
|
109
|
+
bulkRemovePathPartTagsRequestOpts(requestParameters: BulkRemovePathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
110
|
+
|
|
91
111
|
/**
|
|
92
112
|
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
93
113
|
* @summary Bulk Remove Path Part Tags Handler
|
|
@@ -106,6 +126,15 @@ export interface PathPartsApiInterface {
|
|
|
106
126
|
*/
|
|
107
127
|
bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
108
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Creates request options for getPathPart without sending the request
|
|
131
|
+
* @param {string} pathPartId
|
|
132
|
+
* @param {string} [ksUat]
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
* @memberof PathPartsApiInterface
|
|
135
|
+
*/
|
|
136
|
+
getPathPartRequestOpts(requestParameters: GetPathPartRequest): Promise<runtime.RequestOpts>;
|
|
137
|
+
|
|
109
138
|
/**
|
|
110
139
|
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
111
140
|
* @summary Get Path Part Handler
|
|
@@ -123,6 +152,19 @@ export interface PathPartsApiInterface {
|
|
|
123
152
|
*/
|
|
124
153
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
125
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for listPathParts without sending the request
|
|
157
|
+
* @param {string} [parentPathId] Parent PathPart ID (defaults to root)
|
|
158
|
+
* @param {number} [maxDepth] Maximum depth to traverse (1 = direct children, default: 1)
|
|
159
|
+
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
160
|
+
* @param {number} [limit] Number of items per page
|
|
161
|
+
* @param {number} [offset] Number of items to skip
|
|
162
|
+
* @param {string} [ksUat]
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
* @memberof PathPartsApiInterface
|
|
165
|
+
*/
|
|
166
|
+
listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts>;
|
|
167
|
+
|
|
126
168
|
/**
|
|
127
169
|
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
128
170
|
* @summary List Path Parts Handler
|
|
@@ -152,10 +194,9 @@ export interface PathPartsApiInterface {
|
|
|
152
194
|
export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterface {
|
|
153
195
|
|
|
154
196
|
/**
|
|
155
|
-
*
|
|
156
|
-
* Bulk Add Path Part Tags Handler
|
|
197
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
157
198
|
*/
|
|
158
|
-
async
|
|
199
|
+
async bulkAddPathPartTagsRequestOpts(requestParameters: BulkAddPathPartTagsRequest): Promise<runtime.RequestOpts> {
|
|
159
200
|
if (requestParameters['pathPartId'] == null) {
|
|
160
201
|
throw new runtime.RequiredError(
|
|
161
202
|
'pathPartId',
|
|
@@ -180,13 +221,22 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
180
221
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
181
222
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
182
223
|
|
|
183
|
-
|
|
224
|
+
return {
|
|
184
225
|
path: urlPath,
|
|
185
226
|
method: 'POST',
|
|
186
227
|
headers: headerParameters,
|
|
187
228
|
query: queryParameters,
|
|
188
229
|
body: BulkTagRequestToJSON(requestParameters['bulkTagRequest']),
|
|
189
|
-
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Bulk add tags to a path part. Idempotent — already-attached tags are skipped. Returns 400 if any tag_id doesn\'t exist (FK violation). Requires write permission on the target path part.
|
|
235
|
+
* Bulk Add Path Part Tags Handler
|
|
236
|
+
*/
|
|
237
|
+
async bulkAddPathPartTagsRaw(requestParameters: BulkAddPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartTagsResponse>> {
|
|
238
|
+
const requestOptions = await this.bulkAddPathPartTagsRequestOpts(requestParameters);
|
|
239
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
190
240
|
|
|
191
241
|
return new runtime.JSONApiResponse(response, (jsonValue) => PathPartTagsResponseFromJSON(jsonValue));
|
|
192
242
|
}
|
|
@@ -201,10 +251,9 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
201
251
|
}
|
|
202
252
|
|
|
203
253
|
/**
|
|
204
|
-
*
|
|
205
|
-
* Bulk Remove Path Part Tags Handler
|
|
254
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
206
255
|
*/
|
|
207
|
-
async
|
|
256
|
+
async bulkRemovePathPartTagsRequestOpts(requestParameters: BulkRemovePathPartTagsRequest): Promise<runtime.RequestOpts> {
|
|
208
257
|
if (requestParameters['pathPartId'] == null) {
|
|
209
258
|
throw new runtime.RequiredError(
|
|
210
259
|
'pathPartId',
|
|
@@ -229,13 +278,22 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
229
278
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
230
279
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
231
280
|
|
|
232
|
-
|
|
281
|
+
return {
|
|
233
282
|
path: urlPath,
|
|
234
283
|
method: 'DELETE',
|
|
235
284
|
headers: headerParameters,
|
|
236
285
|
query: queryParameters,
|
|
237
286
|
body: BulkTagRequestToJSON(requestParameters['bulkTagRequest']),
|
|
238
|
-
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
292
|
+
* Bulk Remove Path Part Tags Handler
|
|
293
|
+
*/
|
|
294
|
+
async bulkRemovePathPartTagsRaw(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartTagsResponse>> {
|
|
295
|
+
const requestOptions = await this.bulkRemovePathPartTagsRequestOpts(requestParameters);
|
|
296
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
239
297
|
|
|
240
298
|
return new runtime.JSONApiResponse(response, (jsonValue) => PathPartTagsResponseFromJSON(jsonValue));
|
|
241
299
|
}
|
|
@@ -250,10 +308,9 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
250
308
|
}
|
|
251
309
|
|
|
252
310
|
/**
|
|
253
|
-
*
|
|
254
|
-
* Get Path Part Handler
|
|
311
|
+
* Creates request options for getPathPart without sending the request
|
|
255
312
|
*/
|
|
256
|
-
async
|
|
313
|
+
async getPathPartRequestOpts(requestParameters: GetPathPartRequest): Promise<runtime.RequestOpts> {
|
|
257
314
|
if (requestParameters['pathPartId'] == null) {
|
|
258
315
|
throw new runtime.RequiredError(
|
|
259
316
|
'pathPartId',
|
|
@@ -269,12 +326,21 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
269
326
|
let urlPath = `/v1/path-parts/{path_part_id}`;
|
|
270
327
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
271
328
|
|
|
272
|
-
|
|
329
|
+
return {
|
|
273
330
|
path: urlPath,
|
|
274
331
|
method: 'GET',
|
|
275
332
|
headers: headerParameters,
|
|
276
333
|
query: queryParameters,
|
|
277
|
-
}
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
339
|
+
* Get Path Part Handler
|
|
340
|
+
*/
|
|
341
|
+
async getPathPartRaw(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartResponse>> {
|
|
342
|
+
const requestOptions = await this.getPathPartRequestOpts(requestParameters);
|
|
343
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
278
344
|
|
|
279
345
|
return new runtime.JSONApiResponse(response, (jsonValue) => PathPartResponseFromJSON(jsonValue));
|
|
280
346
|
}
|
|
@@ -289,10 +355,9 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
289
355
|
}
|
|
290
356
|
|
|
291
357
|
/**
|
|
292
|
-
*
|
|
293
|
-
* List Path Parts Handler
|
|
358
|
+
* Creates request options for listPathParts without sending the request
|
|
294
359
|
*/
|
|
295
|
-
async
|
|
360
|
+
async listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts> {
|
|
296
361
|
const queryParameters: any = {};
|
|
297
362
|
|
|
298
363
|
if (requestParameters['parentPathId'] != null) {
|
|
@@ -320,12 +385,21 @@ export class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterfa
|
|
|
320
385
|
|
|
321
386
|
let urlPath = `/v1/path-parts`;
|
|
322
387
|
|
|
323
|
-
|
|
388
|
+
return {
|
|
324
389
|
path: urlPath,
|
|
325
390
|
method: 'GET',
|
|
326
391
|
headers: headerParameters,
|
|
327
392
|
query: queryParameters,
|
|
328
|
-
}
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
398
|
+
* List Path Parts Handler
|
|
399
|
+
*/
|
|
400
|
+
async listPathPartsRaw(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePathPartResponse>> {
|
|
401
|
+
const requestOptions = await this.listPathPartsRequestOpts(requestParameters);
|
|
402
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
329
403
|
|
|
330
404
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponsePathPartResponseFromJSON(jsonValue));
|
|
331
405
|
}
|
package/src/apis/SectionsApi.ts
CHANGED
|
@@ -59,6 +59,15 @@ export interface UpdateSectionOperationRequest {
|
|
|
59
59
|
* @interface SectionsApiInterface
|
|
60
60
|
*/
|
|
61
61
|
export interface SectionsApiInterface {
|
|
62
|
+
/**
|
|
63
|
+
* Creates request options for createSection without sending the request
|
|
64
|
+
* @param {CreateSectionRequest} createSectionRequest
|
|
65
|
+
* @param {string} [ksUat]
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof SectionsApiInterface
|
|
68
|
+
*/
|
|
69
|
+
createSectionRequestOpts(requestParameters: CreateSectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
70
|
+
|
|
62
71
|
/**
|
|
63
72
|
* Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
|
|
64
73
|
* @summary Create Section Handler
|
|
@@ -76,6 +85,15 @@ export interface SectionsApiInterface {
|
|
|
76
85
|
*/
|
|
77
86
|
createSection(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
78
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Creates request options for deleteSection without sending the request
|
|
90
|
+
* @param {string} sectionId
|
|
91
|
+
* @param {string} [ksUat]
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof SectionsApiInterface
|
|
94
|
+
*/
|
|
95
|
+
deleteSectionRequestOpts(requestParameters: DeleteSectionRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
|
|
79
97
|
/**
|
|
80
98
|
* Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
|
|
81
99
|
* @summary Delete Section Handler
|
|
@@ -93,6 +111,15 @@ export interface SectionsApiInterface {
|
|
|
93
111
|
*/
|
|
94
112
|
deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
95
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for getSection without sending the request
|
|
116
|
+
* @param {string} sectionId
|
|
117
|
+
* @param {string} [ksUat]
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof SectionsApiInterface
|
|
120
|
+
*/
|
|
121
|
+
getSectionRequestOpts(requestParameters: GetSectionRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
|
|
96
123
|
/**
|
|
97
124
|
* Get a section by its ID.
|
|
98
125
|
* @summary Get Section Handler
|
|
@@ -110,6 +137,16 @@ export interface SectionsApiInterface {
|
|
|
110
137
|
*/
|
|
111
138
|
getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
112
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for updateSection without sending the request
|
|
142
|
+
* @param {string} sectionId
|
|
143
|
+
* @param {UpdateSectionRequest} updateSectionRequest
|
|
144
|
+
* @param {string} [ksUat]
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
* @memberof SectionsApiInterface
|
|
147
|
+
*/
|
|
148
|
+
updateSectionRequestOpts(requestParameters: UpdateSectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
149
|
+
|
|
113
150
|
/**
|
|
114
151
|
* Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
|
|
115
152
|
* @summary Update Section Handler
|
|
@@ -136,10 +173,9 @@ export interface SectionsApiInterface {
|
|
|
136
173
|
export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface {
|
|
137
174
|
|
|
138
175
|
/**
|
|
139
|
-
*
|
|
140
|
-
* Create Section Handler
|
|
176
|
+
* Creates request options for createSection without sending the request
|
|
141
177
|
*/
|
|
142
|
-
async
|
|
178
|
+
async createSectionRequestOpts(requestParameters: CreateSectionOperationRequest): Promise<runtime.RequestOpts> {
|
|
143
179
|
if (requestParameters['createSectionRequest'] == null) {
|
|
144
180
|
throw new runtime.RequiredError(
|
|
145
181
|
'createSectionRequest',
|
|
@@ -156,13 +192,22 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
156
192
|
|
|
157
193
|
let urlPath = `/v1/sections`;
|
|
158
194
|
|
|
159
|
-
|
|
195
|
+
return {
|
|
160
196
|
path: urlPath,
|
|
161
197
|
method: 'POST',
|
|
162
198
|
headers: headerParameters,
|
|
163
199
|
query: queryParameters,
|
|
164
200
|
body: CreateSectionRequestToJSON(requestParameters['createSectionRequest']),
|
|
165
|
-
}
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
|
|
206
|
+
* Create Section Handler
|
|
207
|
+
*/
|
|
208
|
+
async createSectionRaw(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>> {
|
|
209
|
+
const requestOptions = await this.createSectionRequestOpts(requestParameters);
|
|
210
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
166
211
|
|
|
167
212
|
return new runtime.JSONApiResponse(response, (jsonValue) => SectionResponseFromJSON(jsonValue));
|
|
168
213
|
}
|
|
@@ -177,10 +222,9 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
177
222
|
}
|
|
178
223
|
|
|
179
224
|
/**
|
|
180
|
-
*
|
|
181
|
-
* Delete Section Handler
|
|
225
|
+
* Creates request options for deleteSection without sending the request
|
|
182
226
|
*/
|
|
183
|
-
async
|
|
227
|
+
async deleteSectionRequestOpts(requestParameters: DeleteSectionRequest): Promise<runtime.RequestOpts> {
|
|
184
228
|
if (requestParameters['sectionId'] == null) {
|
|
185
229
|
throw new runtime.RequiredError(
|
|
186
230
|
'sectionId',
|
|
@@ -196,12 +240,21 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
196
240
|
let urlPath = `/v1/sections/{section_id}`;
|
|
197
241
|
urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
|
|
198
242
|
|
|
199
|
-
|
|
243
|
+
return {
|
|
200
244
|
path: urlPath,
|
|
201
245
|
method: 'DELETE',
|
|
202
246
|
headers: headerParameters,
|
|
203
247
|
query: queryParameters,
|
|
204
|
-
}
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
|
|
253
|
+
* Delete Section Handler
|
|
254
|
+
*/
|
|
255
|
+
async deleteSectionRaw(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
256
|
+
const requestOptions = await this.deleteSectionRequestOpts(requestParameters);
|
|
257
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
205
258
|
|
|
206
259
|
return new runtime.VoidApiResponse(response);
|
|
207
260
|
}
|
|
@@ -215,10 +268,9 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
215
268
|
}
|
|
216
269
|
|
|
217
270
|
/**
|
|
218
|
-
*
|
|
219
|
-
* Get Section Handler
|
|
271
|
+
* Creates request options for getSection without sending the request
|
|
220
272
|
*/
|
|
221
|
-
async
|
|
273
|
+
async getSectionRequestOpts(requestParameters: GetSectionRequest): Promise<runtime.RequestOpts> {
|
|
222
274
|
if (requestParameters['sectionId'] == null) {
|
|
223
275
|
throw new runtime.RequiredError(
|
|
224
276
|
'sectionId',
|
|
@@ -234,12 +286,21 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
234
286
|
let urlPath = `/v1/sections/{section_id}`;
|
|
235
287
|
urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
|
|
236
288
|
|
|
237
|
-
|
|
289
|
+
return {
|
|
238
290
|
path: urlPath,
|
|
239
291
|
method: 'GET',
|
|
240
292
|
headers: headerParameters,
|
|
241
293
|
query: queryParameters,
|
|
242
|
-
}
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Get a section by its ID.
|
|
299
|
+
* Get Section Handler
|
|
300
|
+
*/
|
|
301
|
+
async getSectionRaw(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>> {
|
|
302
|
+
const requestOptions = await this.getSectionRequestOpts(requestParameters);
|
|
303
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
243
304
|
|
|
244
305
|
return new runtime.JSONApiResponse(response, (jsonValue) => SectionResponseFromJSON(jsonValue));
|
|
245
306
|
}
|
|
@@ -254,10 +315,9 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
254
315
|
}
|
|
255
316
|
|
|
256
317
|
/**
|
|
257
|
-
*
|
|
258
|
-
* Update Section Handler
|
|
318
|
+
* Creates request options for updateSection without sending the request
|
|
259
319
|
*/
|
|
260
|
-
async
|
|
320
|
+
async updateSectionRequestOpts(requestParameters: UpdateSectionOperationRequest): Promise<runtime.RequestOpts> {
|
|
261
321
|
if (requestParameters['sectionId'] == null) {
|
|
262
322
|
throw new runtime.RequiredError(
|
|
263
323
|
'sectionId',
|
|
@@ -282,13 +342,22 @@ export class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface
|
|
|
282
342
|
let urlPath = `/v1/sections/{section_id}`;
|
|
283
343
|
urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
|
|
284
344
|
|
|
285
|
-
|
|
345
|
+
return {
|
|
286
346
|
path: urlPath,
|
|
287
347
|
method: 'PATCH',
|
|
288
348
|
headers: headerParameters,
|
|
289
349
|
query: queryParameters,
|
|
290
350
|
body: UpdateSectionRequestToJSON(requestParameters['updateSectionRequest']),
|
|
291
|
-
}
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
|
|
356
|
+
* Update Section Handler
|
|
357
|
+
*/
|
|
358
|
+
async updateSectionRaw(requestParameters: UpdateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>> {
|
|
359
|
+
const requestOptions = await this.updateSectionRequestOpts(requestParameters);
|
|
360
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
292
361
|
|
|
293
362
|
return new runtime.JSONApiResponse(response, (jsonValue) => SectionResponseFromJSON(jsonValue));
|
|
294
363
|
}
|