@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
@@ -45,22 +45,26 @@ import {
45
45
 
46
46
  export interface CreateTenantOperationRequest {
47
47
  createTenantRequest: CreateTenantRequest;
48
+ authorization?: string | null;
48
49
  ksUat?: string | null;
49
50
  }
50
51
 
51
52
  export interface DeleteTenantRequest {
52
53
  tenantId: string;
54
+ authorization?: string | null;
53
55
  ksUat?: string | null;
54
56
  }
55
57
 
56
58
  export interface DeleteTenantUserRequest {
57
59
  tenantId: string;
58
60
  userId: string;
61
+ authorization?: string | null;
59
62
  ksUat?: string | null;
60
63
  }
61
64
 
62
65
  export interface GetTenantRequest {
63
66
  tenantId: string;
67
+ authorization?: string | null;
64
68
  ksUat?: string | null;
65
69
  }
66
70
 
@@ -68,18 +72,21 @@ export interface ListTenantUsersRequest {
68
72
  tenantId: string;
69
73
  limit?: number;
70
74
  offset?: number;
75
+ authorization?: string | null;
71
76
  ksUat?: string | null;
72
77
  }
73
78
 
74
79
  export interface ListTenantsRequest {
75
80
  limit?: number;
76
81
  offset?: number;
82
+ authorization?: string | null;
77
83
  ksUat?: string | null;
78
84
  }
79
85
 
80
86
  export interface UpdateTenantOperationRequest {
81
87
  tenantId: string;
82
88
  updateTenantRequest: UpdateTenantRequest;
89
+ authorization?: string | null;
83
90
  ksUat?: string | null;
84
91
  }
85
92
 
@@ -87,6 +94,7 @@ export interface UpdateTenantUserRequest {
87
94
  tenantId: string;
88
95
  userId: string;
89
96
  tenantUserEditRequest: TenantUserEditRequest;
97
+ authorization?: string | null;
90
98
  ksUat?: string | null;
91
99
  }
92
100
 
@@ -100,6 +108,7 @@ export interface TenantsApiInterface {
100
108
  /**
101
109
  * Creates request options for createTenant without sending the request
102
110
  * @param {CreateTenantRequest} createTenantRequest
111
+ * @param {string} [authorization]
103
112
  * @param {string} [ksUat]
104
113
  * @throws {RequiredError}
105
114
  * @memberof TenantsApiInterface
@@ -110,6 +119,7 @@ export interface TenantsApiInterface {
110
119
  * Create a new tenant. The creator is automatically added as OWNER of the tenant.
111
120
  * @summary Create Tenant
112
121
  * @param {CreateTenantRequest} createTenantRequest
122
+ * @param {string} [authorization]
113
123
  * @param {string} [ksUat]
114
124
  * @param {*} [options] Override http request option.
115
125
  * @throws {RequiredError}
@@ -126,6 +136,7 @@ export interface TenantsApiInterface {
126
136
  /**
127
137
  * Creates request options for deleteTenant without sending the request
128
138
  * @param {string} tenantId
139
+ * @param {string} [authorization]
129
140
  * @param {string} [ksUat]
130
141
  * @throws {RequiredError}
131
142
  * @memberof TenantsApiInterface
@@ -136,6 +147,7 @@ export interface TenantsApiInterface {
136
147
  * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
137
148
  * @summary Delete Tenant
138
149
  * @param {string} tenantId
150
+ * @param {string} [authorization]
139
151
  * @param {string} [ksUat]
140
152
  * @param {*} [options] Override http request option.
141
153
  * @throws {RequiredError}
@@ -153,6 +165,7 @@ export interface TenantsApiInterface {
153
165
  * Creates request options for deleteTenantUser without sending the request
154
166
  * @param {string} tenantId
155
167
  * @param {string} userId
168
+ * @param {string} [authorization]
156
169
  * @param {string} [ksUat]
157
170
  * @throws {RequiredError}
158
171
  * @memberof TenantsApiInterface
@@ -164,6 +177,7 @@ export interface TenantsApiInterface {
164
177
  * @summary Delete Tenant User
165
178
  * @param {string} tenantId
166
179
  * @param {string} userId
180
+ * @param {string} [authorization]
167
181
  * @param {string} [ksUat]
168
182
  * @param {*} [options] Override http request option.
169
183
  * @throws {RequiredError}
@@ -180,6 +194,7 @@ export interface TenantsApiInterface {
180
194
  /**
181
195
  * Creates request options for getTenant without sending the request
182
196
  * @param {string} tenantId
197
+ * @param {string} [authorization]
183
198
  * @param {string} [ksUat]
184
199
  * @throws {RequiredError}
185
200
  * @memberof TenantsApiInterface
@@ -190,6 +205,7 @@ export interface TenantsApiInterface {
190
205
  * Get tenant information by ID. User must be a member of the tenant.
191
206
  * @summary Get Tenant
192
207
  * @param {string} tenantId
208
+ * @param {string} [authorization]
193
209
  * @param {string} [ksUat]
194
210
  * @param {*} [options] Override http request option.
195
211
  * @throws {RequiredError}
@@ -208,6 +224,7 @@ export interface TenantsApiInterface {
208
224
  * @param {string} tenantId
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
  * @throws {RequiredError}
213
230
  * @memberof TenantsApiInterface
@@ -220,6 +237,7 @@ export interface TenantsApiInterface {
220
237
  * @param {string} tenantId
221
238
  * @param {number} [limit] Number of items per page
222
239
  * @param {number} [offset] Number of items to skip
240
+ * @param {string} [authorization]
223
241
  * @param {string} [ksUat]
224
242
  * @param {*} [options] Override http request option.
225
243
  * @throws {RequiredError}
@@ -237,6 +255,7 @@ export interface TenantsApiInterface {
237
255
  * Creates request options for listTenants without sending the request
238
256
  * @param {number} [limit] Number of items per page
239
257
  * @param {number} [offset] Number of items to skip
258
+ * @param {string} [authorization]
240
259
  * @param {string} [ksUat]
241
260
  * @throws {RequiredError}
242
261
  * @memberof TenantsApiInterface
@@ -248,6 +267,7 @@ export interface TenantsApiInterface {
248
267
  * @summary List Tenants
249
268
  * @param {number} [limit] Number of items per page
250
269
  * @param {number} [offset] Number of items to skip
270
+ * @param {string} [authorization]
251
271
  * @param {string} [ksUat]
252
272
  * @param {*} [options] Override http request option.
253
273
  * @throws {RequiredError}
@@ -265,6 +285,7 @@ export interface TenantsApiInterface {
265
285
  * Creates request options for updateTenant without sending the request
266
286
  * @param {string} tenantId
267
287
  * @param {UpdateTenantRequest} updateTenantRequest
288
+ * @param {string} [authorization]
268
289
  * @param {string} [ksUat]
269
290
  * @throws {RequiredError}
270
291
  * @memberof TenantsApiInterface
@@ -276,6 +297,7 @@ export interface TenantsApiInterface {
276
297
  * @summary Update Tenant
277
298
  * @param {string} tenantId
278
299
  * @param {UpdateTenantRequest} updateTenantRequest
300
+ * @param {string} [authorization]
279
301
  * @param {string} [ksUat]
280
302
  * @param {*} [options] Override http request option.
281
303
  * @throws {RequiredError}
@@ -294,6 +316,7 @@ export interface TenantsApiInterface {
294
316
  * @param {string} tenantId
295
317
  * @param {string} userId
296
318
  * @param {TenantUserEditRequest} tenantUserEditRequest
319
+ * @param {string} [authorization]
297
320
  * @param {string} [ksUat]
298
321
  * @throws {RequiredError}
299
322
  * @memberof TenantsApiInterface
@@ -306,6 +329,7 @@ export interface TenantsApiInterface {
306
329
  * @param {string} tenantId
307
330
  * @param {string} userId
308
331
  * @param {TenantUserEditRequest} tenantUserEditRequest
332
+ * @param {string} [authorization]
309
333
  * @param {string} [ksUat]
310
334
  * @param {*} [options] Override http request option.
311
335
  * @throws {RequiredError}
@@ -343,6 +367,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
343
367
 
344
368
  headerParameters['Content-Type'] = 'application/json';
345
369
 
370
+ if (requestParameters['authorization'] != null) {
371
+ headerParameters['authorization'] = String(requestParameters['authorization']);
372
+ }
373
+
346
374
 
347
375
  let urlPath = `/v1/tenants`;
348
376
 
@@ -390,6 +418,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
390
418
 
391
419
  const headerParameters: runtime.HTTPHeaders = {};
392
420
 
421
+ if (requestParameters['authorization'] != null) {
422
+ headerParameters['authorization'] = String(requestParameters['authorization']);
423
+ }
424
+
393
425
 
394
426
  let urlPath = `/v1/tenants/{tenant_id}`;
395
427
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
@@ -443,6 +475,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
443
475
 
444
476
  const headerParameters: runtime.HTTPHeaders = {};
445
477
 
478
+ if (requestParameters['authorization'] != null) {
479
+ headerParameters['authorization'] = String(requestParameters['authorization']);
480
+ }
481
+
446
482
 
447
483
  let urlPath = `/v1/tenants/{tenant_id}/users/{user_id}`;
448
484
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
@@ -490,6 +526,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
490
526
 
491
527
  const headerParameters: runtime.HTTPHeaders = {};
492
528
 
529
+ if (requestParameters['authorization'] != null) {
530
+ headerParameters['authorization'] = String(requestParameters['authorization']);
531
+ }
532
+
493
533
 
494
534
  let urlPath = `/v1/tenants/{tenant_id}`;
495
535
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
@@ -545,6 +585,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
545
585
 
546
586
  const headerParameters: runtime.HTTPHeaders = {};
547
587
 
588
+ if (requestParameters['authorization'] != null) {
589
+ headerParameters['authorization'] = String(requestParameters['authorization']);
590
+ }
591
+
548
592
 
549
593
  let urlPath = `/v1/tenants/{tenant_id}/users`;
550
594
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
@@ -593,6 +637,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
593
637
 
594
638
  const headerParameters: runtime.HTTPHeaders = {};
595
639
 
640
+ if (requestParameters['authorization'] != null) {
641
+ headerParameters['authorization'] = String(requestParameters['authorization']);
642
+ }
643
+
596
644
 
597
645
  let urlPath = `/v1/tenants`;
598
646
 
@@ -648,6 +696,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
648
696
 
649
697
  headerParameters['Content-Type'] = 'application/json';
650
698
 
699
+ if (requestParameters['authorization'] != null) {
700
+ headerParameters['authorization'] = String(requestParameters['authorization']);
701
+ }
702
+
651
703
 
652
704
  let urlPath = `/v1/tenants/{tenant_id}`;
653
705
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
@@ -712,6 +764,10 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
712
764
 
713
765
  headerParameters['Content-Type'] = 'application/json';
714
766
 
767
+ if (requestParameters['authorization'] != null) {
768
+ headerParameters['authorization'] = String(requestParameters['authorization']);
769
+ }
770
+
715
771
 
716
772
  let urlPath = `/v1/tenants/{tenant_id}/users/{user_id}`;
717
773
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
@@ -34,6 +34,7 @@ import {
34
34
  export interface CreateThreadMessageOperationRequest {
35
35
  threadId: string;
36
36
  createThreadMessageRequest: CreateThreadMessageRequest;
37
+ authorization?: string | null;
37
38
  ksUat?: string | null;
38
39
  }
39
40
 
@@ -41,6 +42,7 @@ export interface GetThreadMessageRequest {
41
42
  threadId: string;
42
43
  messageId: string;
43
44
  withDetails?: boolean;
45
+ authorization?: string | null;
44
46
  ksUat?: string | null;
45
47
  }
46
48
 
@@ -50,6 +52,7 @@ export interface ListThreadMessagesRequest {
50
52
  withDetails?: boolean;
51
53
  limit?: number;
52
54
  offset?: number;
55
+ authorization?: string | null;
53
56
  ksUat?: string | null;
54
57
  }
55
58
 
@@ -64,6 +67,7 @@ export interface ThreadMessagesApiInterface {
64
67
  * Creates request options for createThreadMessage without sending the request
65
68
  * @param {string} threadId
66
69
  * @param {CreateThreadMessageRequest} createThreadMessageRequest
70
+ * @param {string} [authorization]
67
71
  * @param {string} [ksUat]
68
72
  * @throws {RequiredError}
69
73
  * @memberof ThreadMessagesApiInterface
@@ -75,6 +79,7 @@ export interface ThreadMessagesApiInterface {
75
79
  * @summary Create Thread Message Handler
76
80
  * @param {string} threadId
77
81
  * @param {CreateThreadMessageRequest} createThreadMessageRequest
82
+ * @param {string} [authorization]
78
83
  * @param {string} [ksUat]
79
84
  * @param {*} [options] Override http request option.
80
85
  * @throws {RequiredError}
@@ -93,6 +98,7 @@ export interface ThreadMessagesApiInterface {
93
98
  * @param {string} threadId
94
99
  * @param {string} messageId
95
100
  * @param {boolean} [withDetails] Include execution steps in response (default true)
101
+ * @param {string} [authorization]
96
102
  * @param {string} [ksUat]
97
103
  * @throws {RequiredError}
98
104
  * @memberof ThreadMessagesApiInterface
@@ -105,6 +111,7 @@ export interface ThreadMessagesApiInterface {
105
111
  * @param {string} threadId
106
112
  * @param {string} messageId
107
113
  * @param {boolean} [withDetails] Include execution steps in response (default true)
114
+ * @param {string} [authorization]
108
115
  * @param {string} [ksUat]
109
116
  * @param {*} [options] Override http request option.
110
117
  * @throws {RequiredError}
@@ -125,6 +132,7 @@ export interface ThreadMessagesApiInterface {
125
132
  * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
126
133
  * @param {number} [limit] Number of items per page
127
134
  * @param {number} [offset] Number of items to skip
135
+ * @param {string} [authorization]
128
136
  * @param {string} [ksUat]
129
137
  * @throws {RequiredError}
130
138
  * @memberof ThreadMessagesApiInterface
@@ -139,6 +147,7 @@ export interface ThreadMessagesApiInterface {
139
147
  * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
140
148
  * @param {number} [limit] Number of items per page
141
149
  * @param {number} [offset] Number of items to skip
150
+ * @param {string} [authorization]
142
151
  * @param {string} [ksUat]
143
152
  * @param {*} [options] Override http request option.
144
153
  * @throws {RequiredError}
@@ -183,6 +192,10 @@ export class ThreadMessagesApi extends runtime.BaseAPI implements ThreadMessages
183
192
 
184
193
  headerParameters['Content-Type'] = 'application/json';
185
194
 
195
+ if (requestParameters['authorization'] != null) {
196
+ headerParameters['authorization'] = String(requestParameters['authorization']);
197
+ }
198
+
186
199
 
187
200
  let urlPath = `/v1/threads/{thread_id}/messages`;
188
201
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -242,6 +255,10 @@ export class ThreadMessagesApi extends runtime.BaseAPI implements ThreadMessages
242
255
 
243
256
  const headerParameters: runtime.HTTPHeaders = {};
244
257
 
258
+ if (requestParameters['authorization'] != null) {
259
+ headerParameters['authorization'] = String(requestParameters['authorization']);
260
+ }
261
+
245
262
 
246
263
  let urlPath = `/v1/threads/{thread_id}/messages/{message_id}`;
247
264
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -306,6 +323,10 @@ export class ThreadMessagesApi extends runtime.BaseAPI implements ThreadMessages
306
323
 
307
324
  const headerParameters: runtime.HTTPHeaders = {};
308
325
 
326
+ if (requestParameters['authorization'] != null) {
327
+ headerParameters['authorization'] = String(requestParameters['authorization']);
328
+ }
329
+
309
330
 
310
331
  let urlPath = `/v1/threads/{thread_id}/messages`;
311
332
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -42,16 +42,19 @@ import {
42
42
 
43
43
  export interface CreateThreadOperationRequest {
44
44
  createThreadRequest: CreateThreadRequest;
45
+ authorization?: string | null;
45
46
  ksUat?: string | null;
46
47
  }
47
48
 
48
49
  export interface DeleteThreadRequest {
49
50
  threadId: string;
51
+ authorization?: string | null;
50
52
  ksUat?: string | null;
51
53
  }
52
54
 
53
55
  export interface GetThreadRequest {
54
56
  threadId: string;
57
+ authorization?: string | null;
55
58
  ksUat?: string | null;
56
59
  }
57
60
 
@@ -59,12 +62,14 @@ export interface ListThreadsRequest {
59
62
  parentPathPartId?: string | null;
60
63
  limit?: number;
61
64
  offset?: number;
65
+ authorization?: string | null;
62
66
  ksUat?: string | null;
63
67
  }
64
68
 
65
69
  export interface SendUserMessageRequest {
66
70
  threadId: string;
67
71
  userMessageRequest: UserMessageRequest;
72
+ authorization?: string | null;
68
73
  ksUat?: string | null;
69
74
  }
70
75
 
@@ -72,12 +77,14 @@ export interface StreamThreadRequest {
72
77
  threadId: string;
73
78
  lastMessageId?: string | null;
74
79
  lastEntryId?: string | null;
80
+ authorization?: string | null;
75
81
  ksUat?: string | null;
76
82
  }
77
83
 
78
84
  export interface UpdateThreadOperationRequest {
79
85
  threadId: string;
80
86
  updateThreadRequest: UpdateThreadRequest;
87
+ authorization?: string | null;
81
88
  ksUat?: string | null;
82
89
  }
83
90
 
@@ -91,6 +98,7 @@ export interface ThreadsApiInterface {
91
98
  /**
92
99
  * Creates request options for createThread without sending the request
93
100
  * @param {CreateThreadRequest} createThreadRequest
101
+ * @param {string} [authorization]
94
102
  * @param {string} [ksUat]
95
103
  * @throws {RequiredError}
96
104
  * @memberof ThreadsApiInterface
@@ -101,6 +109,7 @@ export interface ThreadsApiInterface {
101
109
  * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
102
110
  * @summary Create Thread Handler
103
111
  * @param {CreateThreadRequest} createThreadRequest
112
+ * @param {string} [authorization]
104
113
  * @param {string} [ksUat]
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
@@ -117,6 +126,7 @@ export interface ThreadsApiInterface {
117
126
  /**
118
127
  * Creates request options for deleteThread without sending the request
119
128
  * @param {string} threadId
129
+ * @param {string} [authorization]
120
130
  * @param {string} [ksUat]
121
131
  * @throws {RequiredError}
122
132
  * @memberof ThreadsApiInterface
@@ -127,6 +137,7 @@ export interface ThreadsApiInterface {
127
137
  * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
128
138
  * @summary Delete Thread Handler
129
139
  * @param {string} threadId
140
+ * @param {string} [authorization]
130
141
  * @param {string} [ksUat]
131
142
  * @param {*} [options] Override http request option.
132
143
  * @throws {RequiredError}
@@ -143,6 +154,7 @@ export interface ThreadsApiInterface {
143
154
  /**
144
155
  * Creates request options for getThread without sending the request
145
156
  * @param {string} threadId
157
+ * @param {string} [authorization]
146
158
  * @param {string} [ksUat]
147
159
  * @throws {RequiredError}
148
160
  * @memberof ThreadsApiInterface
@@ -153,6 +165,7 @@ export interface ThreadsApiInterface {
153
165
  * Get a thread by its thread ID.
154
166
  * @summary Get Thread Handler
155
167
  * @param {string} threadId
168
+ * @param {string} [authorization]
156
169
  * @param {string} [ksUat]
157
170
  * @param {*} [options] Override http request option.
158
171
  * @throws {RequiredError}
@@ -171,6 +184,7 @@ export interface ThreadsApiInterface {
171
184
  * @param {string} [parentPathPartId] Parent PathPart ID. Omit to list user\'s conversation threads.
172
185
  * @param {number} [limit] Number of items per page
173
186
  * @param {number} [offset] Number of items to skip
187
+ * @param {string} [authorization]
174
188
  * @param {string} [ksUat]
175
189
  * @throws {RequiredError}
176
190
  * @memberof ThreadsApiInterface
@@ -183,6 +197,7 @@ export interface ThreadsApiInterface {
183
197
  * @param {string} [parentPathPartId] Parent PathPart ID. Omit to list user\'s conversation threads.
184
198
  * @param {number} [limit] Number of items per page
185
199
  * @param {number} [offset] Number of items to skip
200
+ * @param {string} [authorization]
186
201
  * @param {string} [ksUat]
187
202
  * @param {*} [options] Override http request option.
188
203
  * @throws {RequiredError}
@@ -200,6 +215,7 @@ export interface ThreadsApiInterface {
200
215
  * Creates request options for sendUserMessage without sending the request
201
216
  * @param {string} threadId
202
217
  * @param {UserMessageRequest} userMessageRequest
218
+ * @param {string} [authorization]
203
219
  * @param {string} [ksUat]
204
220
  * @throws {RequiredError}
205
221
  * @memberof ThreadsApiInterface
@@ -211,6 +227,7 @@ export interface ThreadsApiInterface {
211
227
  * @summary Send User Message Handler
212
228
  * @param {string} threadId
213
229
  * @param {UserMessageRequest} userMessageRequest
230
+ * @param {string} [authorization]
214
231
  * @param {string} [ksUat]
215
232
  * @param {*} [options] Override http request option.
216
233
  * @throws {RequiredError}
@@ -229,6 +246,7 @@ export interface ThreadsApiInterface {
229
246
  * @param {string} threadId
230
247
  * @param {string} [lastMessageId]
231
248
  * @param {string} [lastEntryId]
249
+ * @param {string} [authorization]
232
250
  * @param {string} [ksUat]
233
251
  * @throws {RequiredError}
234
252
  * @memberof ThreadsApiInterface
@@ -241,6 +259,7 @@ export interface ThreadsApiInterface {
241
259
  * @param {string} threadId
242
260
  * @param {string} [lastMessageId]
243
261
  * @param {string} [lastEntryId]
262
+ * @param {string} [authorization]
244
263
  * @param {string} [ksUat]
245
264
  * @param {*} [options] Override http request option.
246
265
  * @throws {RequiredError}
@@ -258,6 +277,7 @@ export interface ThreadsApiInterface {
258
277
  * Creates request options for updateThread without sending the request
259
278
  * @param {string} threadId
260
279
  * @param {UpdateThreadRequest} updateThreadRequest
280
+ * @param {string} [authorization]
261
281
  * @param {string} [ksUat]
262
282
  * @throws {RequiredError}
263
283
  * @memberof ThreadsApiInterface
@@ -269,6 +289,7 @@ export interface ThreadsApiInterface {
269
289
  * @summary Update Thread Handler
270
290
  * @param {string} threadId
271
291
  * @param {UpdateThreadRequest} updateThreadRequest
292
+ * @param {string} [authorization]
272
293
  * @param {string} [ksUat]
273
294
  * @param {*} [options] Override http request option.
274
295
  * @throws {RequiredError}
@@ -306,6 +327,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
306
327
 
307
328
  headerParameters['Content-Type'] = 'application/json';
308
329
 
330
+ if (requestParameters['authorization'] != null) {
331
+ headerParameters['authorization'] = String(requestParameters['authorization']);
332
+ }
333
+
309
334
 
310
335
  let urlPath = `/v1/threads`;
311
336
 
@@ -353,6 +378,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
353
378
 
354
379
  const headerParameters: runtime.HTTPHeaders = {};
355
380
 
381
+ if (requestParameters['authorization'] != null) {
382
+ headerParameters['authorization'] = String(requestParameters['authorization']);
383
+ }
384
+
356
385
 
357
386
  let urlPath = `/v1/threads/{thread_id}`;
358
387
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -399,6 +428,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
399
428
 
400
429
  const headerParameters: runtime.HTTPHeaders = {};
401
430
 
431
+ if (requestParameters['authorization'] != null) {
432
+ headerParameters['authorization'] = String(requestParameters['authorization']);
433
+ }
434
+
402
435
 
403
436
  let urlPath = `/v1/threads/{thread_id}`;
404
437
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -451,6 +484,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
451
484
 
452
485
  const headerParameters: runtime.HTTPHeaders = {};
453
486
 
487
+ if (requestParameters['authorization'] != null) {
488
+ headerParameters['authorization'] = String(requestParameters['authorization']);
489
+ }
490
+
454
491
 
455
492
  let urlPath = `/v1/threads`;
456
493
 
@@ -506,6 +543,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
506
543
 
507
544
  headerParameters['Content-Type'] = 'application/json';
508
545
 
546
+ if (requestParameters['authorization'] != null) {
547
+ headerParameters['authorization'] = String(requestParameters['authorization']);
548
+ }
549
+
509
550
 
510
551
  let urlPath = `/v1/threads/{thread_id}/user_message`;
511
552
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -562,6 +603,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
562
603
 
563
604
  const headerParameters: runtime.HTTPHeaders = {};
564
605
 
606
+ if (requestParameters['authorization'] != null) {
607
+ headerParameters['authorization'] = String(requestParameters['authorization']);
608
+ }
609
+
565
610
 
566
611
  let urlPath = `/v1/threads/{thread_id}/stream`;
567
612
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
@@ -617,6 +662,10 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
617
662
 
618
663
  headerParameters['Content-Type'] = 'application/json';
619
664
 
665
+ if (requestParameters['authorization'] != null) {
666
+ headerParameters['authorization'] = String(requestParameters['authorization']);
667
+ }
668
+
620
669
 
621
670
  let urlPath = `/v1/threads/{thread_id}`;
622
671
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));