@knowledge-stack/ksapi 1.41.0 → 1.42.1
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 +8 -0
- package/README.md +18 -9
- package/dist/apis/ApiKeysApi.d.ts +187 -0
- package/dist/apis/ApiKeysApi.js +193 -0
- package/dist/apis/AuthApi.d.ts +6 -0
- package/dist/apis/AuthApi.js +6 -0
- package/dist/apis/ChunkLineagesApi.d.ts +9 -0
- package/dist/apis/ChunkLineagesApi.js +9 -0
- package/dist/apis/ChunksApi.d.ts +24 -0
- package/dist/apis/ChunksApi.js +24 -0
- package/dist/apis/DocumentVersionsApi.d.ts +21 -0
- package/dist/apis/DocumentVersionsApi.js +21 -0
- package/dist/apis/DocumentsApi.d.ts +21 -0
- package/dist/apis/DocumentsApi.js +21 -0
- package/dist/apis/FoldersApi.d.ts +21 -0
- package/dist/apis/FoldersApi.js +21 -0
- package/dist/apis/InvitesApi.d.ts +12 -0
- package/dist/apis/InvitesApi.js +12 -0
- package/dist/apis/PathPartsApi.d.ts +18 -0
- package/dist/apis/PathPartsApi.js +18 -0
- package/dist/apis/SectionsApi.d.ts +12 -0
- package/dist/apis/SectionsApi.js +12 -0
- package/dist/apis/TagsApi.d.ts +15 -0
- package/dist/apis/TagsApi.js +15 -0
- package/dist/apis/TenantsApi.d.ts +24 -0
- package/dist/apis/TenantsApi.js +24 -0
- package/dist/apis/ThreadMessagesApi.d.ts +9 -0
- package/dist/apis/ThreadMessagesApi.js +9 -0
- package/dist/apis/ThreadsApi.d.ts +21 -0
- package/dist/apis/ThreadsApi.js +21 -0
- package/dist/apis/UserPermissionsApi.d.ts +12 -0
- package/dist/apis/UserPermissionsApi.js +12 -0
- package/dist/apis/UsersApi.d.ts +6 -0
- package/dist/apis/UsersApi.js +6 -0
- package/dist/apis/WorkflowsApi.d.ts +9 -0
- package/dist/apis/WorkflowsApi.js +9 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ApiKeysApi.d.ts +187 -0
- package/dist/esm/apis/ApiKeysApi.js +189 -0
- package/dist/esm/apis/AuthApi.d.ts +6 -0
- package/dist/esm/apis/AuthApi.js +6 -0
- package/dist/esm/apis/ChunkLineagesApi.d.ts +9 -0
- package/dist/esm/apis/ChunkLineagesApi.js +9 -0
- package/dist/esm/apis/ChunksApi.d.ts +24 -0
- package/dist/esm/apis/ChunksApi.js +24 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +21 -0
- package/dist/esm/apis/DocumentVersionsApi.js +21 -0
- package/dist/esm/apis/DocumentsApi.d.ts +21 -0
- package/dist/esm/apis/DocumentsApi.js +21 -0
- package/dist/esm/apis/FoldersApi.d.ts +21 -0
- package/dist/esm/apis/FoldersApi.js +21 -0
- package/dist/esm/apis/InvitesApi.d.ts +12 -0
- package/dist/esm/apis/InvitesApi.js +12 -0
- package/dist/esm/apis/PathPartsApi.d.ts +18 -0
- package/dist/esm/apis/PathPartsApi.js +18 -0
- package/dist/esm/apis/SectionsApi.d.ts +12 -0
- package/dist/esm/apis/SectionsApi.js +12 -0
- package/dist/esm/apis/TagsApi.d.ts +15 -0
- package/dist/esm/apis/TagsApi.js +15 -0
- package/dist/esm/apis/TenantsApi.d.ts +24 -0
- package/dist/esm/apis/TenantsApi.js +24 -0
- package/dist/esm/apis/ThreadMessagesApi.d.ts +9 -0
- package/dist/esm/apis/ThreadMessagesApi.js +9 -0
- package/dist/esm/apis/ThreadsApi.d.ts +21 -0
- package/dist/esm/apis/ThreadsApi.js +21 -0
- package/dist/esm/apis/UserPermissionsApi.d.ts +12 -0
- package/dist/esm/apis/UserPermissionsApi.js +12 -0
- package/dist/esm/apis/UsersApi.d.ts +6 -0
- package/dist/esm/apis/UsersApi.js +6 -0
- package/dist/esm/apis/WorkflowsApi.d.ts +9 -0
- package/dist/esm/apis/WorkflowsApi.js +9 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ApiKeyResponse.d.ts +65 -0
- package/dist/esm/models/ApiKeyResponse.js +56 -0
- package/dist/esm/models/CreateApiKeyRequest.d.ts +47 -0
- package/dist/esm/models/CreateApiKeyRequest.js +49 -0
- package/dist/esm/models/CreateApiKeyResponse.d.ts +71 -0
- package/dist/esm/models/CreateApiKeyResponse.js +60 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/ApiKeyResponse.d.ts +65 -0
- package/dist/models/ApiKeyResponse.js +64 -0
- package/dist/models/CreateApiKeyRequest.d.ts +47 -0
- package/dist/models/CreateApiKeyRequest.js +57 -0
- package/dist/models/CreateApiKeyResponse.d.ts +71 -0
- package/dist/models/CreateApiKeyResponse.js +68 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/ApiKeyResponse.md +41 -0
- package/docs/ApiKeysApi.md +293 -0
- package/docs/AuthApi.md +8 -2
- package/docs/ChunkLineagesApi.md +12 -3
- package/docs/ChunksApi.md +32 -8
- package/docs/CreateApiKeyRequest.md +35 -0
- package/docs/CreateApiKeyResponse.md +43 -0
- package/docs/DocumentVersionsApi.md +28 -7
- package/docs/DocumentsApi.md +28 -7
- package/docs/FoldersApi.md +28 -7
- package/docs/InvitesApi.md +16 -4
- package/docs/PathPartsApi.md +24 -6
- package/docs/SectionsApi.md +16 -4
- package/docs/TagsApi.md +20 -5
- package/docs/TenantsApi.md +32 -8
- package/docs/ThreadMessagesApi.md +12 -3
- package/docs/ThreadsApi.md +28 -7
- package/docs/UserPermissionsApi.md +16 -4
- package/docs/UsersApi.md +8 -2
- package/docs/WorkflowsApi.md +12 -3
- package/package.json +1 -1
- package/src/apis/ApiKeysApi.ts +350 -0
- package/src/apis/AuthApi.ts +14 -0
- package/src/apis/ChunkLineagesApi.ts +21 -0
- package/src/apis/ChunksApi.ts +56 -0
- package/src/apis/DocumentVersionsApi.ts +49 -0
- package/src/apis/DocumentsApi.ts +49 -0
- package/src/apis/FoldersApi.ts +49 -0
- package/src/apis/InvitesApi.ts +28 -0
- package/src/apis/PathPartsApi.ts +42 -0
- package/src/apis/SectionsApi.ts +28 -0
- package/src/apis/TagsApi.ts +35 -0
- package/src/apis/TenantsApi.ts +56 -0
- package/src/apis/ThreadMessagesApi.ts +21 -0
- package/src/apis/ThreadsApi.ts +49 -0
- package/src/apis/UserPermissionsApi.ts +28 -0
- package/src/apis/UsersApi.ts +14 -0
- package/src/apis/WorkflowsApi.ts +21 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ApiKeyResponse.ts +110 -0
- package/src/models/CreateApiKeyRequest.ts +87 -0
- package/src/models/CreateApiKeyResponse.ts +119 -0
- package/src/models/index.ts +3 -0
|
@@ -37,6 +37,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (requestParameters['authorization'] != null) {
|
|
41
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
42
|
+
}
|
|
40
43
|
let urlPath = `/v1/documents`;
|
|
41
44
|
return {
|
|
42
45
|
path: urlPath,
|
|
@@ -78,6 +81,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
78
81
|
}
|
|
79
82
|
const queryParameters = {};
|
|
80
83
|
const headerParameters = {};
|
|
84
|
+
if (requestParameters['authorization'] != null) {
|
|
85
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
86
|
+
}
|
|
81
87
|
let urlPath = `/v1/documents/{document_id}`;
|
|
82
88
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
83
89
|
return {
|
|
@@ -121,6 +127,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
121
127
|
queryParameters['with_tags'] = requestParameters['withTags'];
|
|
122
128
|
}
|
|
123
129
|
const headerParameters = {};
|
|
130
|
+
if (requestParameters['authorization'] != null) {
|
|
131
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
132
|
+
}
|
|
124
133
|
let urlPath = `/v1/documents/{document_id}`;
|
|
125
134
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
126
135
|
return {
|
|
@@ -165,6 +174,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
165
174
|
}
|
|
166
175
|
const queryParameters = {};
|
|
167
176
|
const headerParameters = {};
|
|
177
|
+
if (requestParameters['authorization'] != null) {
|
|
178
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
179
|
+
}
|
|
168
180
|
const consumes = [
|
|
169
181
|
{ contentType: 'multipart/form-data' },
|
|
170
182
|
];
|
|
@@ -242,6 +254,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
242
254
|
}
|
|
243
255
|
const queryParameters = {};
|
|
244
256
|
const headerParameters = {};
|
|
257
|
+
if (requestParameters['authorization'] != null) {
|
|
258
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
259
|
+
}
|
|
245
260
|
const consumes = [
|
|
246
261
|
{ contentType: 'multipart/form-data' },
|
|
247
262
|
];
|
|
@@ -323,6 +338,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
323
338
|
queryParameters['offset'] = requestParameters['offset'];
|
|
324
339
|
}
|
|
325
340
|
const headerParameters = {};
|
|
341
|
+
if (requestParameters['authorization'] != null) {
|
|
342
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
343
|
+
}
|
|
326
344
|
let urlPath = `/v1/documents`;
|
|
327
345
|
return {
|
|
328
346
|
path: urlPath,
|
|
@@ -367,6 +385,9 @@ export class DocumentsApi extends runtime.BaseAPI {
|
|
|
367
385
|
const queryParameters = {};
|
|
368
386
|
const headerParameters = {};
|
|
369
387
|
headerParameters['Content-Type'] = 'application/json';
|
|
388
|
+
if (requestParameters['authorization'] != null) {
|
|
389
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
390
|
+
}
|
|
370
391
|
let urlPath = `/v1/documents/{document_id}`;
|
|
371
392
|
urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
372
393
|
return {
|
|
@@ -13,20 +13,24 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { CreateFolderRequest, FolderAction, FolderActionResponse, FolderResponse, PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator, PaginatedResponseFolderResponse, PathOrder, UpdateFolderRequest } from '../models/index';
|
|
14
14
|
export interface CreateFolderOperationRequest {
|
|
15
15
|
createFolderRequest: CreateFolderRequest;
|
|
16
|
+
authorization?: string | null;
|
|
16
17
|
ksUat?: string | null;
|
|
17
18
|
}
|
|
18
19
|
export interface DeleteFolderRequest {
|
|
19
20
|
folderId: string;
|
|
21
|
+
authorization?: string | null;
|
|
20
22
|
ksUat?: string | null;
|
|
21
23
|
}
|
|
22
24
|
export interface FolderActionRequest {
|
|
23
25
|
folderId: string;
|
|
24
26
|
action: FolderAction;
|
|
27
|
+
authorization?: string | null;
|
|
25
28
|
ksUat?: string | null;
|
|
26
29
|
}
|
|
27
30
|
export interface GetFolderRequest {
|
|
28
31
|
folderId: string;
|
|
29
32
|
withTags?: boolean;
|
|
33
|
+
authorization?: string | null;
|
|
30
34
|
ksUat?: string | null;
|
|
31
35
|
}
|
|
32
36
|
export interface ListFolderContentsRequest {
|
|
@@ -37,6 +41,7 @@ export interface ListFolderContentsRequest {
|
|
|
37
41
|
nameLike?: string | null;
|
|
38
42
|
limit?: number;
|
|
39
43
|
offset?: number;
|
|
44
|
+
authorization?: string | null;
|
|
40
45
|
ksUat?: string | null;
|
|
41
46
|
}
|
|
42
47
|
export interface ListFoldersRequest {
|
|
@@ -45,11 +50,13 @@ export interface ListFoldersRequest {
|
|
|
45
50
|
withTags?: boolean;
|
|
46
51
|
limit?: number;
|
|
47
52
|
offset?: number;
|
|
53
|
+
authorization?: string | null;
|
|
48
54
|
ksUat?: string | null;
|
|
49
55
|
}
|
|
50
56
|
export interface UpdateFolderOperationRequest {
|
|
51
57
|
folderId: string;
|
|
52
58
|
updateFolderRequest: UpdateFolderRequest;
|
|
59
|
+
authorization?: string | null;
|
|
53
60
|
ksUat?: string | null;
|
|
54
61
|
}
|
|
55
62
|
/**
|
|
@@ -62,6 +69,7 @@ export interface FoldersApiInterface {
|
|
|
62
69
|
/**
|
|
63
70
|
* Creates request options for createFolder without sending the request
|
|
64
71
|
* @param {CreateFolderRequest} createFolderRequest
|
|
72
|
+
* @param {string} [authorization]
|
|
65
73
|
* @param {string} [ksUat]
|
|
66
74
|
* @throws {RequiredError}
|
|
67
75
|
* @memberof FoldersApiInterface
|
|
@@ -71,6 +79,7 @@ export interface FoldersApiInterface {
|
|
|
71
79
|
* 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.
|
|
72
80
|
* @summary Create Folder Handler
|
|
73
81
|
* @param {CreateFolderRequest} createFolderRequest
|
|
82
|
+
* @param {string} [authorization]
|
|
74
83
|
* @param {string} [ksUat]
|
|
75
84
|
* @param {*} [options] Override http request option.
|
|
76
85
|
* @throws {RequiredError}
|
|
@@ -85,6 +94,7 @@ export interface FoldersApiInterface {
|
|
|
85
94
|
/**
|
|
86
95
|
* Creates request options for deleteFolder without sending the request
|
|
87
96
|
* @param {string} folderId
|
|
97
|
+
* @param {string} [authorization]
|
|
88
98
|
* @param {string} [ksUat]
|
|
89
99
|
* @throws {RequiredError}
|
|
90
100
|
* @memberof FoldersApiInterface
|
|
@@ -94,6 +104,7 @@ export interface FoldersApiInterface {
|
|
|
94
104
|
* 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.
|
|
95
105
|
* @summary Delete Folder Handler
|
|
96
106
|
* @param {string} folderId
|
|
107
|
+
* @param {string} [authorization]
|
|
97
108
|
* @param {string} [ksUat]
|
|
98
109
|
* @param {*} [options] Override http request option.
|
|
99
110
|
* @throws {RequiredError}
|
|
@@ -109,6 +120,7 @@ export interface FoldersApiInterface {
|
|
|
109
120
|
* Creates request options for folderAction without sending the request
|
|
110
121
|
* @param {string} folderId
|
|
111
122
|
* @param {FolderAction} action Action to perform
|
|
123
|
+
* @param {string} [authorization]
|
|
112
124
|
* @param {string} [ksUat]
|
|
113
125
|
* @throws {RequiredError}
|
|
114
126
|
* @memberof FoldersApiInterface
|
|
@@ -119,6 +131,7 @@ export interface FoldersApiInterface {
|
|
|
119
131
|
* @summary Folder Action Handler
|
|
120
132
|
* @param {string} folderId
|
|
121
133
|
* @param {FolderAction} action Action to perform
|
|
134
|
+
* @param {string} [authorization]
|
|
122
135
|
* @param {string} [ksUat]
|
|
123
136
|
* @param {*} [options] Override http request option.
|
|
124
137
|
* @throws {RequiredError}
|
|
@@ -134,6 +147,7 @@ export interface FoldersApiInterface {
|
|
|
134
147
|
* Creates request options for getFolder without sending the request
|
|
135
148
|
* @param {string} folderId
|
|
136
149
|
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
150
|
+
* @param {string} [authorization]
|
|
137
151
|
* @param {string} [ksUat]
|
|
138
152
|
* @throws {RequiredError}
|
|
139
153
|
* @memberof FoldersApiInterface
|
|
@@ -144,6 +158,7 @@ export interface FoldersApiInterface {
|
|
|
144
158
|
* @summary Get Folder Handler
|
|
145
159
|
* @param {string} folderId
|
|
146
160
|
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
161
|
+
* @param {string} [authorization]
|
|
147
162
|
* @param {string} [ksUat]
|
|
148
163
|
* @param {*} [options] Override http request option.
|
|
149
164
|
* @throws {RequiredError}
|
|
@@ -164,6 +179,7 @@ export interface FoldersApiInterface {
|
|
|
164
179
|
* @param {string} [nameLike] Case-insensitive partial name search filter
|
|
165
180
|
* @param {number} [limit] Number of items per page
|
|
166
181
|
* @param {number} [offset] Number of items to skip
|
|
182
|
+
* @param {string} [authorization]
|
|
167
183
|
* @param {string} [ksUat]
|
|
168
184
|
* @throws {RequiredError}
|
|
169
185
|
* @memberof FoldersApiInterface
|
|
@@ -179,6 +195,7 @@ export interface FoldersApiInterface {
|
|
|
179
195
|
* @param {string} [nameLike] Case-insensitive partial name search filter
|
|
180
196
|
* @param {number} [limit] Number of items per page
|
|
181
197
|
* @param {number} [offset] Number of items to skip
|
|
198
|
+
* @param {string} [authorization]
|
|
182
199
|
* @param {string} [ksUat]
|
|
183
200
|
* @param {*} [options] Override http request option.
|
|
184
201
|
* @throws {RequiredError}
|
|
@@ -197,6 +214,7 @@ export interface FoldersApiInterface {
|
|
|
197
214
|
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
198
215
|
* @param {number} [limit] Number of items per page
|
|
199
216
|
* @param {number} [offset] Number of items to skip
|
|
217
|
+
* @param {string} [authorization]
|
|
200
218
|
* @param {string} [ksUat]
|
|
201
219
|
* @throws {RequiredError}
|
|
202
220
|
* @memberof FoldersApiInterface
|
|
@@ -210,6 +228,7 @@ export interface FoldersApiInterface {
|
|
|
210
228
|
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
211
229
|
* @param {number} [limit] Number of items per page
|
|
212
230
|
* @param {number} [offset] Number of items to skip
|
|
231
|
+
* @param {string} [authorization]
|
|
213
232
|
* @param {string} [ksUat]
|
|
214
233
|
* @param {*} [options] Override http request option.
|
|
215
234
|
* @throws {RequiredError}
|
|
@@ -225,6 +244,7 @@ export interface FoldersApiInterface {
|
|
|
225
244
|
* Creates request options for updateFolder without sending the request
|
|
226
245
|
* @param {string} folderId
|
|
227
246
|
* @param {UpdateFolderRequest} updateFolderRequest
|
|
247
|
+
* @param {string} [authorization]
|
|
228
248
|
* @param {string} [ksUat]
|
|
229
249
|
* @throws {RequiredError}
|
|
230
250
|
* @memberof FoldersApiInterface
|
|
@@ -235,6 +255,7 @@ export interface FoldersApiInterface {
|
|
|
235
255
|
* @summary Update Folder Handler
|
|
236
256
|
* @param {string} folderId
|
|
237
257
|
* @param {UpdateFolderRequest} updateFolderRequest
|
|
258
|
+
* @param {string} [authorization]
|
|
238
259
|
* @param {string} [ksUat]
|
|
239
260
|
* @param {*} [options] Override http request option.
|
|
240
261
|
* @throws {RequiredError}
|
|
@@ -37,6 +37,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (requestParameters['authorization'] != null) {
|
|
41
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
42
|
+
}
|
|
40
43
|
let urlPath = `/v1/folders`;
|
|
41
44
|
return {
|
|
42
45
|
path: urlPath,
|
|
@@ -78,6 +81,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
78
81
|
}
|
|
79
82
|
const queryParameters = {};
|
|
80
83
|
const headerParameters = {};
|
|
84
|
+
if (requestParameters['authorization'] != null) {
|
|
85
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
86
|
+
}
|
|
81
87
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
82
88
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
83
89
|
return {
|
|
@@ -124,6 +130,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
124
130
|
queryParameters['action'] = requestParameters['action'];
|
|
125
131
|
}
|
|
126
132
|
const headerParameters = {};
|
|
133
|
+
if (requestParameters['authorization'] != null) {
|
|
134
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
135
|
+
}
|
|
127
136
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
128
137
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
129
138
|
return {
|
|
@@ -168,6 +177,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
168
177
|
queryParameters['with_tags'] = requestParameters['withTags'];
|
|
169
178
|
}
|
|
170
179
|
const headerParameters = {};
|
|
180
|
+
if (requestParameters['authorization'] != null) {
|
|
181
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
182
|
+
}
|
|
171
183
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
172
184
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
173
185
|
return {
|
|
@@ -227,6 +239,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
227
239
|
queryParameters['offset'] = requestParameters['offset'];
|
|
228
240
|
}
|
|
229
241
|
const headerParameters = {};
|
|
242
|
+
if (requestParameters['authorization'] != null) {
|
|
243
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
244
|
+
}
|
|
230
245
|
let urlPath = `/v1/folders/{folder_id}/contents`;
|
|
231
246
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
232
247
|
return {
|
|
@@ -280,6 +295,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
280
295
|
queryParameters['offset'] = requestParameters['offset'];
|
|
281
296
|
}
|
|
282
297
|
const headerParameters = {};
|
|
298
|
+
if (requestParameters['authorization'] != null) {
|
|
299
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
300
|
+
}
|
|
283
301
|
let urlPath = `/v1/folders`;
|
|
284
302
|
return {
|
|
285
303
|
path: urlPath,
|
|
@@ -324,6 +342,9 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
324
342
|
const queryParameters = {};
|
|
325
343
|
const headerParameters = {};
|
|
326
344
|
headerParameters['Content-Type'] = 'application/json';
|
|
345
|
+
if (requestParameters['authorization'] != null) {
|
|
346
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
347
|
+
}
|
|
327
348
|
let urlPath = `/v1/folders/{folder_id}`;
|
|
328
349
|
urlPath = urlPath.replace(`{${"folder_id"}}`, encodeURIComponent(String(requestParameters['folderId'])));
|
|
329
350
|
return {
|
|
@@ -13,14 +13,17 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { AcceptInviteResponse, InviteResponse, InviteStatus, InviteUserRequest, PaginatedResponseInviteResponse } from '../models/index';
|
|
14
14
|
export interface AcceptInviteRequest {
|
|
15
15
|
inviteId: string;
|
|
16
|
+
authorization?: string | null;
|
|
16
17
|
ksUat?: string | null;
|
|
17
18
|
}
|
|
18
19
|
export interface CreateInviteRequest {
|
|
19
20
|
inviteUserRequest: InviteUserRequest;
|
|
21
|
+
authorization?: string | null;
|
|
20
22
|
ksUat?: string | null;
|
|
21
23
|
}
|
|
22
24
|
export interface DeleteInviteRequest {
|
|
23
25
|
inviteId: string;
|
|
26
|
+
authorization?: string | null;
|
|
24
27
|
ksUat?: string | null;
|
|
25
28
|
}
|
|
26
29
|
export interface ListInvitesRequest {
|
|
@@ -28,6 +31,7 @@ export interface ListInvitesRequest {
|
|
|
28
31
|
status?: InviteStatus;
|
|
29
32
|
limit?: number;
|
|
30
33
|
offset?: number;
|
|
34
|
+
authorization?: string | null;
|
|
31
35
|
ksUat?: string | null;
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
@@ -40,6 +44,7 @@ export interface InvitesApiInterface {
|
|
|
40
44
|
/**
|
|
41
45
|
* Creates request options for acceptInvite without sending the request
|
|
42
46
|
* @param {string} inviteId
|
|
47
|
+
* @param {string} [authorization]
|
|
43
48
|
* @param {string} [ksUat]
|
|
44
49
|
* @throws {RequiredError}
|
|
45
50
|
* @memberof InvitesApiInterface
|
|
@@ -49,6 +54,7 @@ export interface InvitesApiInterface {
|
|
|
49
54
|
* Update an invite to accepted status and create tenant user.
|
|
50
55
|
* @summary Accept Invite
|
|
51
56
|
* @param {string} inviteId
|
|
57
|
+
* @param {string} [authorization]
|
|
52
58
|
* @param {string} [ksUat]
|
|
53
59
|
* @param {*} [options] Override http request option.
|
|
54
60
|
* @throws {RequiredError}
|
|
@@ -63,6 +69,7 @@ export interface InvitesApiInterface {
|
|
|
63
69
|
/**
|
|
64
70
|
* Creates request options for createInvite without sending the request
|
|
65
71
|
* @param {InviteUserRequest} inviteUserRequest
|
|
72
|
+
* @param {string} [authorization]
|
|
66
73
|
* @param {string} [ksUat]
|
|
67
74
|
* @throws {RequiredError}
|
|
68
75
|
* @memberof InvitesApiInterface
|
|
@@ -72,6 +79,7 @@ export interface InvitesApiInterface {
|
|
|
72
79
|
* 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.
|
|
73
80
|
* @summary Create Invite
|
|
74
81
|
* @param {InviteUserRequest} inviteUserRequest
|
|
82
|
+
* @param {string} [authorization]
|
|
75
83
|
* @param {string} [ksUat]
|
|
76
84
|
* @param {*} [options] Override http request option.
|
|
77
85
|
* @throws {RequiredError}
|
|
@@ -86,6 +94,7 @@ export interface InvitesApiInterface {
|
|
|
86
94
|
/**
|
|
87
95
|
* Creates request options for deleteInvite without sending the request
|
|
88
96
|
* @param {string} inviteId
|
|
97
|
+
* @param {string} [authorization]
|
|
89
98
|
* @param {string} [ksUat]
|
|
90
99
|
* @throws {RequiredError}
|
|
91
100
|
* @memberof InvitesApiInterface
|
|
@@ -95,6 +104,7 @@ export interface InvitesApiInterface {
|
|
|
95
104
|
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
96
105
|
* @summary Delete Invite
|
|
97
106
|
* @param {string} inviteId
|
|
107
|
+
* @param {string} [authorization]
|
|
98
108
|
* @param {string} [ksUat]
|
|
99
109
|
* @param {*} [options] Override http request option.
|
|
100
110
|
* @throws {RequiredError}
|
|
@@ -112,6 +122,7 @@ export interface InvitesApiInterface {
|
|
|
112
122
|
* @param {InviteStatus} [status] Filter by invite status (pending, accepted, expired)
|
|
113
123
|
* @param {number} [limit] Number of items per page
|
|
114
124
|
* @param {number} [offset] Number of items to skip
|
|
125
|
+
* @param {string} [authorization]
|
|
115
126
|
* @param {string} [ksUat]
|
|
116
127
|
* @throws {RequiredError}
|
|
117
128
|
* @memberof InvitesApiInterface
|
|
@@ -124,6 +135,7 @@ export interface InvitesApiInterface {
|
|
|
124
135
|
* @param {InviteStatus} [status] Filter by invite status (pending, accepted, expired)
|
|
125
136
|
* @param {number} [limit] Number of items per page
|
|
126
137
|
* @param {number} [offset] Number of items to skip
|
|
138
|
+
* @param {string} [authorization]
|
|
127
139
|
* @param {string} [ksUat]
|
|
128
140
|
* @param {*} [options] Override http request option.
|
|
129
141
|
* @throws {RequiredError}
|
|
@@ -36,6 +36,9 @@ export class InvitesApi extends runtime.BaseAPI {
|
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
|
+
if (requestParameters['authorization'] != null) {
|
|
40
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
41
|
+
}
|
|
39
42
|
let urlPath = `/v1/invites/{invite_id}/accept`;
|
|
40
43
|
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
41
44
|
return {
|
|
@@ -78,6 +81,9 @@ export class InvitesApi extends runtime.BaseAPI {
|
|
|
78
81
|
const queryParameters = {};
|
|
79
82
|
const headerParameters = {};
|
|
80
83
|
headerParameters['Content-Type'] = 'application/json';
|
|
84
|
+
if (requestParameters['authorization'] != null) {
|
|
85
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
86
|
+
}
|
|
81
87
|
let urlPath = `/v1/invites`;
|
|
82
88
|
return {
|
|
83
89
|
path: urlPath,
|
|
@@ -119,6 +125,9 @@ export class InvitesApi extends runtime.BaseAPI {
|
|
|
119
125
|
}
|
|
120
126
|
const queryParameters = {};
|
|
121
127
|
const headerParameters = {};
|
|
128
|
+
if (requestParameters['authorization'] != null) {
|
|
129
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
130
|
+
}
|
|
122
131
|
let urlPath = `/v1/invites/{invite_id}`;
|
|
123
132
|
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
124
133
|
return {
|
|
@@ -168,6 +177,9 @@ export class InvitesApi extends runtime.BaseAPI {
|
|
|
168
177
|
queryParameters['offset'] = requestParameters['offset'];
|
|
169
178
|
}
|
|
170
179
|
const headerParameters = {};
|
|
180
|
+
if (requestParameters['authorization'] != null) {
|
|
181
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
182
|
+
}
|
|
171
183
|
let urlPath = `/v1/invites`;
|
|
172
184
|
return {
|
|
173
185
|
path: urlPath,
|
|
@@ -14,24 +14,29 @@ import type { BulkTagRequest, PaginatedResponsePathPartResponse, PathOrder, Path
|
|
|
14
14
|
export interface BulkAddPathPartTagsRequest {
|
|
15
15
|
pathPartId: string;
|
|
16
16
|
bulkTagRequest: BulkTagRequest;
|
|
17
|
+
authorization?: string | null;
|
|
17
18
|
ksUat?: string | null;
|
|
18
19
|
}
|
|
19
20
|
export interface BulkRemovePathPartTagsRequest {
|
|
20
21
|
pathPartId: string;
|
|
21
22
|
bulkTagRequest: BulkTagRequest;
|
|
23
|
+
authorization?: string | null;
|
|
22
24
|
ksUat?: string | null;
|
|
23
25
|
}
|
|
24
26
|
export interface GetPathPartRequest {
|
|
25
27
|
pathPartId: string;
|
|
28
|
+
authorization?: string | null;
|
|
26
29
|
ksUat?: string | null;
|
|
27
30
|
}
|
|
28
31
|
export interface GetPathPartSubtreeChunksRequest {
|
|
29
32
|
pathPartId: string;
|
|
33
|
+
authorization?: string | null;
|
|
30
34
|
ksUat?: string | null;
|
|
31
35
|
}
|
|
32
36
|
export interface GetPathPartTagsRequest {
|
|
33
37
|
pathPartId: string;
|
|
34
38
|
includeInherited?: boolean;
|
|
39
|
+
authorization?: string | null;
|
|
35
40
|
ksUat?: string | null;
|
|
36
41
|
}
|
|
37
42
|
export interface ListPathPartsRequest {
|
|
@@ -40,6 +45,7 @@ export interface ListPathPartsRequest {
|
|
|
40
45
|
sortOrder?: PathOrder;
|
|
41
46
|
limit?: number;
|
|
42
47
|
offset?: number;
|
|
48
|
+
authorization?: string | null;
|
|
43
49
|
ksUat?: string | null;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
@@ -53,6 +59,7 @@ export interface PathPartsApiInterface {
|
|
|
53
59
|
* Creates request options for bulkAddPathPartTags without sending the request
|
|
54
60
|
* @param {string} pathPartId
|
|
55
61
|
* @param {BulkTagRequest} bulkTagRequest
|
|
62
|
+
* @param {string} [authorization]
|
|
56
63
|
* @param {string} [ksUat]
|
|
57
64
|
* @throws {RequiredError}
|
|
58
65
|
* @memberof PathPartsApiInterface
|
|
@@ -63,6 +70,7 @@ export interface PathPartsApiInterface {
|
|
|
63
70
|
* @summary Bulk Add Path Part Tags Handler
|
|
64
71
|
* @param {string} pathPartId
|
|
65
72
|
* @param {BulkTagRequest} bulkTagRequest
|
|
73
|
+
* @param {string} [authorization]
|
|
66
74
|
* @param {string} [ksUat]
|
|
67
75
|
* @param {*} [options] Override http request option.
|
|
68
76
|
* @throws {RequiredError}
|
|
@@ -78,6 +86,7 @@ export interface PathPartsApiInterface {
|
|
|
78
86
|
* Creates request options for bulkRemovePathPartTags without sending the request
|
|
79
87
|
* @param {string} pathPartId
|
|
80
88
|
* @param {BulkTagRequest} bulkTagRequest
|
|
89
|
+
* @param {string} [authorization]
|
|
81
90
|
* @param {string} [ksUat]
|
|
82
91
|
* @throws {RequiredError}
|
|
83
92
|
* @memberof PathPartsApiInterface
|
|
@@ -88,6 +97,7 @@ export interface PathPartsApiInterface {
|
|
|
88
97
|
* @summary Bulk Remove Path Part Tags Handler
|
|
89
98
|
* @param {string} pathPartId
|
|
90
99
|
* @param {BulkTagRequest} bulkTagRequest
|
|
100
|
+
* @param {string} [authorization]
|
|
91
101
|
* @param {string} [ksUat]
|
|
92
102
|
* @param {*} [options] Override http request option.
|
|
93
103
|
* @throws {RequiredError}
|
|
@@ -102,6 +112,7 @@ export interface PathPartsApiInterface {
|
|
|
102
112
|
/**
|
|
103
113
|
* Creates request options for getPathPart without sending the request
|
|
104
114
|
* @param {string} pathPartId
|
|
115
|
+
* @param {string} [authorization]
|
|
105
116
|
* @param {string} [ksUat]
|
|
106
117
|
* @throws {RequiredError}
|
|
107
118
|
* @memberof PathPartsApiInterface
|
|
@@ -111,6 +122,7 @@ export interface PathPartsApiInterface {
|
|
|
111
122
|
* Get a path part by its ID. Returns the path part with its attached tag IDs.
|
|
112
123
|
* @summary Get Path Part Handler
|
|
113
124
|
* @param {string} pathPartId
|
|
125
|
+
* @param {string} [authorization]
|
|
114
126
|
* @param {string} [ksUat]
|
|
115
127
|
* @param {*} [options] Override http request option.
|
|
116
128
|
* @throws {RequiredError}
|
|
@@ -125,6 +137,7 @@ export interface PathPartsApiInterface {
|
|
|
125
137
|
/**
|
|
126
138
|
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
127
139
|
* @param {string} pathPartId
|
|
140
|
+
* @param {string} [authorization]
|
|
128
141
|
* @param {string} [ksUat]
|
|
129
142
|
* @throws {RequiredError}
|
|
130
143
|
* @memberof PathPartsApiInterface
|
|
@@ -134,6 +147,7 @@ export interface PathPartsApiInterface {
|
|
|
134
147
|
* Resolve all descendant chunks for a subtree root. Returns chunks grouped by identical (path_part_ids, tag_ids) tuples.
|
|
135
148
|
* @summary Get Path Part Subtree Chunks Handler
|
|
136
149
|
* @param {string} pathPartId
|
|
150
|
+
* @param {string} [authorization]
|
|
137
151
|
* @param {string} [ksUat]
|
|
138
152
|
* @param {*} [options] Override http request option.
|
|
139
153
|
* @throws {RequiredError}
|
|
@@ -149,6 +163,7 @@ export interface PathPartsApiInterface {
|
|
|
149
163
|
* Creates request options for getPathPartTags without sending the request
|
|
150
164
|
* @param {string} pathPartId
|
|
151
165
|
* @param {boolean} [includeInherited] Include tags inherited from ancestor path parts
|
|
166
|
+
* @param {string} [authorization]
|
|
152
167
|
* @param {string} [ksUat]
|
|
153
168
|
* @throws {RequiredError}
|
|
154
169
|
* @memberof PathPartsApiInterface
|
|
@@ -159,6 +174,7 @@ export interface PathPartsApiInterface {
|
|
|
159
174
|
* @summary Get Path Part Tags Handler
|
|
160
175
|
* @param {string} pathPartId
|
|
161
176
|
* @param {boolean} [includeInherited] Include tags inherited from ancestor path parts
|
|
177
|
+
* @param {string} [authorization]
|
|
162
178
|
* @param {string} [ksUat]
|
|
163
179
|
* @param {*} [options] Override http request option.
|
|
164
180
|
* @throws {RequiredError}
|
|
@@ -177,6 +193,7 @@ export interface PathPartsApiInterface {
|
|
|
177
193
|
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
178
194
|
* @param {number} [limit] Number of items per page
|
|
179
195
|
* @param {number} [offset] Number of items to skip
|
|
196
|
+
* @param {string} [authorization]
|
|
180
197
|
* @param {string} [ksUat]
|
|
181
198
|
* @throws {RequiredError}
|
|
182
199
|
* @memberof PathPartsApiInterface
|
|
@@ -190,6 +207,7 @@ export interface PathPartsApiInterface {
|
|
|
190
207
|
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
191
208
|
* @param {number} [limit] Number of items per page
|
|
192
209
|
* @param {number} [offset] Number of items to skip
|
|
210
|
+
* @param {string} [authorization]
|
|
193
211
|
* @param {string} [ksUat]
|
|
194
212
|
* @param {*} [options] Override http request option.
|
|
195
213
|
* @throws {RequiredError}
|
|
@@ -40,6 +40,9 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
if (requestParameters['authorization'] != null) {
|
|
44
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
45
|
+
}
|
|
43
46
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
44
47
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
45
48
|
return {
|
|
@@ -86,6 +89,9 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
86
89
|
const queryParameters = {};
|
|
87
90
|
const headerParameters = {};
|
|
88
91
|
headerParameters['Content-Type'] = 'application/json';
|
|
92
|
+
if (requestParameters['authorization'] != null) {
|
|
93
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
94
|
+
}
|
|
89
95
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
90
96
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
91
97
|
return {
|
|
@@ -128,6 +134,9 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
128
134
|
}
|
|
129
135
|
const queryParameters = {};
|
|
130
136
|
const headerParameters = {};
|
|
137
|
+
if (requestParameters['authorization'] != null) {
|
|
138
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
139
|
+
}
|
|
131
140
|
let urlPath = `/v1/path-parts/{path_part_id}`;
|
|
132
141
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
133
142
|
return {
|
|
@@ -169,6 +178,9 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
169
178
|
}
|
|
170
179
|
const queryParameters = {};
|
|
171
180
|
const headerParameters = {};
|
|
181
|
+
if (requestParameters['authorization'] != null) {
|
|
182
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
183
|
+
}
|
|
172
184
|
let urlPath = `/v1/path-parts/{path_part_id}/subtree_chunks`;
|
|
173
185
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
174
186
|
return {
|
|
@@ -213,6 +225,9 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
213
225
|
queryParameters['include_inherited'] = requestParameters['includeInherited'];
|
|
214
226
|
}
|
|
215
227
|
const headerParameters = {};
|
|
228
|
+
if (requestParameters['authorization'] != null) {
|
|
229
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
230
|
+
}
|
|
216
231
|
let urlPath = `/v1/path-parts/{path_part_id}/tags`;
|
|
217
232
|
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
218
233
|
return {
|
|
@@ -266,6 +281,9 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
266
281
|
queryParameters['offset'] = requestParameters['offset'];
|
|
267
282
|
}
|
|
268
283
|
const headerParameters = {};
|
|
284
|
+
if (requestParameters['authorization'] != null) {
|
|
285
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
286
|
+
}
|
|
269
287
|
let urlPath = `/v1/path-parts`;
|
|
270
288
|
return {
|
|
271
289
|
path: urlPath,
|