@knowledge-stack/ksapi 1.40.1 → 1.42.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.
Files changed (133) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +18 -9
  3. package/dist/apis/ApiKeysApi.d.ts +187 -0
  4. package/dist/apis/ApiKeysApi.js +193 -0
  5. package/dist/apis/AuthApi.d.ts +6 -0
  6. package/dist/apis/AuthApi.js +6 -0
  7. package/dist/apis/ChunkLineagesApi.d.ts +9 -0
  8. package/dist/apis/ChunkLineagesApi.js +9 -0
  9. package/dist/apis/ChunksApi.d.ts +24 -0
  10. package/dist/apis/ChunksApi.js +24 -0
  11. package/dist/apis/DocumentVersionsApi.d.ts +21 -0
  12. package/dist/apis/DocumentVersionsApi.js +21 -0
  13. package/dist/apis/DocumentsApi.d.ts +21 -0
  14. package/dist/apis/DocumentsApi.js +21 -0
  15. package/dist/apis/FoldersApi.d.ts +21 -0
  16. package/dist/apis/FoldersApi.js +21 -0
  17. package/dist/apis/InvitesApi.d.ts +12 -0
  18. package/dist/apis/InvitesApi.js +12 -0
  19. package/dist/apis/PathPartsApi.d.ts +18 -0
  20. package/dist/apis/PathPartsApi.js +18 -0
  21. package/dist/apis/SectionsApi.d.ts +12 -0
  22. package/dist/apis/SectionsApi.js +12 -0
  23. package/dist/apis/TagsApi.d.ts +15 -0
  24. package/dist/apis/TagsApi.js +15 -0
  25. package/dist/apis/TenantsApi.d.ts +24 -0
  26. package/dist/apis/TenantsApi.js +24 -0
  27. package/dist/apis/ThreadMessagesApi.d.ts +9 -0
  28. package/dist/apis/ThreadMessagesApi.js +9 -0
  29. package/dist/apis/ThreadsApi.d.ts +21 -0
  30. package/dist/apis/ThreadsApi.js +21 -0
  31. package/dist/apis/UserPermissionsApi.d.ts +12 -0
  32. package/dist/apis/UserPermissionsApi.js +12 -0
  33. package/dist/apis/UsersApi.d.ts +6 -0
  34. package/dist/apis/UsersApi.js +6 -0
  35. package/dist/apis/WorkflowsApi.d.ts +9 -0
  36. package/dist/apis/WorkflowsApi.js +9 -0
  37. package/dist/apis/index.d.ts +1 -0
  38. package/dist/apis/index.js +1 -0
  39. package/dist/esm/apis/ApiKeysApi.d.ts +187 -0
  40. package/dist/esm/apis/ApiKeysApi.js +189 -0
  41. package/dist/esm/apis/AuthApi.d.ts +6 -0
  42. package/dist/esm/apis/AuthApi.js +6 -0
  43. package/dist/esm/apis/ChunkLineagesApi.d.ts +9 -0
  44. package/dist/esm/apis/ChunkLineagesApi.js +9 -0
  45. package/dist/esm/apis/ChunksApi.d.ts +24 -0
  46. package/dist/esm/apis/ChunksApi.js +24 -0
  47. package/dist/esm/apis/DocumentVersionsApi.d.ts +21 -0
  48. package/dist/esm/apis/DocumentVersionsApi.js +21 -0
  49. package/dist/esm/apis/DocumentsApi.d.ts +21 -0
  50. package/dist/esm/apis/DocumentsApi.js +21 -0
  51. package/dist/esm/apis/FoldersApi.d.ts +21 -0
  52. package/dist/esm/apis/FoldersApi.js +21 -0
  53. package/dist/esm/apis/InvitesApi.d.ts +12 -0
  54. package/dist/esm/apis/InvitesApi.js +12 -0
  55. package/dist/esm/apis/PathPartsApi.d.ts +18 -0
  56. package/dist/esm/apis/PathPartsApi.js +18 -0
  57. package/dist/esm/apis/SectionsApi.d.ts +12 -0
  58. package/dist/esm/apis/SectionsApi.js +12 -0
  59. package/dist/esm/apis/TagsApi.d.ts +15 -0
  60. package/dist/esm/apis/TagsApi.js +15 -0
  61. package/dist/esm/apis/TenantsApi.d.ts +24 -0
  62. package/dist/esm/apis/TenantsApi.js +24 -0
  63. package/dist/esm/apis/ThreadMessagesApi.d.ts +9 -0
  64. package/dist/esm/apis/ThreadMessagesApi.js +9 -0
  65. package/dist/esm/apis/ThreadsApi.d.ts +21 -0
  66. package/dist/esm/apis/ThreadsApi.js +21 -0
  67. package/dist/esm/apis/UserPermissionsApi.d.ts +12 -0
  68. package/dist/esm/apis/UserPermissionsApi.js +12 -0
  69. package/dist/esm/apis/UsersApi.d.ts +6 -0
  70. package/dist/esm/apis/UsersApi.js +6 -0
  71. package/dist/esm/apis/WorkflowsApi.d.ts +9 -0
  72. package/dist/esm/apis/WorkflowsApi.js +9 -0
  73. package/dist/esm/apis/index.d.ts +1 -0
  74. package/dist/esm/apis/index.js +1 -0
  75. package/dist/esm/models/ApiKeyResponse.d.ts +65 -0
  76. package/dist/esm/models/ApiKeyResponse.js +56 -0
  77. package/dist/esm/models/CreateApiKeyRequest.d.ts +47 -0
  78. package/dist/esm/models/CreateApiKeyRequest.js +49 -0
  79. package/dist/esm/models/CreateApiKeyResponse.d.ts +71 -0
  80. package/dist/esm/models/CreateApiKeyResponse.js +60 -0
  81. package/dist/esm/models/index.d.ts +3 -0
  82. package/dist/esm/models/index.js +3 -0
  83. package/dist/models/ApiKeyResponse.d.ts +65 -0
  84. package/dist/models/ApiKeyResponse.js +64 -0
  85. package/dist/models/CreateApiKeyRequest.d.ts +47 -0
  86. package/dist/models/CreateApiKeyRequest.js +57 -0
  87. package/dist/models/CreateApiKeyResponse.d.ts +71 -0
  88. package/dist/models/CreateApiKeyResponse.js +68 -0
  89. package/dist/models/index.d.ts +3 -0
  90. package/dist/models/index.js +3 -0
  91. package/docs/ApiKeyResponse.md +41 -0
  92. package/docs/ApiKeysApi.md +293 -0
  93. package/docs/AuthApi.md +8 -2
  94. package/docs/ChunkLineagesApi.md +12 -3
  95. package/docs/ChunksApi.md +32 -8
  96. package/docs/CreateApiKeyRequest.md +35 -0
  97. package/docs/CreateApiKeyResponse.md +43 -0
  98. package/docs/DocumentVersionsApi.md +28 -7
  99. package/docs/DocumentsApi.md +28 -7
  100. package/docs/FoldersApi.md +28 -7
  101. package/docs/InvitesApi.md +16 -4
  102. package/docs/PathPartsApi.md +24 -6
  103. package/docs/SectionsApi.md +16 -4
  104. package/docs/TagsApi.md +20 -5
  105. package/docs/TenantsApi.md +32 -8
  106. package/docs/ThreadMessagesApi.md +12 -3
  107. package/docs/ThreadsApi.md +28 -7
  108. package/docs/UserPermissionsApi.md +16 -4
  109. package/docs/UsersApi.md +8 -2
  110. package/docs/WorkflowsApi.md +12 -3
  111. package/package.json +1 -1
  112. package/src/apis/ApiKeysApi.ts +350 -0
  113. package/src/apis/AuthApi.ts +14 -0
  114. package/src/apis/ChunkLineagesApi.ts +21 -0
  115. package/src/apis/ChunksApi.ts +56 -0
  116. package/src/apis/DocumentVersionsApi.ts +49 -0
  117. package/src/apis/DocumentsApi.ts +49 -0
  118. package/src/apis/FoldersApi.ts +49 -0
  119. package/src/apis/InvitesApi.ts +28 -0
  120. package/src/apis/PathPartsApi.ts +42 -0
  121. package/src/apis/SectionsApi.ts +28 -0
  122. package/src/apis/TagsApi.ts +35 -0
  123. package/src/apis/TenantsApi.ts +56 -0
  124. package/src/apis/ThreadMessagesApi.ts +21 -0
  125. package/src/apis/ThreadsApi.ts +49 -0
  126. package/src/apis/UserPermissionsApi.ts +28 -0
  127. package/src/apis/UsersApi.ts +14 -0
  128. package/src/apis/WorkflowsApi.ts +21 -0
  129. package/src/apis/index.ts +1 -0
  130. package/src/models/ApiKeyResponse.ts +110 -0
  131. package/src/models/CreateApiKeyRequest.ts +87 -0
  132. package/src/models/CreateApiKeyResponse.ts +119 -0
  133. package/src/models/index.ts +3 -0
@@ -48,44 +48,52 @@ import {
48
48
 
49
49
  export interface CreateChunkOperationRequest {
50
50
  createChunkRequest: CreateChunkRequest;
51
+ authorization?: string | null;
51
52
  ksUat?: string | null;
52
53
  }
53
54
 
54
55
  export interface DeleteChunkRequest {
55
56
  chunkId: string;
57
+ authorization?: string | null;
56
58
  ksUat?: string | null;
57
59
  }
58
60
 
59
61
  export interface GetChunkRequest {
60
62
  chunkId: string;
61
63
  withDocument?: boolean;
64
+ authorization?: string | null;
62
65
  ksUat?: string | null;
63
66
  }
64
67
 
65
68
  export interface GetChunksBulkRequest {
66
69
  chunkIds?: Array<string> | null;
70
+ authorization?: string | null;
67
71
  ksUat?: string | null;
68
72
  }
69
73
 
70
74
  export interface GetVersionChunkIdsRequest {
71
75
  documentVersionId: string;
76
+ authorization?: string | null;
72
77
  ksUat?: string | null;
73
78
  }
74
79
 
75
80
  export interface SearchChunksRequest {
76
81
  chunkSearchRequest: ChunkSearchRequest;
82
+ authorization?: string | null;
77
83
  ksUat?: string | null;
78
84
  }
79
85
 
80
86
  export interface UpdateChunkContentOperationRequest {
81
87
  chunkId: string;
82
88
  updateChunkContentRequest: UpdateChunkContentRequest;
89
+ authorization?: string | null;
83
90
  ksUat?: string | null;
84
91
  }
85
92
 
86
93
  export interface UpdateChunkMetadataOperationRequest {
87
94
  chunkId: string;
88
95
  updateChunkMetadataRequest: UpdateChunkMetadataRequest;
96
+ authorization?: string | null;
89
97
  ksUat?: string | null;
90
98
  }
91
99
 
@@ -99,6 +107,7 @@ export interface ChunksApiInterface {
99
107
  /**
100
108
  * Creates request options for createChunk without sending the request
101
109
  * @param {CreateChunkRequest} createChunkRequest
110
+ * @param {string} [authorization]
102
111
  * @param {string} [ksUat]
103
112
  * @throws {RequiredError}
104
113
  * @memberof ChunksApiInterface
@@ -109,6 +118,7 @@ export interface ChunksApiInterface {
109
118
  * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
110
119
  * @summary Create Chunk Handler
111
120
  * @param {CreateChunkRequest} createChunkRequest
121
+ * @param {string} [authorization]
112
122
  * @param {string} [ksUat]
113
123
  * @param {*} [options] Override http request option.
114
124
  * @throws {RequiredError}
@@ -125,6 +135,7 @@ export interface ChunksApiInterface {
125
135
  /**
126
136
  * Creates request options for deleteChunk without sending the request
127
137
  * @param {string} chunkId
138
+ * @param {string} [authorization]
128
139
  * @param {string} [ksUat]
129
140
  * @throws {RequiredError}
130
141
  * @memberof ChunksApiInterface
@@ -135,6 +146,7 @@ export interface ChunksApiInterface {
135
146
  * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
136
147
  * @summary Delete Chunk Handler
137
148
  * @param {string} chunkId
149
+ * @param {string} [authorization]
138
150
  * @param {string} [ksUat]
139
151
  * @param {*} [options] Override http request option.
140
152
  * @throws {RequiredError}
@@ -152,6 +164,7 @@ export interface ChunksApiInterface {
152
164
  * Creates request options for getChunk without sending the request
153
165
  * @param {string} chunkId
154
166
  * @param {boolean} [withDocument] Include ancestor document_id and document_version_id (default: false)
167
+ * @param {string} [authorization]
155
168
  * @param {string} [ksUat]
156
169
  * @throws {RequiredError}
157
170
  * @memberof ChunksApiInterface
@@ -163,6 +176,7 @@ export interface ChunksApiInterface {
163
176
  * @summary Get Chunk Handler
164
177
  * @param {string} chunkId
165
178
  * @param {boolean} [withDocument] Include ancestor document_id and document_version_id (default: false)
179
+ * @param {string} [authorization]
166
180
  * @param {string} [ksUat]
167
181
  * @param {*} [options] Override http request option.
168
182
  * @throws {RequiredError}
@@ -179,6 +193,7 @@ export interface ChunksApiInterface {
179
193
  /**
180
194
  * Creates request options for getChunksBulk without sending the request
181
195
  * @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
196
+ * @param {string} [authorization]
182
197
  * @param {string} [ksUat]
183
198
  * @throws {RequiredError}
184
199
  * @memberof ChunksApiInterface
@@ -189,6 +204,7 @@ export interface ChunksApiInterface {
189
204
  * Batch-fetch chunks with their full ancestor path part IDs. Returns standard chunk data plus path_part_id_segments (the ordered ancestor chain from root to chunk) for each requested chunk. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
190
205
  * @summary Get Chunks Bulk Handler
191
206
  * @param {Array<string>} [chunkIds] Chunk IDs to resolve (max 200)
207
+ * @param {string} [authorization]
192
208
  * @param {string} [ksUat]
193
209
  * @param {*} [options] Override http request option.
194
210
  * @throws {RequiredError}
@@ -205,6 +221,7 @@ export interface ChunksApiInterface {
205
221
  /**
206
222
  * Creates request options for getVersionChunkIds without sending the request
207
223
  * @param {string} documentVersionId Document version ID
224
+ * @param {string} [authorization]
208
225
  * @param {string} [ksUat]
209
226
  * @throws {RequiredError}
210
227
  * @memberof ChunksApiInterface
@@ -215,6 +232,7 @@ export interface ChunksApiInterface {
215
232
  * Get all chunk IDs belonging to a document version. Used by the embedding pipeline to discover chunks for a version.
216
233
  * @summary Get Version Chunk Ids Handler
217
234
  * @param {string} documentVersionId Document version ID
235
+ * @param {string} [authorization]
218
236
  * @param {string} [ksUat]
219
237
  * @param {*} [options] Override http request option.
220
238
  * @throws {RequiredError}
@@ -231,6 +249,7 @@ export interface ChunksApiInterface {
231
249
  /**
232
250
  * Creates request options for searchChunks without sending the request
233
251
  * @param {ChunkSearchRequest} chunkSearchRequest
252
+ * @param {string} [authorization]
234
253
  * @param {string} [ksUat]
235
254
  * @throws {RequiredError}
236
255
  * @memberof ChunksApiInterface
@@ -241,6 +260,7 @@ export interface ChunksApiInterface {
241
260
  * Search over chunks using dense vector similarity or BM25 full-text. Combines vector/keyword search with path-based authorization and optional metadata filters. Uses Qdrant for search and hydrates results from Postgres.
242
261
  * @summary Search Chunks Handler
243
262
  * @param {ChunkSearchRequest} chunkSearchRequest
263
+ * @param {string} [authorization]
244
264
  * @param {string} [ksUat]
245
265
  * @param {*} [options] Override http request option.
246
266
  * @throws {RequiredError}
@@ -258,6 +278,7 @@ export interface ChunksApiInterface {
258
278
  * Creates request options for updateChunkContent without sending the request
259
279
  * @param {string} chunkId
260
280
  * @param {UpdateChunkContentRequest} updateChunkContentRequest
281
+ * @param {string} [authorization]
261
282
  * @param {string} [ksUat]
262
283
  * @throws {RequiredError}
263
284
  * @memberof ChunksApiInterface
@@ -269,6 +290,7 @@ export interface ChunksApiInterface {
269
290
  * @summary Update Chunk Content Handler
270
291
  * @param {string} chunkId
271
292
  * @param {UpdateChunkContentRequest} updateChunkContentRequest
293
+ * @param {string} [authorization]
272
294
  * @param {string} [ksUat]
273
295
  * @param {*} [options] Override http request option.
274
296
  * @throws {RequiredError}
@@ -286,6 +308,7 @@ export interface ChunksApiInterface {
286
308
  * Creates request options for updateChunkMetadata without sending the request
287
309
  * @param {string} chunkId
288
310
  * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
311
+ * @param {string} [authorization]
289
312
  * @param {string} [ksUat]
290
313
  * @throws {RequiredError}
291
314
  * @memberof ChunksApiInterface
@@ -297,6 +320,7 @@ export interface ChunksApiInterface {
297
320
  * @summary Update Chunk Metadata Handler
298
321
  * @param {string} chunkId
299
322
  * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
323
+ * @param {string} [authorization]
300
324
  * @param {string} [ksUat]
301
325
  * @param {*} [options] Override http request option.
302
326
  * @throws {RequiredError}
@@ -334,6 +358,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
334
358
 
335
359
  headerParameters['Content-Type'] = 'application/json';
336
360
 
361
+ if (requestParameters['authorization'] != null) {
362
+ headerParameters['authorization'] = String(requestParameters['authorization']);
363
+ }
364
+
337
365
 
338
366
  let urlPath = `/v1/chunks`;
339
367
 
@@ -381,6 +409,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
381
409
 
382
410
  const headerParameters: runtime.HTTPHeaders = {};
383
411
 
412
+ if (requestParameters['authorization'] != null) {
413
+ headerParameters['authorization'] = String(requestParameters['authorization']);
414
+ }
415
+
384
416
 
385
417
  let urlPath = `/v1/chunks/{chunk_id}`;
386
418
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
@@ -431,6 +463,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
431
463
 
432
464
  const headerParameters: runtime.HTTPHeaders = {};
433
465
 
466
+ if (requestParameters['authorization'] != null) {
467
+ headerParameters['authorization'] = String(requestParameters['authorization']);
468
+ }
469
+
434
470
 
435
471
  let urlPath = `/v1/chunks/{chunk_id}`;
436
472
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
@@ -475,6 +511,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
475
511
 
476
512
  const headerParameters: runtime.HTTPHeaders = {};
477
513
 
514
+ if (requestParameters['authorization'] != null) {
515
+ headerParameters['authorization'] = String(requestParameters['authorization']);
516
+ }
517
+
478
518
 
479
519
  let urlPath = `/v1/chunks/bulk`;
480
520
 
@@ -525,6 +565,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
525
565
 
526
566
  const headerParameters: runtime.HTTPHeaders = {};
527
567
 
568
+ if (requestParameters['authorization'] != null) {
569
+ headerParameters['authorization'] = String(requestParameters['authorization']);
570
+ }
571
+
528
572
 
529
573
  let urlPath = `/v1/chunks/version-chunk-ids`;
530
574
 
@@ -573,6 +617,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
573
617
 
574
618
  headerParameters['Content-Type'] = 'application/json';
575
619
 
620
+ if (requestParameters['authorization'] != null) {
621
+ headerParameters['authorization'] = String(requestParameters['authorization']);
622
+ }
623
+
576
624
 
577
625
  let urlPath = `/v1/chunks/search`;
578
626
 
@@ -629,6 +677,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
629
677
 
630
678
  headerParameters['Content-Type'] = 'application/json';
631
679
 
680
+ if (requestParameters['authorization'] != null) {
681
+ headerParameters['authorization'] = String(requestParameters['authorization']);
682
+ }
683
+
632
684
 
633
685
  let urlPath = `/v1/chunks/{chunk_id}/content`;
634
686
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
@@ -686,6 +738,10 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
686
738
 
687
739
  headerParameters['Content-Type'] = 'application/json';
688
740
 
741
+ if (requestParameters['authorization'] != null) {
742
+ headerParameters['authorization'] = String(requestParameters['authorization']);
743
+ }
744
+
689
745
 
690
746
  let urlPath = `/v1/chunks/{chunk_id}`;
691
747
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
@@ -39,21 +39,25 @@ import {
39
39
 
40
40
  export interface ClearDocumentVersionContentsRequest {
41
41
  versionId: string;
42
+ authorization?: string | null;
42
43
  ksUat?: string | null;
43
44
  }
44
45
 
45
46
  export interface CreateDocumentVersionRequest {
46
47
  documentId: string;
48
+ authorization?: string | null;
47
49
  ksUat?: string | null;
48
50
  }
49
51
 
50
52
  export interface DeleteDocumentVersionRequest {
51
53
  versionId: string;
54
+ authorization?: string | null;
52
55
  ksUat?: string | null;
53
56
  }
54
57
 
55
58
  export interface GetDocumentVersionRequest {
56
59
  versionId: string;
60
+ authorization?: string | null;
57
61
  ksUat?: string | null;
58
62
  }
59
63
 
@@ -62,6 +66,7 @@ export interface GetDocumentVersionContentsRequest {
62
66
  sectionId?: string | null;
63
67
  limit?: number;
64
68
  offset?: number;
69
+ authorization?: string | null;
65
70
  ksUat?: string | null;
66
71
  }
67
72
 
@@ -69,12 +74,14 @@ export interface ListDocumentVersionsRequest {
69
74
  documentId: string;
70
75
  limit?: number;
71
76
  offset?: number;
77
+ authorization?: string | null;
72
78
  ksUat?: string | null;
73
79
  }
74
80
 
75
81
  export interface UpdateDocumentVersionMetadataRequest {
76
82
  versionId: string;
77
83
  documentVersionMetadataUpdate: DocumentVersionMetadataUpdate;
84
+ authorization?: string | null;
78
85
  ksUat?: string | null;
79
86
  }
80
87
 
@@ -88,6 +95,7 @@ export interface DocumentVersionsApiInterface {
88
95
  /**
89
96
  * Creates request options for clearDocumentVersionContents without sending the request
90
97
  * @param {string} versionId DocumentVersion ID
98
+ * @param {string} [authorization]
91
99
  * @param {string} [ksUat]
92
100
  * @throws {RequiredError}
93
101
  * @memberof DocumentVersionsApiInterface
@@ -98,6 +106,7 @@ export interface DocumentVersionsApiInterface {
98
106
  * Delete all sections and chunks under a document version. Removes all content (sections and chunks) from the version while keeping the version itself intact. Used by the ingestion pipeline for idempotent re-processing.
99
107
  * @summary Clear Document Version Contents Handler
100
108
  * @param {string} versionId DocumentVersion ID
109
+ * @param {string} [authorization]
101
110
  * @param {string} [ksUat]
102
111
  * @param {*} [options] Override http request option.
103
112
  * @throws {RequiredError}
@@ -114,6 +123,7 @@ export interface DocumentVersionsApiInterface {
114
123
  /**
115
124
  * Creates request options for createDocumentVersion without sending the request
116
125
  * @param {string} documentId Document ID
126
+ * @param {string} [authorization]
117
127
  * @param {string} [ksUat]
118
128
  * @throws {RequiredError}
119
129
  * @memberof DocumentVersionsApiInterface
@@ -124,6 +134,7 @@ export interface DocumentVersionsApiInterface {
124
134
  * Create a new version for a document. The version number is automatically incremented from the highest existing version.
125
135
  * @summary Create Document Version Handler
126
136
  * @param {string} documentId Document ID
137
+ * @param {string} [authorization]
127
138
  * @param {string} [ksUat]
128
139
  * @param {*} [options] Override http request option.
129
140
  * @throws {RequiredError}
@@ -140,6 +151,7 @@ export interface DocumentVersionsApiInterface {
140
151
  /**
141
152
  * Creates request options for deleteDocumentVersion without sending the request
142
153
  * @param {string} versionId DocumentVersion ID
154
+ * @param {string} [authorization]
143
155
  * @param {string} [ksUat]
144
156
  * @throws {RequiredError}
145
157
  * @memberof DocumentVersionsApiInterface
@@ -150,6 +162,7 @@ export interface DocumentVersionsApiInterface {
150
162
  * Delete a document version by its ID. Cannot delete the active version of a document.
151
163
  * @summary Delete Document Version Handler
152
164
  * @param {string} versionId DocumentVersion ID
165
+ * @param {string} [authorization]
153
166
  * @param {string} [ksUat]
154
167
  * @param {*} [options] Override http request option.
155
168
  * @throws {RequiredError}
@@ -166,6 +179,7 @@ export interface DocumentVersionsApiInterface {
166
179
  /**
167
180
  * Creates request options for getDocumentVersion without sending the request
168
181
  * @param {string} versionId DocumentVersion ID
182
+ * @param {string} [authorization]
169
183
  * @param {string} [ksUat]
170
184
  * @throws {RequiredError}
171
185
  * @memberof DocumentVersionsApiInterface
@@ -176,6 +190,7 @@ export interface DocumentVersionsApiInterface {
176
190
  * Get a document version by its ID.
177
191
  * @summary Get Document Version Handler
178
192
  * @param {string} versionId DocumentVersion ID
193
+ * @param {string} [authorization]
179
194
  * @param {string} [ksUat]
180
195
  * @param {*} [options] Override http request option.
181
196
  * @throws {RequiredError}
@@ -195,6 +210,7 @@ export interface DocumentVersionsApiInterface {
195
210
  * @param {string} [sectionId] Optional section ID to scope traversal to a subtree
196
211
  * @param {number} [limit] Number of items per page
197
212
  * @param {number} [offset] Number of items to skip
213
+ * @param {string} [authorization]
198
214
  * @param {string} [ksUat]
199
215
  * @throws {RequiredError}
200
216
  * @memberof DocumentVersionsApiInterface
@@ -208,6 +224,7 @@ export interface DocumentVersionsApiInterface {
208
224
  * @param {string} [sectionId] Optional section ID to scope traversal to a subtree
209
225
  * @param {number} [limit] Number of items per page
210
226
  * @param {number} [offset] Number of items to skip
227
+ * @param {string} [authorization]
211
228
  * @param {string} [ksUat]
212
229
  * @param {*} [options] Override http request option.
213
230
  * @throws {RequiredError}
@@ -226,6 +243,7 @@ export interface DocumentVersionsApiInterface {
226
243
  * @param {string} documentId Document ID to list versions for
227
244
  * @param {number} [limit] Number of items per page
228
245
  * @param {number} [offset] Number of items to skip
246
+ * @param {string} [authorization]
229
247
  * @param {string} [ksUat]
230
248
  * @throws {RequiredError}
231
249
  * @memberof DocumentVersionsApiInterface
@@ -238,6 +256,7 @@ export interface DocumentVersionsApiInterface {
238
256
  * @param {string} documentId Document ID to list versions for
239
257
  * @param {number} [limit] Number of items per page
240
258
  * @param {number} [offset] Number of items to skip
259
+ * @param {string} [authorization]
241
260
  * @param {string} [ksUat]
242
261
  * @param {*} [options] Override http request option.
243
262
  * @throws {RequiredError}
@@ -255,6 +274,7 @@ export interface DocumentVersionsApiInterface {
255
274
  * Creates request options for updateDocumentVersionMetadata without sending the request
256
275
  * @param {string} versionId DocumentVersion ID
257
276
  * @param {DocumentVersionMetadataUpdate} documentVersionMetadataUpdate
277
+ * @param {string} [authorization]
258
278
  * @param {string} [ksUat]
259
279
  * @throws {RequiredError}
260
280
  * @memberof DocumentVersionsApiInterface
@@ -266,6 +286,7 @@ export interface DocumentVersionsApiInterface {
266
286
  * @summary Update Document Version Metadata Handler
267
287
  * @param {string} versionId DocumentVersion ID
268
288
  * @param {DocumentVersionMetadataUpdate} documentVersionMetadataUpdate
289
+ * @param {string} [authorization]
269
290
  * @param {string} [ksUat]
270
291
  * @param {*} [options] Override http request option.
271
292
  * @throws {RequiredError}
@@ -301,6 +322,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
301
322
 
302
323
  const headerParameters: runtime.HTTPHeaders = {};
303
324
 
325
+ if (requestParameters['authorization'] != null) {
326
+ headerParameters['authorization'] = String(requestParameters['authorization']);
327
+ }
328
+
304
329
 
305
330
  let urlPath = `/v1/document_versions/{version_id}/contents`;
306
331
  urlPath = urlPath.replace(`{${"version_id"}}`, encodeURIComponent(String(requestParameters['versionId'])));
@@ -348,6 +373,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
348
373
 
349
374
  const headerParameters: runtime.HTTPHeaders = {};
350
375
 
376
+ if (requestParameters['authorization'] != null) {
377
+ headerParameters['authorization'] = String(requestParameters['authorization']);
378
+ }
379
+
351
380
 
352
381
  let urlPath = `/v1/documents/{document_id}/versions`;
353
382
  urlPath = urlPath.replace(`{${"document_id"}}`, encodeURIComponent(String(requestParameters['documentId'])));
@@ -395,6 +424,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
395
424
 
396
425
  const headerParameters: runtime.HTTPHeaders = {};
397
426
 
427
+ if (requestParameters['authorization'] != null) {
428
+ headerParameters['authorization'] = String(requestParameters['authorization']);
429
+ }
430
+
398
431
 
399
432
  let urlPath = `/v1/document_versions/{version_id}`;
400
433
  urlPath = urlPath.replace(`{${"version_id"}}`, encodeURIComponent(String(requestParameters['versionId'])));
@@ -441,6 +474,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
441
474
 
442
475
  const headerParameters: runtime.HTTPHeaders = {};
443
476
 
477
+ if (requestParameters['authorization'] != null) {
478
+ headerParameters['authorization'] = String(requestParameters['authorization']);
479
+ }
480
+
444
481
 
445
482
  let urlPath = `/v1/document_versions/{version_id}`;
446
483
  urlPath = urlPath.replace(`{${"version_id"}}`, encodeURIComponent(String(requestParameters['versionId'])));
@@ -500,6 +537,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
500
537
 
501
538
  const headerParameters: runtime.HTTPHeaders = {};
502
539
 
540
+ if (requestParameters['authorization'] != null) {
541
+ headerParameters['authorization'] = String(requestParameters['authorization']);
542
+ }
543
+
503
544
 
504
545
  let urlPath = `/v1/document_versions/{version_id}/contents`;
505
546
  urlPath = urlPath.replace(`{${"version_id"}}`, encodeURIComponent(String(requestParameters['versionId'])));
@@ -559,6 +600,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
559
600
 
560
601
  const headerParameters: runtime.HTTPHeaders = {};
561
602
 
603
+ if (requestParameters['authorization'] != null) {
604
+ headerParameters['authorization'] = String(requestParameters['authorization']);
605
+ }
606
+
562
607
 
563
608
  let urlPath = `/v1/document_versions`;
564
609
 
@@ -614,6 +659,10 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
614
659
 
615
660
  headerParameters['Content-Type'] = 'application/json';
616
661
 
662
+ if (requestParameters['authorization'] != null) {
663
+ headerParameters['authorization'] = String(requestParameters['authorization']);
664
+ }
665
+
617
666
 
618
667
  let urlPath = `/v1/document_versions/{version_id}/metadata`;
619
668
  urlPath = urlPath.replace(`{${"version_id"}}`, encodeURIComponent(String(requestParameters['versionId'])));