@knowledge-stack/ksapi 1.23.4 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +125 -6
- package/.openapi-generator/VERSION +1 -1
- package/README.md +274 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +78 -4
- package/dist/apis/ChunksApi.js +85 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +54 -0
- package/dist/apis/PathPartsApi.js +56 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +172 -5
- package/dist/apis/TenantsApi.js +179 -31
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +78 -4
- package/dist/esm/apis/ChunksApi.js +85 -31
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +54 -0
- package/dist/esm/apis/PathPartsApi.js +56 -20
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +172 -5
- package/dist/esm/apis/TenantsApi.js +180 -32
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- package/dist/esm/models/ChunkResponse.d.ts +6 -0
- package/dist/esm/models/ChunkResponse.js +2 -0
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +8 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/InviteResponse.d.ts +7 -0
- package/dist/esm/models/InviteResponse.js +5 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseTenantUserInTenantResponse.js → PaginatedResponseTenantUserResponse.js} +12 -12
- package/dist/esm/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/esm/models/ScoredChunkResponse.js +2 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/TenantUserEditRequest.d.ts +48 -0
- package/dist/esm/models/TenantUserEditRequest.js +45 -0
- package/dist/esm/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/esm/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +13 -9
- package/dist/esm/models/index.d.ts +9 -6
- package/dist/esm/models/index.js +9 -6
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/ChunkResponse.d.ts +6 -0
- package/dist/models/ChunkResponse.js +2 -0
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +9 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +9 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +5 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTenantUserResponse.js +78 -0
- package/dist/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/models/ScoredChunkResponse.js +2 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/TenantUserEditRequest.d.ts +48 -0
- package/dist/models/TenantUserEditRequest.js +53 -0
- package/dist/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +19 -15
- package/dist/models/index.d.ts +9 -6
- package/dist/models/index.js +9 -6
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +47 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +446 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +314 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +137 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +94 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +339 -37
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/ChunkResponse.ts +8 -0
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/InviteResponse.ts +19 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/{PaginatedResponseFolderDocumentResponse.ts → PaginatedResponseTenantUserResponse.ts} +25 -25
- package/src/models/ScoredChunkResponse.ts +8 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/TenantUserEditRequest.ts +93 -0
- package/src/models/{TenantUserInTenantResponse.ts → TenantUserResponse.ts} +24 -15
- package/src/models/index.ts +9 -6
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/esm/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseTenantUserInTenantResponse.ts +0 -130
package/dist/apis/FoldersApi.js
CHANGED
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class FoldersApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Create Folder Handler
|
|
33
|
+
* Creates request options for createFolder without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
createFolderRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['createFolderRequest'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('createFolderRequest', 'Required parameter "createFolderRequest" was null or undefined when calling createFolder().');
|
|
@@ -42,13 +41,23 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
43
|
let urlPath = `/v1/folders`;
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'POST',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
49
|
body: (0, index_1.CreateFolderRequestToJSON)(requestParameters['createFolderRequest']),
|
|
51
|
-
}
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create a new folder. The folder is created as a child of the specified parent folder. It is automatically added to the end of the parent\'s children list.
|
|
55
|
+
* Create Folder Handler
|
|
56
|
+
*/
|
|
57
|
+
createFolderRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.createFolderRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
52
61
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FolderResponseFromJSON)(jsonValue));
|
|
53
62
|
});
|
|
54
63
|
}
|
|
@@ -63,10 +72,9 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
63
72
|
});
|
|
64
73
|
}
|
|
65
74
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Delete Folder Handler
|
|
75
|
+
* Creates request options for deleteFolder without sending the request
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
deleteFolderRequestOpts(requestParameters) {
|
|
70
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
79
|
if (requestParameters['folderId'] == null) {
|
|
72
80
|
throw new runtime.RequiredError('folderId', 'Required parameter "folderId" was null or undefined when calling deleteFolder().');
|
|
@@ -75,12 +83,22 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
75
83
|
const headerParameters = {};
|
|
76
84
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
77
85
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
78
|
-
|
|
86
|
+
return {
|
|
79
87
|
path: urlPath,
|
|
80
88
|
method: 'DELETE',
|
|
81
89
|
headers: headerParameters,
|
|
82
90
|
query: queryParameters,
|
|
83
|
-
}
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Delete a folder and all its contents. WARNING: This cascades to all children due to parent_id ON DELETE CASCADE. The root folder cannot be deleted.
|
|
96
|
+
* Delete Folder Handler
|
|
97
|
+
*/
|
|
98
|
+
deleteFolderRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.deleteFolderRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
84
102
|
return new runtime.VoidApiResponse(response);
|
|
85
103
|
});
|
|
86
104
|
}
|
|
@@ -94,10 +112,9 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
94
112
|
});
|
|
95
113
|
}
|
|
96
114
|
/**
|
|
97
|
-
*
|
|
98
|
-
* Get Folder Handler
|
|
115
|
+
* Creates request options for getFolder without sending the request
|
|
99
116
|
*/
|
|
100
|
-
|
|
117
|
+
getFolderRequestOpts(requestParameters) {
|
|
101
118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
119
|
if (requestParameters['folderId'] == null) {
|
|
103
120
|
throw new runtime.RequiredError('folderId', 'Required parameter "folderId" was null or undefined when calling getFolder().');
|
|
@@ -109,12 +126,22 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
109
126
|
const headerParameters = {};
|
|
110
127
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
111
128
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
112
|
-
|
|
129
|
+
return {
|
|
113
130
|
path: urlPath,
|
|
114
131
|
method: 'GET',
|
|
115
132
|
headers: headerParameters,
|
|
116
133
|
query: queryParameters,
|
|
117
|
-
}
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Get a folder by its folder ID.
|
|
139
|
+
* Get Folder Handler
|
|
140
|
+
*/
|
|
141
|
+
getFolderRaw(requestParameters, initOverrides) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const requestOptions = yield this.getFolderRequestOpts(requestParameters);
|
|
144
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
118
145
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FolderResponseFromJSON)(jsonValue));
|
|
119
146
|
});
|
|
120
147
|
}
|
|
@@ -129,10 +156,9 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
129
156
|
});
|
|
130
157
|
}
|
|
131
158
|
/**
|
|
132
|
-
*
|
|
133
|
-
* List Folder Contents Handler
|
|
159
|
+
* Creates request options for listFolderContents without sending the request
|
|
134
160
|
*/
|
|
135
|
-
|
|
161
|
+
listFolderContentsRequestOpts(requestParameters) {
|
|
136
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
163
|
if (requestParameters['folderId'] == null) {
|
|
138
164
|
throw new runtime.RequiredError('folderId', 'Required parameter "folderId" was null or undefined when calling listFolderContents().');
|
|
@@ -156,17 +182,27 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
156
182
|
const headerParameters = {};
|
|
157
183
|
let urlPath = `/v1/folders/{folder_id}/contents`;
|
|
158
184
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
159
|
-
|
|
185
|
+
return {
|
|
160
186
|
path: urlPath,
|
|
161
187
|
method: 'GET',
|
|
162
188
|
headers: headerParameters,
|
|
163
189
|
query: queryParameters,
|
|
164
|
-
}
|
|
165
|
-
|
|
190
|
+
};
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
195
|
+
* List Folder Contents Handler
|
|
196
|
+
*/
|
|
197
|
+
listFolderContentsRaw(requestParameters, initOverrides) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const requestOptions = yield this.listFolderContentsRequestOpts(requestParameters);
|
|
200
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
201
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminatorFromJSON)(jsonValue));
|
|
166
202
|
});
|
|
167
203
|
}
|
|
168
204
|
/**
|
|
169
|
-
* List all contents (folders and documents) under a folder. Returns
|
|
205
|
+
* List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
170
206
|
* List Folder Contents Handler
|
|
171
207
|
*/
|
|
172
208
|
listFolderContents(requestParameters, initOverrides) {
|
|
@@ -176,10 +212,9 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
176
212
|
});
|
|
177
213
|
}
|
|
178
214
|
/**
|
|
179
|
-
*
|
|
180
|
-
* List Folders Handler
|
|
215
|
+
* Creates request options for listFolders without sending the request
|
|
181
216
|
*/
|
|
182
|
-
|
|
217
|
+
listFoldersRequestOpts(requestParameters) {
|
|
183
218
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
219
|
const queryParameters = {};
|
|
185
220
|
if (requestParameters['parentPathPartId'] != null) {
|
|
@@ -199,12 +234,22 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
199
234
|
}
|
|
200
235
|
const headerParameters = {};
|
|
201
236
|
let urlPath = `/v1/folders`;
|
|
202
|
-
|
|
237
|
+
return {
|
|
203
238
|
path: urlPath,
|
|
204
239
|
method: 'GET',
|
|
205
240
|
headers: headerParameters,
|
|
206
241
|
query: queryParameters,
|
|
207
|
-
}
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* List child folders of a parent folder. Returns only direct child folders (depth=1) of the specified parent. If parent_path_part_id is not provided, lists top-level folders. At root level, the /users folder is hidden and replaced with the current user\'s personal folder (/users/{user_id}) displayed as \"Personal\".
|
|
247
|
+
* List Folders Handler
|
|
248
|
+
*/
|
|
249
|
+
listFoldersRaw(requestParameters, initOverrides) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
const requestOptions = yield this.listFoldersRequestOpts(requestParameters);
|
|
252
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
208
253
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseFolderResponseFromJSON)(jsonValue));
|
|
209
254
|
});
|
|
210
255
|
}
|
|
@@ -219,10 +264,9 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
219
264
|
});
|
|
220
265
|
}
|
|
221
266
|
/**
|
|
222
|
-
*
|
|
223
|
-
* Update Folder Handler
|
|
267
|
+
* Creates request options for updateFolder without sending the request
|
|
224
268
|
*/
|
|
225
|
-
|
|
269
|
+
updateFolderRequestOpts(requestParameters) {
|
|
226
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
271
|
if (requestParameters['folderId'] == null) {
|
|
228
272
|
throw new runtime.RequiredError('folderId', 'Required parameter "folderId" was null or undefined when calling updateFolder().');
|
|
@@ -235,13 +279,23 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
235
279
|
headerParameters['Content-Type'] = 'application/json';
|
|
236
280
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
237
281
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
238
|
-
|
|
282
|
+
return {
|
|
239
283
|
path: urlPath,
|
|
240
284
|
method: 'PATCH',
|
|
241
285
|
headers: headerParameters,
|
|
242
286
|
query: queryParameters,
|
|
243
287
|
body: (0, index_1.UpdateFolderRequestToJSON)(requestParameters['updateFolderRequest']),
|
|
244
|
-
}
|
|
288
|
+
};
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Update a folder (rename and/or move). To rename: provide `name` field. To move: provide `parent_path_part_id` field. Both can be done in a single request.
|
|
293
|
+
* Update Folder Handler
|
|
294
|
+
*/
|
|
295
|
+
updateFolderRaw(requestParameters, initOverrides) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
const requestOptions = yield this.updateFolderRequestOpts(requestParameters);
|
|
298
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
245
299
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FolderResponseFromJSON)(jsonValue));
|
|
246
300
|
});
|
|
247
301
|
}
|
|
@@ -37,6 +37,14 @@ export interface ListInvitesRequest {
|
|
|
37
37
|
* @interface InvitesApiInterface
|
|
38
38
|
*/
|
|
39
39
|
export interface InvitesApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for acceptInvite without sending the request
|
|
42
|
+
* @param {string} inviteId
|
|
43
|
+
* @param {string} [ksUat]
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof InvitesApiInterface
|
|
46
|
+
*/
|
|
47
|
+
acceptInviteRequestOpts(requestParameters: AcceptInviteRequest): Promise<runtime.RequestOpts>;
|
|
40
48
|
/**
|
|
41
49
|
* Update an invite to accepted status and create tenant user.
|
|
42
50
|
* @summary Accept Invite
|
|
@@ -52,6 +60,14 @@ export interface InvitesApiInterface {
|
|
|
52
60
|
* Accept Invite
|
|
53
61
|
*/
|
|
54
62
|
acceptInvite(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
63
|
+
/**
|
|
64
|
+
* Creates request options for createInvite without sending the request
|
|
65
|
+
* @param {InviteUserRequest} inviteUserRequest
|
|
66
|
+
* @param {string} [ksUat]
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
* @memberof InvitesApiInterface
|
|
69
|
+
*/
|
|
70
|
+
createInviteRequestOpts(requestParameters: CreateInviteRequest): Promise<runtime.RequestOpts>;
|
|
55
71
|
/**
|
|
56
72
|
* Create an invite for a user to join a tenant (admin-only). For external IdP tenants (idp_config is set), users are added directly if they exist. For shared IdP tenants (PASSWORD/GOOGLE), an email invite is sent that must be accepted.
|
|
57
73
|
* @summary Create Invite
|
|
@@ -67,6 +83,14 @@ export interface InvitesApiInterface {
|
|
|
67
83
|
* Create Invite
|
|
68
84
|
*/
|
|
69
85
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Creates request options for deleteInvite without sending the request
|
|
88
|
+
* @param {string} inviteId
|
|
89
|
+
* @param {string} [ksUat]
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
* @memberof InvitesApiInterface
|
|
92
|
+
*/
|
|
93
|
+
deleteInviteRequestOpts(requestParameters: DeleteInviteRequest): Promise<runtime.RequestOpts>;
|
|
70
94
|
/**
|
|
71
95
|
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
72
96
|
* @summary Delete Invite
|
|
@@ -82,6 +106,17 @@ export interface InvitesApiInterface {
|
|
|
82
106
|
* Delete Invite
|
|
83
107
|
*/
|
|
84
108
|
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Creates request options for listInvites without sending the request
|
|
111
|
+
* @param {string} [email] Filter by email (case-insensitive partial match)
|
|
112
|
+
* @param {InviteStatus} [status] Filter by invite status (pending, accepted, expired)
|
|
113
|
+
* @param {number} [limit] Number of items per page
|
|
114
|
+
* @param {number} [offset] Number of items to skip
|
|
115
|
+
* @param {string} [ksUat]
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
* @memberof InvitesApiInterface
|
|
118
|
+
*/
|
|
119
|
+
listInvitesRequestOpts(requestParameters: ListInvitesRequest): Promise<runtime.RequestOpts>;
|
|
85
120
|
/**
|
|
86
121
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
87
122
|
* @summary List Invites Handler
|
|
@@ -105,6 +140,10 @@ export interface InvitesApiInterface {
|
|
|
105
140
|
*
|
|
106
141
|
*/
|
|
107
142
|
export declare class InvitesApi extends runtime.BaseAPI implements InvitesApiInterface {
|
|
143
|
+
/**
|
|
144
|
+
* Creates request options for acceptInvite without sending the request
|
|
145
|
+
*/
|
|
146
|
+
acceptInviteRequestOpts(requestParameters: AcceptInviteRequest): Promise<runtime.RequestOpts>;
|
|
108
147
|
/**
|
|
109
148
|
* Update an invite to accepted status and create tenant user.
|
|
110
149
|
* Accept Invite
|
|
@@ -115,6 +154,10 @@ export declare class InvitesApi extends runtime.BaseAPI implements InvitesApiInt
|
|
|
115
154
|
* Accept Invite
|
|
116
155
|
*/
|
|
117
156
|
acceptInvite(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
157
|
+
/**
|
|
158
|
+
* Creates request options for createInvite without sending the request
|
|
159
|
+
*/
|
|
160
|
+
createInviteRequestOpts(requestParameters: CreateInviteRequest): Promise<runtime.RequestOpts>;
|
|
118
161
|
/**
|
|
119
162
|
* Create an invite for a user to join a tenant (admin-only). For external IdP tenants (idp_config is set), users are added directly if they exist. For shared IdP tenants (PASSWORD/GOOGLE), an email invite is sent that must be accepted.
|
|
120
163
|
* Create Invite
|
|
@@ -125,6 +168,10 @@ export declare class InvitesApi extends runtime.BaseAPI implements InvitesApiInt
|
|
|
125
168
|
* Create Invite
|
|
126
169
|
*/
|
|
127
170
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* Creates request options for deleteInvite without sending the request
|
|
173
|
+
*/
|
|
174
|
+
deleteInviteRequestOpts(requestParameters: DeleteInviteRequest): Promise<runtime.RequestOpts>;
|
|
128
175
|
/**
|
|
129
176
|
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
130
177
|
* Delete Invite
|
|
@@ -135,6 +182,10 @@ export declare class InvitesApi extends runtime.BaseAPI implements InvitesApiInt
|
|
|
135
182
|
* Delete Invite
|
|
136
183
|
*/
|
|
137
184
|
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Creates request options for listInvites without sending the request
|
|
187
|
+
*/
|
|
188
|
+
listInvitesRequestOpts(requestParameters: ListInvitesRequest): Promise<runtime.RequestOpts>;
|
|
138
189
|
/**
|
|
139
190
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
140
191
|
* List Invites Handler
|
package/dist/apis/InvitesApi.js
CHANGED
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class InvitesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Accept Invite
|
|
33
|
+
* Creates request options for acceptInvite without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
acceptInviteRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['inviteId'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling acceptInvite().');
|
|
@@ -42,12 +41,22 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
let urlPath = `/v1/invites/{invite_id}/accept`;
|
|
44
43
|
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'POST',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
|
-
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Update an invite to accepted status and create tenant user.
|
|
54
|
+
* Accept Invite
|
|
55
|
+
*/
|
|
56
|
+
acceptInviteRaw(requestParameters, initOverrides) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const requestOptions = yield this.acceptInviteRequestOpts(requestParameters);
|
|
59
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
51
60
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
52
61
|
return new runtime.JSONApiResponse(response);
|
|
53
62
|
}
|
|
@@ -67,10 +76,9 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
67
76
|
});
|
|
68
77
|
}
|
|
69
78
|
/**
|
|
70
|
-
*
|
|
71
|
-
* Create Invite
|
|
79
|
+
* Creates request options for createInvite without sending the request
|
|
72
80
|
*/
|
|
73
|
-
|
|
81
|
+
createInviteRequestOpts(requestParameters) {
|
|
74
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
83
|
if (requestParameters['inviteUserRequest'] == null) {
|
|
76
84
|
throw new runtime.RequiredError('inviteUserRequest', 'Required parameter "inviteUserRequest" was null or undefined when calling createInvite().');
|
|
@@ -79,13 +87,23 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
79
87
|
const headerParameters = {};
|
|
80
88
|
headerParameters['Content-Type'] = 'application/json';
|
|
81
89
|
let urlPath = `/v1/invites`;
|
|
82
|
-
|
|
90
|
+
return {
|
|
83
91
|
path: urlPath,
|
|
84
92
|
method: 'POST',
|
|
85
93
|
headers: headerParameters,
|
|
86
94
|
query: queryParameters,
|
|
87
95
|
body: (0, index_1.InviteUserRequestToJSON)(requestParameters['inviteUserRequest']),
|
|
88
|
-
}
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Create an invite for a user to join a tenant (admin-only). For external IdP tenants (idp_config is set), users are added directly if they exist. For shared IdP tenants (PASSWORD/GOOGLE), an email invite is sent that must be accepted.
|
|
101
|
+
* Create Invite
|
|
102
|
+
*/
|
|
103
|
+
createInviteRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const requestOptions = yield this.createInviteRequestOpts(requestParameters);
|
|
106
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
89
107
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InviteResponseFromJSON)(jsonValue));
|
|
90
108
|
});
|
|
91
109
|
}
|
|
@@ -100,10 +118,9 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
100
118
|
});
|
|
101
119
|
}
|
|
102
120
|
/**
|
|
103
|
-
*
|
|
104
|
-
* Delete Invite
|
|
121
|
+
* Creates request options for deleteInvite without sending the request
|
|
105
122
|
*/
|
|
106
|
-
|
|
123
|
+
deleteInviteRequestOpts(requestParameters) {
|
|
107
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
125
|
if (requestParameters['inviteId'] == null) {
|
|
109
126
|
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling deleteInvite().');
|
|
@@ -112,12 +129,22 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
112
129
|
const headerParameters = {};
|
|
113
130
|
let urlPath = `/v1/invites/{invite_id}`;
|
|
114
131
|
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
115
|
-
|
|
132
|
+
return {
|
|
116
133
|
path: urlPath,
|
|
117
134
|
method: 'DELETE',
|
|
118
135
|
headers: headerParameters,
|
|
119
136
|
query: queryParameters,
|
|
120
|
-
}
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
142
|
+
* Delete Invite
|
|
143
|
+
*/
|
|
144
|
+
deleteInviteRaw(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const requestOptions = yield this.deleteInviteRequestOpts(requestParameters);
|
|
147
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
121
148
|
return new runtime.VoidApiResponse(response);
|
|
122
149
|
});
|
|
123
150
|
}
|
|
@@ -131,10 +158,9 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
131
158
|
});
|
|
132
159
|
}
|
|
133
160
|
/**
|
|
134
|
-
*
|
|
135
|
-
* List Invites Handler
|
|
161
|
+
* Creates request options for listInvites without sending the request
|
|
136
162
|
*/
|
|
137
|
-
|
|
163
|
+
listInvitesRequestOpts(requestParameters) {
|
|
138
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
165
|
const queryParameters = {};
|
|
140
166
|
if (requestParameters['email'] != null) {
|
|
@@ -151,12 +177,22 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
151
177
|
}
|
|
152
178
|
const headerParameters = {};
|
|
153
179
|
let urlPath = `/v1/invites`;
|
|
154
|
-
|
|
180
|
+
return {
|
|
155
181
|
path: urlPath,
|
|
156
182
|
method: 'GET',
|
|
157
183
|
headers: headerParameters,
|
|
158
184
|
query: queryParameters,
|
|
159
|
-
}
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
190
|
+
* List Invites Handler
|
|
191
|
+
*/
|
|
192
|
+
listInvitesRaw(requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
const requestOptions = yield this.listInvitesRequestOpts(requestParameters);
|
|
195
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
160
196
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseInviteResponseFromJSON)(jsonValue));
|
|
161
197
|
});
|
|
162
198
|
}
|
|
@@ -40,6 +40,15 @@ export interface ListPathPartsRequest {
|
|
|
40
40
|
* @interface PathPartsApiInterface
|
|
41
41
|
*/
|
|
42
42
|
export interface PathPartsApiInterface {
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
45
|
+
* @param {string} pathPartId
|
|
46
|
+
* @param {BulkTagRequest} bulkTagRequest
|
|
47
|
+
* @param {string} [ksUat]
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
* @memberof PathPartsApiInterface
|
|
50
|
+
*/
|
|
51
|
+
bulkAddPathPartTagsRequestOpts(requestParameters: BulkAddPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
43
52
|
/**
|
|
44
53
|
* 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
54
|
* @summary Bulk Add Path Part Tags Handler
|
|
@@ -56,6 +65,15 @@ export interface PathPartsApiInterface {
|
|
|
56
65
|
* Bulk Add Path Part Tags Handler
|
|
57
66
|
*/
|
|
58
67
|
bulkAddPathPartTags(requestParameters: BulkAddPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
70
|
+
* @param {string} pathPartId
|
|
71
|
+
* @param {BulkTagRequest} bulkTagRequest
|
|
72
|
+
* @param {string} [ksUat]
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof PathPartsApiInterface
|
|
75
|
+
*/
|
|
76
|
+
bulkRemovePathPartTagsRequestOpts(requestParameters: BulkRemovePathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
59
77
|
/**
|
|
60
78
|
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
61
79
|
* @summary Bulk Remove Path Part Tags Handler
|
|
@@ -72,6 +90,14 @@ export interface PathPartsApiInterface {
|
|
|
72
90
|
* Bulk Remove Path Part Tags Handler
|
|
73
91
|
*/
|
|
74
92
|
bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates request options for getPathPart without sending the request
|
|
95
|
+
* @param {string} pathPartId
|
|
96
|
+
* @param {string} [ksUat]
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
* @memberof PathPartsApiInterface
|
|
99
|
+
*/
|
|
100
|
+
getPathPartRequestOpts(requestParameters: GetPathPartRequest): Promise<runtime.RequestOpts>;
|
|
75
101
|
/**
|
|
76
102
|
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
77
103
|
* @summary Get Path Part Handler
|
|
@@ -87,6 +113,18 @@ export interface PathPartsApiInterface {
|
|
|
87
113
|
* Get Path Part Handler
|
|
88
114
|
*/
|
|
89
115
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Creates request options for listPathParts without sending the request
|
|
118
|
+
* @param {string} [parentPathId] Parent PathPart ID (defaults to root)
|
|
119
|
+
* @param {number} [maxDepth] Maximum depth to traverse (1 = direct children, default: 1)
|
|
120
|
+
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
121
|
+
* @param {number} [limit] Number of items per page
|
|
122
|
+
* @param {number} [offset] Number of items to skip
|
|
123
|
+
* @param {string} [ksUat]
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
* @memberof PathPartsApiInterface
|
|
126
|
+
*/
|
|
127
|
+
listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts>;
|
|
90
128
|
/**
|
|
91
129
|
* 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
130
|
* @summary List Path Parts Handler
|
|
@@ -111,6 +149,10 @@ export interface PathPartsApiInterface {
|
|
|
111
149
|
*
|
|
112
150
|
*/
|
|
113
151
|
export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsApiInterface {
|
|
152
|
+
/**
|
|
153
|
+
* Creates request options for bulkAddPathPartTags without sending the request
|
|
154
|
+
*/
|
|
155
|
+
bulkAddPathPartTagsRequestOpts(requestParameters: BulkAddPathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
114
156
|
/**
|
|
115
157
|
* 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
158
|
* Bulk Add Path Part Tags Handler
|
|
@@ -121,6 +163,10 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
121
163
|
* Bulk Add Path Part Tags Handler
|
|
122
164
|
*/
|
|
123
165
|
bulkAddPathPartTags(requestParameters: BulkAddPathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
168
|
+
*/
|
|
169
|
+
bulkRemovePathPartTagsRequestOpts(requestParameters: BulkRemovePathPartTagsRequest): Promise<runtime.RequestOpts>;
|
|
124
170
|
/**
|
|
125
171
|
* Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
|
|
126
172
|
* Bulk Remove Path Part Tags Handler
|
|
@@ -131,6 +177,10 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
131
177
|
* Bulk Remove Path Part Tags Handler
|
|
132
178
|
*/
|
|
133
179
|
bulkRemovePathPartTags(requestParameters: BulkRemovePathPartTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartTagsResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Creates request options for getPathPart without sending the request
|
|
182
|
+
*/
|
|
183
|
+
getPathPartRequestOpts(requestParameters: GetPathPartRequest): Promise<runtime.RequestOpts>;
|
|
134
184
|
/**
|
|
135
185
|
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
136
186
|
* Get Path Part Handler
|
|
@@ -141,6 +191,10 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
141
191
|
* Get Path Part Handler
|
|
142
192
|
*/
|
|
143
193
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
194
|
+
/**
|
|
195
|
+
* Creates request options for listPathParts without sending the request
|
|
196
|
+
*/
|
|
197
|
+
listPathPartsRequestOpts(requestParameters: ListPathPartsRequest): Promise<runtime.RequestOpts>;
|
|
144
198
|
/**
|
|
145
199
|
* 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
200
|
* List Path Parts Handler
|