@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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BulkTagRequest, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse } from '../models/index';
|
|
13
|
+
import type { BulkTagRequest, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, SubtreeChunksResponse } from '../models/index';
|
|
14
14
|
export interface BulkAddPathPartTagsRequest {
|
|
15
15
|
pathPartId: string;
|
|
16
16
|
bulkTagRequest: BulkTagRequest;
|
|
@@ -25,6 +25,15 @@ export interface GetPathPartRequest {
|
|
|
25
25
|
pathPartId: string;
|
|
26
26
|
ksUat?: string | null;
|
|
27
27
|
}
|
|
28
|
+
export interface GetPathPartSubtreeChunksRequest {
|
|
29
|
+
pathPartId: string;
|
|
30
|
+
ksUat?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export interface GetPathPartTagsRequest {
|
|
33
|
+
pathPartId: string;
|
|
34
|
+
includeInherited?: boolean;
|
|
35
|
+
ksUat?: string | null;
|
|
36
|
+
}
|
|
28
37
|
export interface ListPathPartsRequest {
|
|
29
38
|
parentPathId?: string | null;
|
|
30
39
|
maxDepth?: number;
|
|
@@ -40,6 +49,15 @@ export interface ListPathPartsRequest {
|
|
|
40
49
|
* @interface PathPartsApiInterface
|
|
41
50
|
*/
|
|
42
51
|
export interface PathPartsApiInterface {
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
54
|
+
* @param {string} pathPartId
|
|
55
|
+
* @param {BulkTagRequest} bulkTagRequest
|
|
56
|
+
* @param {string} [ksUat]
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
* @memberof PathPartsApiInterface
|
|
59
|
+
*/
|
|
60
|
+
bulkAddPathPartTagsRequestOpts(requestParameters: BulkAddPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
43
61
|
/**
|
|
44
62
|
* 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.
|
|
45
63
|
* @summary Bulk Add Path Part Tags Handler
|
|
@@ -56,6 +74,15 @@ export interface PathPartsApiInterface {
|
|
|
56
74
|
* Bulk Add Path Part Tags Handler
|
|
57
75
|
*/
|
|
58
76
|
bulkAddPathPartTags(requestParameters: BulkAddPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
79
|
+
* @param {string} pathPartId
|
|
80
|
+
* @param {BulkTagRequest} bulkTagRequest
|
|
81
|
+
* @param {string} [ksUat]
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
* @memberof PathPartsApiInterface
|
|
84
|
+
*/
|
|
85
|
+
bulkRemovePathPartTagsRequestOpts(requestParameters: BulkRemovePathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
59
86
|
/**
|
|
60
87
|
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
61
88
|
* @summary Bulk Remove Path Part Tags Handler
|
|
@@ -72,6 +99,14 @@ export interface PathPartsApiInterface {
|
|
|
72
99
|
* Bulk Remove Path Part Tags Handler
|
|
73
100
|
*/
|
|
74
101
|
bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates request options for getPathPart without sending the request
|
|
104
|
+
* @param {string} pathPartId
|
|
105
|
+
* @param {string} [ksUat]
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
* @memberof PathPartsApiInterface
|
|
108
|
+
*/
|
|
109
|
+
getPathPartRequestOpts(requestParameters: GetPathPartRequest): Promise<runtime.RequestOpts>;
|
|
75
110
|
/**
|
|
76
111
|
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
77
112
|
* @summary Get Path Part Handler
|
|
@@ -87,6 +122,66 @@ export interface PathPartsApiInterface {
|
|
|
87
122
|
* Get Path Part Handler
|
|
88
123
|
*/
|
|
89
124
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
127
|
+
* @param {string} pathPartId
|
|
128
|
+
* @param {string} [ksUat]
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
* @memberof PathPartsApiInterface
|
|
131
|
+
*/
|
|
132
|
+
getPathPartSubtreeChunksRequestOpts(requestParameters: GetPathPartSubtreeChunksRequest): Promise<runtime.RequestOpts>;
|
|
133
|
+
/**
|
|
134
|
+
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
135
|
+
* @summary Get Path Part Subtree Chunks Handler
|
|
136
|
+
* @param {string} pathPartId
|
|
137
|
+
* @param {string} [ksUat]
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
* @memberof PathPartsApiInterface
|
|
141
|
+
*/
|
|
142
|
+
getPathPartSubtreeChunksRaw(requestParameters: GetPathPartSubtreeChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubtreeChunksResponse>>;
|
|
143
|
+
/**
|
|
144
|
+
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
145
|
+
* Get Path Part Subtree Chunks Handler
|
|
146
|
+
*/
|
|
147
|
+
getPathPartSubtreeChunks(requestParameters: GetPathPartSubtreeChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubtreeChunksResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Creates request options for getPathPartTags without sending the request
|
|
150
|
+
* @param {string} pathPartId
|
|
151
|
+
* @param {boolean} [includeInherited] Include tags inherited from ancestor path parts
|
|
152
|
+
* @param {string} [ksUat]
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
* @memberof PathPartsApiInterface
|
|
155
|
+
*/
|
|
156
|
+
getPathPartTagsRequestOpts(requestParameters: GetPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
157
|
+
/**
|
|
158
|
+
* Get tags for a path part. When include_inherited=False (default), returns only directly-attached tags. When include_inherited=True, walks the ancestor chain and returns the deduplicated union of tags from all ancestors (including the path part itself).
|
|
159
|
+
* @summary Get Path Part Tags Handler
|
|
160
|
+
* @param {string} pathPartId
|
|
161
|
+
* @param {boolean} [includeInherited] Include tags inherited from ancestor path parts
|
|
162
|
+
* @param {string} [ksUat]
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
* @memberof PathPartsApiInterface
|
|
166
|
+
*/
|
|
167
|
+
getPathPartTagsRaw(requestParameters: GetPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartTagsResponse>>;
|
|
168
|
+
/**
|
|
169
|
+
* Get tags for a path part. When include_inherited=False (default), returns only directly-attached tags. When include_inherited=True, walks the ancestor chain and returns the deduplicated union of tags from all ancestors (including the path part itself).
|
|
170
|
+
* Get Path Part Tags Handler
|
|
171
|
+
*/
|
|
172
|
+
getPathPartTags(requestParameters: GetPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Creates request options for listPathParts without sending the request
|
|
175
|
+
* @param {string} [parentPathId] Parent PathPart ID (defaults to root)
|
|
176
|
+
* @param {number} [maxDepth] Maximum depth to traverse (1 = direct children, default: 1)
|
|
177
|
+
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
178
|
+
* @param {number} [limit] Number of items per page
|
|
179
|
+
* @param {number} [offset] Number of items to skip
|
|
180
|
+
* @param {string} [ksUat]
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
* @memberof PathPartsApiInterface
|
|
183
|
+
*/
|
|
184
|
+
listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts>;
|
|
90
185
|
/**
|
|
91
186
|
* 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.
|
|
92
187
|
* @summary List Path Parts Handler
|
|
@@ -111,6 +206,10 @@ export interface PathPartsApiInterface {
|
|
|
111
206
|
*
|
|
112
207
|
*/
|
|
113
208
|
export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterface {
|
|
209
|
+
/**
|
|
210
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
211
|
+
*/
|
|
212
|
+
bulkAddPathPartTagsRequestOpts(requestParameters: BulkAddPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
114
213
|
/**
|
|
115
214
|
* 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.
|
|
116
215
|
* Bulk Add Path Part Tags Handler
|
|
@@ -121,6 +220,10 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
121
220
|
* Bulk Add Path Part Tags Handler
|
|
122
221
|
*/
|
|
123
222
|
bulkAddPathPartTags(requestParameters: BulkAddPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
223
|
+
/**
|
|
224
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
225
|
+
*/
|
|
226
|
+
bulkRemovePathPartTagsRequestOpts(requestParameters: BulkRemovePathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
124
227
|
/**
|
|
125
228
|
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
126
229
|
* Bulk Remove Path Part Tags Handler
|
|
@@ -131,6 +234,10 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
131
234
|
* Bulk Remove Path Part Tags Handler
|
|
132
235
|
*/
|
|
133
236
|
bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
237
|
+
/**
|
|
238
|
+
* Creates request options for getPathPart without sending the request
|
|
239
|
+
*/
|
|
240
|
+
getPathPartRequestOpts(requestParameters: GetPathPartRequest): Promise<runtime.RequestOpts>;
|
|
134
241
|
/**
|
|
135
242
|
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
136
243
|
* Get Path Part Handler
|
|
@@ -141,6 +248,38 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
141
248
|
* Get Path Part Handler
|
|
142
249
|
*/
|
|
143
250
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
253
|
+
*/
|
|
254
|
+
getPathPartSubtreeChunksRequestOpts(requestParameters: GetPathPartSubtreeChunksRequest): Promise<runtime.RequestOpts>;
|
|
255
|
+
/**
|
|
256
|
+
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
257
|
+
* Get Path Part Subtree Chunks Handler
|
|
258
|
+
*/
|
|
259
|
+
getPathPartSubtreeChunksRaw(requestParameters: GetPathPartSubtreeChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubtreeChunksResponse>>;
|
|
260
|
+
/**
|
|
261
|
+
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
262
|
+
* Get Path Part Subtree Chunks Handler
|
|
263
|
+
*/
|
|
264
|
+
getPathPartSubtreeChunks(requestParameters: GetPathPartSubtreeChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubtreeChunksResponse>;
|
|
265
|
+
/**
|
|
266
|
+
* Creates request options for getPathPartTags without sending the request
|
|
267
|
+
*/
|
|
268
|
+
getPathPartTagsRequestOpts(requestParameters: GetPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
269
|
+
/**
|
|
270
|
+
* Get tags for a path part. When include_inherited=False (default), returns only directly-attached tags. When include_inherited=True, walks the ancestor chain and returns the deduplicated union of tags from all ancestors (including the path part itself).
|
|
271
|
+
* Get Path Part Tags Handler
|
|
272
|
+
*/
|
|
273
|
+
getPathPartTagsRaw(requestParameters: GetPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartTagsResponse>>;
|
|
274
|
+
/**
|
|
275
|
+
* Get tags for a path part. When include_inherited=False (default), returns only directly-attached tags. When include_inherited=True, walks the ancestor chain and returns the deduplicated union of tags from all ancestors (including the path part itself).
|
|
276
|
+
* Get Path Part Tags Handler
|
|
277
|
+
*/
|
|
278
|
+
getPathPartTags(requestParameters: GetPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
279
|
+
/**
|
|
280
|
+
* Creates request options for listPathParts without sending the request
|
|
281
|
+
*/
|
|
282
|
+
listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts>;
|
|
144
283
|
/**
|
|
145
284
|
* 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.
|
|
146
285
|
* List Path Parts Handler
|
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class PathPartsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Bulk Add Path Part Tags Handler
|
|
33
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
bulkAddPathPartTagsRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['pathPartId'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling bulkAddPathPartTags().');
|
|
@@ -46,13 +45,23 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
46
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
47
46
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
48
47
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
49
|
-
|
|
48
|
+
return {
|
|
50
49
|
path: urlPath,
|
|
51
50
|
method: 'POST',
|
|
52
51
|
headers: headerParameters,
|
|
53
52
|
query: queryParameters,
|
|
54
53
|
body: (0, index_1.BulkTagRequestToJSON)(requestParameters['bulkTagRequest']),
|
|
55
|
-
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 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.
|
|
59
|
+
* Bulk Add Path Part Tags Handler
|
|
60
|
+
*/
|
|
61
|
+
bulkAddPathPartTagsRaw(requestParameters, initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const requestOptions = yield this.bulkAddPathPartTagsRequestOpts(requestParameters);
|
|
64
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
65
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartTagsResponseFromJSON)(jsonValue));
|
|
57
66
|
});
|
|
58
67
|
}
|
|
@@ -67,10 +76,9 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
67
76
|
});
|
|
68
77
|
}
|
|
69
78
|
/**
|
|
70
|
-
*
|
|
71
|
-
* Bulk Remove Path Part Tags Handler
|
|
79
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
72
80
|
*/
|
|
73
|
-
|
|
81
|
+
bulkRemovePathPartTagsRequestOpts(requestParameters) {
|
|
74
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
83
|
if (requestParameters['pathPartId'] == null) {
|
|
76
84
|
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling bulkRemovePathPartTags().');
|
|
@@ -83,13 +91,23 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
83
91
|
headerParameters['Content-Type'] = 'application/json';
|
|
84
92
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
85
93
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
86
|
-
|
|
94
|
+
return {
|
|
87
95
|
path: urlPath,
|
|
88
96
|
method: 'DELETE',
|
|
89
97
|
headers: headerParameters,
|
|
90
98
|
query: queryParameters,
|
|
91
99
|
body: (0, index_1.BulkTagRequestToJSON)(requestParameters['bulkTagRequest']),
|
|
92
|
-
}
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
105
|
+
* Bulk Remove Path Part Tags Handler
|
|
106
|
+
*/
|
|
107
|
+
bulkRemovePathPartTagsRaw(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const requestOptions = yield this.bulkRemovePathPartTagsRequestOpts(requestParameters);
|
|
110
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
93
111
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartTagsResponseFromJSON)(jsonValue));
|
|
94
112
|
});
|
|
95
113
|
}
|
|
@@ -104,10 +122,9 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
104
122
|
});
|
|
105
123
|
}
|
|
106
124
|
/**
|
|
107
|
-
*
|
|
108
|
-
* Get Path Part Handler
|
|
125
|
+
* Creates request options for getPathPart without sending the request
|
|
109
126
|
*/
|
|
110
|
-
|
|
127
|
+
getPathPartRequestOpts(requestParameters) {
|
|
111
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
129
|
if (requestParameters['pathPartId'] == null) {
|
|
113
130
|
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling getPathPart().');
|
|
@@ -116,12 +133,22 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
116
133
|
const headerParameters = {};
|
|
117
134
|
let urlPath = `/v1/path-parts/{path_part_id}`;
|
|
118
135
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
119
|
-
|
|
136
|
+
return {
|
|
120
137
|
path: urlPath,
|
|
121
138
|
method: 'GET',
|
|
122
139
|
headers: headerParameters,
|
|
123
140
|
query: queryParameters,
|
|
124
|
-
}
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
146
|
+
* Get Path Part Handler
|
|
147
|
+
*/
|
|
148
|
+
getPathPartRaw(requestParameters, initOverrides) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
const requestOptions = yield this.getPathPartRequestOpts(requestParameters);
|
|
151
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
125
152
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartResponseFromJSON)(jsonValue));
|
|
126
153
|
});
|
|
127
154
|
}
|
|
@@ -136,10 +163,94 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
136
163
|
});
|
|
137
164
|
}
|
|
138
165
|
/**
|
|
139
|
-
*
|
|
140
|
-
* List Path Parts Handler
|
|
166
|
+
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
141
167
|
*/
|
|
142
|
-
|
|
168
|
+
getPathPartSubtreeChunksRequestOpts(requestParameters) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
if (requestParameters['pathPartId'] == null) {
|
|
171
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling getPathPartSubtreeChunks().');
|
|
172
|
+
}
|
|
173
|
+
const queryParameters = {};
|
|
174
|
+
const headerParameters = {};
|
|
175
|
+
let urlPath = `/v1/path-parts/{path_part_id}/subtree_chunks`;
|
|
176
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
177
|
+
return {
|
|
178
|
+
path: urlPath,
|
|
179
|
+
method: 'GET',
|
|
180
|
+
headers: headerParameters,
|
|
181
|
+
query: queryParameters,
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
187
|
+
* Get Path Part Subtree Chunks Handler
|
|
188
|
+
*/
|
|
189
|
+
getPathPartSubtreeChunksRaw(requestParameters, initOverrides) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const requestOptions = yield this.getPathPartSubtreeChunksRequestOpts(requestParameters);
|
|
192
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SubtreeChunksResponseFromJSON)(jsonValue));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
198
|
+
* Get Path Part Subtree Chunks Handler
|
|
199
|
+
*/
|
|
200
|
+
getPathPartSubtreeChunks(requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
const response = yield this.getPathPartSubtreeChunksRaw(requestParameters, initOverrides);
|
|
203
|
+
return yield response.value();
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Creates request options for getPathPartTags without sending the request
|
|
208
|
+
*/
|
|
209
|
+
getPathPartTagsRequestOpts(requestParameters) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
if (requestParameters['pathPartId'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling getPathPartTags().');
|
|
213
|
+
}
|
|
214
|
+
const queryParameters = {};
|
|
215
|
+
if (requestParameters['includeInherited'] != null) {
|
|
216
|
+
queryParameters['include_inherited'] = requestParameters['includeInherited'];
|
|
217
|
+
}
|
|
218
|
+
const headerParameters = {};
|
|
219
|
+
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
220
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
221
|
+
return {
|
|
222
|
+
path: urlPath,
|
|
223
|
+
method: 'GET',
|
|
224
|
+
headers: headerParameters,
|
|
225
|
+
query: queryParameters,
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Get tags for a path part. When include_inherited=False (default), returns only directly-attached tags. When include_inherited=True, walks the ancestor chain and returns the deduplicated union of tags from all ancestors (including the path part itself).
|
|
231
|
+
* Get Path Part Tags Handler
|
|
232
|
+
*/
|
|
233
|
+
getPathPartTagsRaw(requestParameters, initOverrides) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
const requestOptions = yield this.getPathPartTagsRequestOpts(requestParameters);
|
|
236
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartTagsResponseFromJSON)(jsonValue));
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Get tags for a path part. When include_inherited=False (default), returns only directly-attached tags. When include_inherited=True, walks the ancestor chain and returns the deduplicated union of tags from all ancestors (including the path part itself).
|
|
242
|
+
* Get Path Part Tags Handler
|
|
243
|
+
*/
|
|
244
|
+
getPathPartTags(requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const response = yield this.getPathPartTagsRaw(requestParameters, initOverrides);
|
|
247
|
+
return yield response.value();
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Creates request options for listPathParts without sending the request
|
|
252
|
+
*/
|
|
253
|
+
listPathPartsRequestOpts(requestParameters) {
|
|
143
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
255
|
const queryParameters = {};
|
|
145
256
|
if (requestParameters['parentPathId'] != null) {
|
|
@@ -159,12 +270,22 @@ class PathPartsApi extends runtime.BaseAPI {
|
|
|
159
270
|
}
|
|
160
271
|
const headerParameters = {};
|
|
161
272
|
let urlPath = `/v1/path-parts`;
|
|
162
|
-
|
|
273
|
+
return {
|
|
163
274
|
path: urlPath,
|
|
164
275
|
method: 'GET',
|
|
165
276
|
headers: headerParameters,
|
|
166
277
|
query: queryParameters,
|
|
167
|
-
}
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* 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.
|
|
283
|
+
* List Path Parts Handler
|
|
284
|
+
*/
|
|
285
|
+
listPathPartsRaw(requestParameters, initOverrides) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
const requestOptions = yield this.listPathPartsRequestOpts(requestParameters);
|
|
288
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
168
289
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponsePathPartResponseFromJSON)(jsonValue));
|
|
169
290
|
});
|
|
170
291
|
}
|
|
@@ -35,6 +35,14 @@ export interface UpdateSectionOperationRequest {
|
|
|
35
35
|
* @interface SectionsApiInterface
|
|
36
36
|
*/
|
|
37
37
|
export interface SectionsApiInterface {
|
|
38
|
+
/**
|
|
39
|
+
* Creates request options for createSection without sending the request
|
|
40
|
+
* @param {CreateSectionRequest} createSectionRequest
|
|
41
|
+
* @param {string} [ksUat]
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof SectionsApiInterface
|
|
44
|
+
*/
|
|
45
|
+
createSectionRequestOpts(requestParameters: CreateSectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
38
46
|
/**
|
|
39
47
|
* 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.
|
|
40
48
|
* @summary Create Section Handler
|
|
@@ -50,6 +58,14 @@ export interface SectionsApiInterface {
|
|
|
50
58
|
* Create Section Handler
|
|
51
59
|
*/
|
|
52
60
|
createSection(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for deleteSection without sending the request
|
|
63
|
+
* @param {string} sectionId
|
|
64
|
+
* @param {string} [ksUat]
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof SectionsApiInterface
|
|
67
|
+
*/
|
|
68
|
+
deleteSectionRequestOpts(requestParameters: DeleteSectionRequest): Promise<runtime.RequestOpts>;
|
|
53
69
|
/**
|
|
54
70
|
* Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
|
|
55
71
|
* @summary Delete Section Handler
|
|
@@ -65,6 +81,14 @@ export interface SectionsApiInterface {
|
|
|
65
81
|
* Delete Section Handler
|
|
66
82
|
*/
|
|
67
83
|
deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for getSection without sending the request
|
|
86
|
+
* @param {string} sectionId
|
|
87
|
+
* @param {string} [ksUat]
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof SectionsApiInterface
|
|
90
|
+
*/
|
|
91
|
+
getSectionRequestOpts(requestParameters: GetSectionRequest): Promise<runtime.RequestOpts>;
|
|
68
92
|
/**
|
|
69
93
|
* Get a section by its ID.
|
|
70
94
|
* @summary Get Section Handler
|
|
@@ -80,6 +104,15 @@ export interface SectionsApiInterface {
|
|
|
80
104
|
* Get Section Handler
|
|
81
105
|
*/
|
|
82
106
|
getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Creates request options for updateSection without sending the request
|
|
109
|
+
* @param {string} sectionId
|
|
110
|
+
* @param {UpdateSectionRequest} updateSectionRequest
|
|
111
|
+
* @param {string} [ksUat]
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
* @memberof SectionsApiInterface
|
|
114
|
+
*/
|
|
115
|
+
updateSectionRequestOpts(requestParameters: UpdateSectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
83
116
|
/**
|
|
84
117
|
* 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.
|
|
85
118
|
* @summary Update Section Handler
|
|
@@ -101,6 +134,10 @@ export interface SectionsApiInterface {
|
|
|
101
134
|
*
|
|
102
135
|
*/
|
|
103
136
|
export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface {
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for createSection without sending the request
|
|
139
|
+
*/
|
|
140
|
+
createSectionRequestOpts(requestParameters: CreateSectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
104
141
|
/**
|
|
105
142
|
* 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.
|
|
106
143
|
* Create Section Handler
|
|
@@ -111,6 +148,10 @@ export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiI
|
|
|
111
148
|
* Create Section Handler
|
|
112
149
|
*/
|
|
113
150
|
createSection(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Creates request options for deleteSection without sending the request
|
|
153
|
+
*/
|
|
154
|
+
deleteSectionRequestOpts(requestParameters: DeleteSectionRequest): Promise<runtime.RequestOpts>;
|
|
114
155
|
/**
|
|
115
156
|
* Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
|
|
116
157
|
* Delete Section Handler
|
|
@@ -121,6 +162,10 @@ export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiI
|
|
|
121
162
|
* Delete Section Handler
|
|
122
163
|
*/
|
|
123
164
|
deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Creates request options for getSection without sending the request
|
|
167
|
+
*/
|
|
168
|
+
getSectionRequestOpts(requestParameters: GetSectionRequest): Promise<runtime.RequestOpts>;
|
|
124
169
|
/**
|
|
125
170
|
* Get a section by its ID.
|
|
126
171
|
* Get Section Handler
|
|
@@ -131,6 +176,10 @@ export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiI
|
|
|
131
176
|
* Get Section Handler
|
|
132
177
|
*/
|
|
133
178
|
getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Creates request options for updateSection without sending the request
|
|
181
|
+
*/
|
|
182
|
+
updateSectionRequestOpts(requestParameters: UpdateSectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
134
183
|
/**
|
|
135
184
|
* 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.
|
|
136
185
|
* Update Section Handler
|