@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.
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
@@ -13,19 +13,23 @@ import * as runtime from '../runtime';
13
13
  import type { CreateSectionRequest, SectionResponse, UpdateSectionRequest } from '../models/index';
14
14
  export interface CreateSectionOperationRequest {
15
15
  createSectionRequest: CreateSectionRequest;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface DeleteSectionRequest {
19
20
  sectionId: string;
21
+ authorization?: string | null;
20
22
  ksUat?: string | null;
21
23
  }
22
24
  export interface GetSectionRequest {
23
25
  sectionId: string;
26
+ authorization?: string | null;
24
27
  ksUat?: string | null;
25
28
  }
26
29
  export interface UpdateSectionOperationRequest {
27
30
  sectionId: string;
28
31
  updateSectionRequest: UpdateSectionRequest;
32
+ authorization?: string | null;
29
33
  ksUat?: string | null;
30
34
  }
31
35
  /**
@@ -38,6 +42,7 @@ export interface SectionsApiInterface {
38
42
  /**
39
43
  * Creates request options for createSection without sending the request
40
44
  * @param {CreateSectionRequest} createSectionRequest
45
+ * @param {string} [authorization]
41
46
  * @param {string} [ksUat]
42
47
  * @throws {RequiredError}
43
48
  * @memberof SectionsApiInterface
@@ -47,6 +52,7 @@ export interface SectionsApiInterface {
47
52
  * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
48
53
  * @summary Create Section Handler
49
54
  * @param {CreateSectionRequest} createSectionRequest
55
+ * @param {string} [authorization]
50
56
  * @param {string} [ksUat]
51
57
  * @param {*} [options] Override http request option.
52
58
  * @throws {RequiredError}
@@ -61,6 +67,7 @@ export interface SectionsApiInterface {
61
67
  /**
62
68
  * Creates request options for deleteSection without sending the request
63
69
  * @param {string} sectionId
70
+ * @param {string} [authorization]
64
71
  * @param {string} [ksUat]
65
72
  * @throws {RequiredError}
66
73
  * @memberof SectionsApiInterface
@@ -70,6 +77,7 @@ export interface SectionsApiInterface {
70
77
  * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
71
78
  * @summary Delete Section Handler
72
79
  * @param {string} sectionId
80
+ * @param {string} [authorization]
73
81
  * @param {string} [ksUat]
74
82
  * @param {*} [options] Override http request option.
75
83
  * @throws {RequiredError}
@@ -84,6 +92,7 @@ export interface SectionsApiInterface {
84
92
  /**
85
93
  * Creates request options for getSection without sending the request
86
94
  * @param {string} sectionId
95
+ * @param {string} [authorization]
87
96
  * @param {string} [ksUat]
88
97
  * @throws {RequiredError}
89
98
  * @memberof SectionsApiInterface
@@ -93,6 +102,7 @@ export interface SectionsApiInterface {
93
102
  * Get a section by its ID.
94
103
  * @summary Get Section Handler
95
104
  * @param {string} sectionId
105
+ * @param {string} [authorization]
96
106
  * @param {string} [ksUat]
97
107
  * @param {*} [options] Override http request option.
98
108
  * @throws {RequiredError}
@@ -108,6 +118,7 @@ export interface SectionsApiInterface {
108
118
  * Creates request options for updateSection without sending the request
109
119
  * @param {string} sectionId
110
120
  * @param {UpdateSectionRequest} updateSectionRequest
121
+ * @param {string} [authorization]
111
122
  * @param {string} [ksUat]
112
123
  * @throws {RequiredError}
113
124
  * @memberof SectionsApiInterface
@@ -118,6 +129,7 @@ export interface SectionsApiInterface {
118
129
  * @summary Update Section Handler
119
130
  * @param {string} sectionId
120
131
  * @param {UpdateSectionRequest} updateSectionRequest
132
+ * @param {string} [authorization]
121
133
  * @param {string} [ksUat]
122
134
  * @param {*} [options] Override http request option.
123
135
  * @throws {RequiredError}
@@ -37,6 +37,9 @@ export class SectionsApi 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/sections`;
41
44
  return {
42
45
  path: urlPath,
@@ -78,6 +81,9 @@ export class SectionsApi 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/sections/{section_id}`;
82
88
  urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
83
89
  return {
@@ -118,6 +124,9 @@ export class SectionsApi extends runtime.BaseAPI {
118
124
  }
119
125
  const queryParameters = {};
120
126
  const headerParameters = {};
127
+ if (requestParameters['authorization'] != null) {
128
+ headerParameters['authorization'] = String(requestParameters['authorization']);
129
+ }
121
130
  let urlPath = `/v1/sections/{section_id}`;
122
131
  urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
123
132
  return {
@@ -163,6 +172,9 @@ export class SectionsApi extends runtime.BaseAPI {
163
172
  const queryParameters = {};
164
173
  const headerParameters = {};
165
174
  headerParameters['Content-Type'] = 'application/json';
175
+ if (requestParameters['authorization'] != null) {
176
+ headerParameters['authorization'] = String(requestParameters['authorization']);
177
+ }
166
178
  let urlPath = `/v1/sections/{section_id}`;
167
179
  urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
168
180
  return {
@@ -13,24 +13,29 @@ import * as runtime from '../runtime';
13
13
  import type { CreateTagRequest, PaginatedResponseTagResponse, TagResponse, UpdateTagRequest } from '../models/index';
14
14
  export interface CreateTagOperationRequest {
15
15
  createTagRequest: CreateTagRequest;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface DeleteTagRequest {
19
20
  tagId: string;
21
+ authorization?: string | null;
20
22
  ksUat?: string | null;
21
23
  }
22
24
  export interface GetTagRequest {
23
25
  tagId: string;
26
+ authorization?: string | null;
24
27
  ksUat?: string | null;
25
28
  }
26
29
  export interface ListTagsRequest {
27
30
  limit?: number;
28
31
  offset?: number;
32
+ authorization?: string | null;
29
33
  ksUat?: string | null;
30
34
  }
31
35
  export interface UpdateTagOperationRequest {
32
36
  tagId: string;
33
37
  updateTagRequest: UpdateTagRequest;
38
+ authorization?: string | null;
34
39
  ksUat?: string | null;
35
40
  }
36
41
  /**
@@ -43,6 +48,7 @@ export interface TagsApiInterface {
43
48
  /**
44
49
  * Creates request options for createTag without sending the request
45
50
  * @param {CreateTagRequest} createTagRequest
51
+ * @param {string} [authorization]
46
52
  * @param {string} [ksUat]
47
53
  * @throws {RequiredError}
48
54
  * @memberof TagsApiInterface
@@ -52,6 +58,7 @@ export interface TagsApiInterface {
52
58
  * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
53
59
  * @summary Create Tag Handler
54
60
  * @param {CreateTagRequest} createTagRequest
61
+ * @param {string} [authorization]
55
62
  * @param {string} [ksUat]
56
63
  * @param {*} [options] Override http request option.
57
64
  * @throws {RequiredError}
@@ -66,6 +73,7 @@ export interface TagsApiInterface {
66
73
  /**
67
74
  * Creates request options for deleteTag without sending the request
68
75
  * @param {string} tagId
76
+ * @param {string} [authorization]
69
77
  * @param {string} [ksUat]
70
78
  * @throws {RequiredError}
71
79
  * @memberof TagsApiInterface
@@ -75,6 +83,7 @@ export interface TagsApiInterface {
75
83
  * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
76
84
  * @summary Delete Tag Handler
77
85
  * @param {string} tagId
86
+ * @param {string} [authorization]
78
87
  * @param {string} [ksUat]
79
88
  * @param {*} [options] Override http request option.
80
89
  * @throws {RequiredError}
@@ -89,6 +98,7 @@ export interface TagsApiInterface {
89
98
  /**
90
99
  * Creates request options for getTag without sending the request
91
100
  * @param {string} tagId
101
+ * @param {string} [authorization]
92
102
  * @param {string} [ksUat]
93
103
  * @throws {RequiredError}
94
104
  * @memberof TagsApiInterface
@@ -98,6 +108,7 @@ export interface TagsApiInterface {
98
108
  * Get a tag by its ID.
99
109
  * @summary Get Tag Handler
100
110
  * @param {string} tagId
111
+ * @param {string} [authorization]
101
112
  * @param {string} [ksUat]
102
113
  * @param {*} [options] Override http request option.
103
114
  * @throws {RequiredError}
@@ -113,6 +124,7 @@ export interface TagsApiInterface {
113
124
  * Creates request options for listTags without sending the request
114
125
  * @param {number} [limit] Number of items per page
115
126
  * @param {number} [offset] Number of items to skip
127
+ * @param {string} [authorization]
116
128
  * @param {string} [ksUat]
117
129
  * @throws {RequiredError}
118
130
  * @memberof TagsApiInterface
@@ -123,6 +135,7 @@ export interface TagsApiInterface {
123
135
  * @summary List Tags Handler
124
136
  * @param {number} [limit] Number of items per page
125
137
  * @param {number} [offset] Number of items to skip
138
+ * @param {string} [authorization]
126
139
  * @param {string} [ksUat]
127
140
  * @param {*} [options] Override http request option.
128
141
  * @throws {RequiredError}
@@ -138,6 +151,7 @@ export interface TagsApiInterface {
138
151
  * Creates request options for updateTag without sending the request
139
152
  * @param {string} tagId
140
153
  * @param {UpdateTagRequest} updateTagRequest
154
+ * @param {string} [authorization]
141
155
  * @param {string} [ksUat]
142
156
  * @throws {RequiredError}
143
157
  * @memberof TagsApiInterface
@@ -148,6 +162,7 @@ export interface TagsApiInterface {
148
162
  * @summary Update Tag Handler
149
163
  * @param {string} tagId
150
164
  * @param {UpdateTagRequest} updateTagRequest
165
+ * @param {string} [authorization]
151
166
  * @param {string} [ksUat]
152
167
  * @param {*} [options] Override http request option.
153
168
  * @throws {RequiredError}
@@ -37,6 +37,9 @@ export class TagsApi 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/tags`;
41
44
  return {
42
45
  path: urlPath,
@@ -78,6 +81,9 @@ export class TagsApi 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/tags/{tag_id}`;
82
88
  urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
83
89
  return {
@@ -118,6 +124,9 @@ export class TagsApi extends runtime.BaseAPI {
118
124
  }
119
125
  const queryParameters = {};
120
126
  const headerParameters = {};
127
+ if (requestParameters['authorization'] != null) {
128
+ headerParameters['authorization'] = String(requestParameters['authorization']);
129
+ }
121
130
  let urlPath = `/v1/tags/{tag_id}`;
122
131
  urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
123
132
  return {
@@ -162,6 +171,9 @@ export class TagsApi extends runtime.BaseAPI {
162
171
  queryParameters['offset'] = requestParameters['offset'];
163
172
  }
164
173
  const headerParameters = {};
174
+ if (requestParameters['authorization'] != null) {
175
+ headerParameters['authorization'] = String(requestParameters['authorization']);
176
+ }
165
177
  let urlPath = `/v1/tags`;
166
178
  return {
167
179
  path: urlPath,
@@ -206,6 +218,9 @@ export class TagsApi extends runtime.BaseAPI {
206
218
  const queryParameters = {};
207
219
  const headerParameters = {};
208
220
  headerParameters['Content-Type'] = 'application/json';
221
+ if (requestParameters['authorization'] != null) {
222
+ headerParameters['authorization'] = String(requestParameters['authorization']);
223
+ }
209
224
  let urlPath = `/v1/tags/{tag_id}`;
210
225
  urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
211
226
  return {
@@ -13,41 +13,49 @@ import * as runtime from '../runtime';
13
13
  import type { CreateTenantRequest, PaginatedResponseTenantResponse, PaginatedResponseTenantUserResponse, TenantResponse, TenantUserEditRequest, TenantUserResponse, UpdateTenantRequest } from '../models/index';
14
14
  export interface CreateTenantOperationRequest {
15
15
  createTenantRequest: CreateTenantRequest;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface DeleteTenantRequest {
19
20
  tenantId: string;
21
+ authorization?: string | null;
20
22
  ksUat?: string | null;
21
23
  }
22
24
  export interface DeleteTenantUserRequest {
23
25
  tenantId: string;
24
26
  userId: string;
27
+ authorization?: string | null;
25
28
  ksUat?: string | null;
26
29
  }
27
30
  export interface GetTenantRequest {
28
31
  tenantId: string;
32
+ authorization?: string | null;
29
33
  ksUat?: string | null;
30
34
  }
31
35
  export interface ListTenantUsersRequest {
32
36
  tenantId: string;
33
37
  limit?: number;
34
38
  offset?: number;
39
+ authorization?: string | null;
35
40
  ksUat?: string | null;
36
41
  }
37
42
  export interface ListTenantsRequest {
38
43
  limit?: number;
39
44
  offset?: number;
45
+ authorization?: string | null;
40
46
  ksUat?: string | null;
41
47
  }
42
48
  export interface UpdateTenantOperationRequest {
43
49
  tenantId: string;
44
50
  updateTenantRequest: UpdateTenantRequest;
51
+ authorization?: string | null;
45
52
  ksUat?: string | null;
46
53
  }
47
54
  export interface UpdateTenantUserRequest {
48
55
  tenantId: string;
49
56
  userId: string;
50
57
  tenantUserEditRequest: TenantUserEditRequest;
58
+ authorization?: string | null;
51
59
  ksUat?: string | null;
52
60
  }
53
61
  /**
@@ -60,6 +68,7 @@ export interface TenantsApiInterface {
60
68
  /**
61
69
  * Creates request options for createTenant without sending the request
62
70
  * @param {CreateTenantRequest} createTenantRequest
71
+ * @param {string} [authorization]
63
72
  * @param {string} [ksUat]
64
73
  * @throws {RequiredError}
65
74
  * @memberof TenantsApiInterface
@@ -69,6 +78,7 @@ export interface TenantsApiInterface {
69
78
  * Create a new tenant. The creator is automatically added as OWNER of the tenant.
70
79
  * @summary Create Tenant
71
80
  * @param {CreateTenantRequest} createTenantRequest
81
+ * @param {string} [authorization]
72
82
  * @param {string} [ksUat]
73
83
  * @param {*} [options] Override http request option.
74
84
  * @throws {RequiredError}
@@ -83,6 +93,7 @@ export interface TenantsApiInterface {
83
93
  /**
84
94
  * Creates request options for deleteTenant without sending the request
85
95
  * @param {string} tenantId
96
+ * @param {string} [authorization]
86
97
  * @param {string} [ksUat]
87
98
  * @throws {RequiredError}
88
99
  * @memberof TenantsApiInterface
@@ -92,6 +103,7 @@ export interface TenantsApiInterface {
92
103
  * Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
93
104
  * @summary Delete Tenant
94
105
  * @param {string} tenantId
106
+ * @param {string} [authorization]
95
107
  * @param {string} [ksUat]
96
108
  * @param {*} [options] Override http request option.
97
109
  * @throws {RequiredError}
@@ -107,6 +119,7 @@ export interface TenantsApiInterface {
107
119
  * Creates request options for deleteTenantUser without sending the request
108
120
  * @param {string} tenantId
109
121
  * @param {string} userId
122
+ * @param {string} [authorization]
110
123
  * @param {string} [ksUat]
111
124
  * @throws {RequiredError}
112
125
  * @memberof TenantsApiInterface
@@ -117,6 +130,7 @@ export interface TenantsApiInterface {
117
130
  * @summary Delete Tenant User
118
131
  * @param {string} tenantId
119
132
  * @param {string} userId
133
+ * @param {string} [authorization]
120
134
  * @param {string} [ksUat]
121
135
  * @param {*} [options] Override http request option.
122
136
  * @throws {RequiredError}
@@ -131,6 +145,7 @@ export interface TenantsApiInterface {
131
145
  /**
132
146
  * Creates request options for getTenant without sending the request
133
147
  * @param {string} tenantId
148
+ * @param {string} [authorization]
134
149
  * @param {string} [ksUat]
135
150
  * @throws {RequiredError}
136
151
  * @memberof TenantsApiInterface
@@ -140,6 +155,7 @@ export interface TenantsApiInterface {
140
155
  * Get tenant information by ID. User must be a member of the tenant.
141
156
  * @summary Get Tenant
142
157
  * @param {string} tenantId
158
+ * @param {string} [authorization]
143
159
  * @param {string} [ksUat]
144
160
  * @param {*} [options] Override http request option.
145
161
  * @throws {RequiredError}
@@ -156,6 +172,7 @@ export interface TenantsApiInterface {
156
172
  * @param {string} tenantId
157
173
  * @param {number} [limit] Number of items per page
158
174
  * @param {number} [offset] Number of items to skip
175
+ * @param {string} [authorization]
159
176
  * @param {string} [ksUat]
160
177
  * @throws {RequiredError}
161
178
  * @memberof TenantsApiInterface
@@ -167,6 +184,7 @@ export interface TenantsApiInterface {
167
184
  * @param {string} tenantId
168
185
  * @param {number} [limit] Number of items per page
169
186
  * @param {number} [offset] Number of items to skip
187
+ * @param {string} [authorization]
170
188
  * @param {string} [ksUat]
171
189
  * @param {*} [options] Override http request option.
172
190
  * @throws {RequiredError}
@@ -182,6 +200,7 @@ export interface TenantsApiInterface {
182
200
  * Creates request options for listTenants without sending the request
183
201
  * @param {number} [limit] Number of items per page
184
202
  * @param {number} [offset] Number of items to skip
203
+ * @param {string} [authorization]
185
204
  * @param {string} [ksUat]
186
205
  * @throws {RequiredError}
187
206
  * @memberof TenantsApiInterface
@@ -192,6 +211,7 @@ export interface TenantsApiInterface {
192
211
  * @summary List Tenants
193
212
  * @param {number} [limit] Number of items per page
194
213
  * @param {number} [offset] Number of items to skip
214
+ * @param {string} [authorization]
195
215
  * @param {string} [ksUat]
196
216
  * @param {*} [options] Override http request option.
197
217
  * @throws {RequiredError}
@@ -207,6 +227,7 @@ export interface TenantsApiInterface {
207
227
  * Creates request options for updateTenant without sending the request
208
228
  * @param {string} tenantId
209
229
  * @param {UpdateTenantRequest} updateTenantRequest
230
+ * @param {string} [authorization]
210
231
  * @param {string} [ksUat]
211
232
  * @throws {RequiredError}
212
233
  * @memberof TenantsApiInterface
@@ -217,6 +238,7 @@ export interface TenantsApiInterface {
217
238
  * @summary Update Tenant
218
239
  * @param {string} tenantId
219
240
  * @param {UpdateTenantRequest} updateTenantRequest
241
+ * @param {string} [authorization]
220
242
  * @param {string} [ksUat]
221
243
  * @param {*} [options] Override http request option.
222
244
  * @throws {RequiredError}
@@ -233,6 +255,7 @@ export interface TenantsApiInterface {
233
255
  * @param {string} tenantId
234
256
  * @param {string} userId
235
257
  * @param {TenantUserEditRequest} tenantUserEditRequest
258
+ * @param {string} [authorization]
236
259
  * @param {string} [ksUat]
237
260
  * @throws {RequiredError}
238
261
  * @memberof TenantsApiInterface
@@ -244,6 +267,7 @@ export interface TenantsApiInterface {
244
267
  * @param {string} tenantId
245
268
  * @param {string} userId
246
269
  * @param {TenantUserEditRequest} tenantUserEditRequest
270
+ * @param {string} [authorization]
247
271
  * @param {string} [ksUat]
248
272
  * @param {*} [options] Override http request option.
249
273
  * @throws {RequiredError}
@@ -37,6 +37,9 @@ export class TenantsApi 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/tenants`;
41
44
  return {
42
45
  path: urlPath,
@@ -78,6 +81,9 @@ export class TenantsApi 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/tenants/{tenant_id}`;
82
88
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
83
89
  return {
@@ -121,6 +127,9 @@ export class TenantsApi extends runtime.BaseAPI {
121
127
  }
122
128
  const queryParameters = {};
123
129
  const headerParameters = {};
130
+ if (requestParameters['authorization'] != null) {
131
+ headerParameters['authorization'] = String(requestParameters['authorization']);
132
+ }
124
133
  let urlPath = `/v1/tenants/{tenant_id}/users/{user_id}`;
125
134
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
126
135
  urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
@@ -162,6 +171,9 @@ export class TenantsApi extends runtime.BaseAPI {
162
171
  }
163
172
  const queryParameters = {};
164
173
  const headerParameters = {};
174
+ if (requestParameters['authorization'] != null) {
175
+ headerParameters['authorization'] = String(requestParameters['authorization']);
176
+ }
165
177
  let urlPath = `/v1/tenants/{tenant_id}`;
166
178
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
167
179
  return {
@@ -209,6 +221,9 @@ export class TenantsApi extends runtime.BaseAPI {
209
221
  queryParameters['offset'] = requestParameters['offset'];
210
222
  }
211
223
  const headerParameters = {};
224
+ if (requestParameters['authorization'] != null) {
225
+ headerParameters['authorization'] = String(requestParameters['authorization']);
226
+ }
212
227
  let urlPath = `/v1/tenants/{tenant_id}/users`;
213
228
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
214
229
  return {
@@ -253,6 +268,9 @@ export class TenantsApi extends runtime.BaseAPI {
253
268
  queryParameters['offset'] = requestParameters['offset'];
254
269
  }
255
270
  const headerParameters = {};
271
+ if (requestParameters['authorization'] != null) {
272
+ headerParameters['authorization'] = String(requestParameters['authorization']);
273
+ }
256
274
  let urlPath = `/v1/tenants`;
257
275
  return {
258
276
  path: urlPath,
@@ -297,6 +315,9 @@ export class TenantsApi extends runtime.BaseAPI {
297
315
  const queryParameters = {};
298
316
  const headerParameters = {};
299
317
  headerParameters['Content-Type'] = 'application/json';
318
+ if (requestParameters['authorization'] != null) {
319
+ headerParameters['authorization'] = String(requestParameters['authorization']);
320
+ }
300
321
  let urlPath = `/v1/tenants/{tenant_id}`;
301
322
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
302
323
  return {
@@ -346,6 +367,9 @@ export class TenantsApi extends runtime.BaseAPI {
346
367
  const queryParameters = {};
347
368
  const headerParameters = {};
348
369
  headerParameters['Content-Type'] = 'application/json';
370
+ if (requestParameters['authorization'] != null) {
371
+ headerParameters['authorization'] = String(requestParameters['authorization']);
372
+ }
349
373
  let urlPath = `/v1/tenants/{tenant_id}/users/{user_id}`;
350
374
  urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
351
375
  urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
@@ -14,12 +14,14 @@ import type { CreateThreadMessageRequest, PaginatedResponseThreadMessageResponse
14
14
  export interface CreateThreadMessageOperationRequest {
15
15
  threadId: string;
16
16
  createThreadMessageRequest: CreateThreadMessageRequest;
17
+ authorization?: string | null;
17
18
  ksUat?: string | null;
18
19
  }
19
20
  export interface GetThreadMessageRequest {
20
21
  threadId: string;
21
22
  messageId: string;
22
23
  withDetails?: boolean;
24
+ authorization?: string | null;
23
25
  ksUat?: string | null;
24
26
  }
25
27
  export interface ListThreadMessagesRequest {
@@ -28,6 +30,7 @@ export interface ListThreadMessagesRequest {
28
30
  withDetails?: boolean;
29
31
  limit?: number;
30
32
  offset?: number;
33
+ authorization?: string | null;
31
34
  ksUat?: string | null;
32
35
  }
33
36
  /**
@@ -41,6 +44,7 @@ export interface ThreadMessagesApiInterface {
41
44
  * Creates request options for createThreadMessage without sending the request
42
45
  * @param {string} threadId
43
46
  * @param {CreateThreadMessageRequest} createThreadMessageRequest
47
+ * @param {string} [authorization]
44
48
  * @param {string} [ksUat]
45
49
  * @throws {RequiredError}
46
50
  * @memberof ThreadMessagesApiInterface
@@ -51,6 +55,7 @@ export interface ThreadMessagesApiInterface {
51
55
  * @summary Create Thread Message Handler
52
56
  * @param {string} threadId
53
57
  * @param {CreateThreadMessageRequest} createThreadMessageRequest
58
+ * @param {string} [authorization]
54
59
  * @param {string} [ksUat]
55
60
  * @param {*} [options] Override http request option.
56
61
  * @throws {RequiredError}
@@ -67,6 +72,7 @@ export interface ThreadMessagesApiInterface {
67
72
  * @param {string} threadId
68
73
  * @param {string} messageId
69
74
  * @param {boolean} [withDetails] Include execution steps in response (default true)
75
+ * @param {string} [authorization]
70
76
  * @param {string} [ksUat]
71
77
  * @throws {RequiredError}
72
78
  * @memberof ThreadMessagesApiInterface
@@ -78,6 +84,7 @@ export interface ThreadMessagesApiInterface {
78
84
  * @param {string} threadId
79
85
  * @param {string} messageId
80
86
  * @param {boolean} [withDetails] Include execution steps in response (default true)
87
+ * @param {string} [authorization]
81
88
  * @param {string} [ksUat]
82
89
  * @param {*} [options] Override http request option.
83
90
  * @throws {RequiredError}
@@ -96,6 +103,7 @@ export interface ThreadMessagesApiInterface {
96
103
  * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
97
104
  * @param {number} [limit] Number of items per page
98
105
  * @param {number} [offset] Number of items to skip
106
+ * @param {string} [authorization]
99
107
  * @param {string} [ksUat]
100
108
  * @throws {RequiredError}
101
109
  * @memberof ThreadMessagesApiInterface
@@ -109,6 +117,7 @@ export interface ThreadMessagesApiInterface {
109
117
  * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
110
118
  * @param {number} [limit] Number of items per page
111
119
  * @param {number} [offset] Number of items to skip
120
+ * @param {string} [authorization]
112
121
  * @param {string} [ksUat]
113
122
  * @param {*} [options] Override http request option.
114
123
  * @throws {RequiredError}
@@ -40,6 +40,9 @@ export class ThreadMessagesApi 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/threads/{thread_id}/messages`;
44
47
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
45
48
  return {
@@ -88,6 +91,9 @@ export class ThreadMessagesApi extends runtime.BaseAPI {
88
91
  queryParameters['with_details'] = requestParameters['withDetails'];
89
92
  }
90
93
  const headerParameters = {};
94
+ if (requestParameters['authorization'] != null) {
95
+ headerParameters['authorization'] = String(requestParameters['authorization']);
96
+ }
91
97
  let urlPath = `/v1/threads/{thread_id}/messages/{message_id}`;
92
98
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
93
99
  urlPath = urlPath.replace(`{${"message_id"}}`, encodeURIComponent(String(requestParameters['messageId'])));
@@ -142,6 +148,9 @@ export class ThreadMessagesApi extends runtime.BaseAPI {
142
148
  queryParameters['offset'] = requestParameters['offset'];
143
149
  }
144
150
  const headerParameters = {};
151
+ if (requestParameters['authorization'] != null) {
152
+ headerParameters['authorization'] = String(requestParameters['authorization']);
153
+ }
145
154
  let urlPath = `/v1/threads/{thread_id}/messages`;
146
155
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
147
156
  return {