@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
@@ -13,36 +13,43 @@ import * as runtime from '../runtime';
13
13
  import type { CreateThreadRequest, PaginatedResponseThreadResponse, ThreadResponse, UpdateThreadRequest, UserMessageRequest, UserMessageResponse } from '../models/index';
14
14
  export interface CreateThreadOperationRequest {
15
15
  createThreadRequest: CreateThreadRequest;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface DeleteThreadRequest {
19
20
  threadId: string;
21
+ authorization?: string | null;
20
22
  ksUat?: string | null;
21
23
  }
22
24
  export interface GetThreadRequest {
23
25
  threadId: string;
26
+ authorization?: string | null;
24
27
  ksUat?: string | null;
25
28
  }
26
29
  export interface ListThreadsRequest {
27
30
  parentPathPartId?: string | null;
28
31
  limit?: number;
29
32
  offset?: number;
33
+ authorization?: string | null;
30
34
  ksUat?: string | null;
31
35
  }
32
36
  export interface SendUserMessageRequest {
33
37
  threadId: string;
34
38
  userMessageRequest: UserMessageRequest;
39
+ authorization?: string | null;
35
40
  ksUat?: string | null;
36
41
  }
37
42
  export interface StreamThreadRequest {
38
43
  threadId: string;
39
44
  lastMessageId?: string | null;
40
45
  lastEntryId?: string | null;
46
+ authorization?: string | null;
41
47
  ksUat?: string | null;
42
48
  }
43
49
  export interface UpdateThreadOperationRequest {
44
50
  threadId: string;
45
51
  updateThreadRequest: UpdateThreadRequest;
52
+ authorization?: string | null;
46
53
  ksUat?: string | null;
47
54
  }
48
55
  /**
@@ -55,6 +62,7 @@ export interface ThreadsApiInterface {
55
62
  /**
56
63
  * Creates request options for createThread without sending the request
57
64
  * @param {CreateThreadRequest} createThreadRequest
65
+ * @param {string} [authorization]
58
66
  * @param {string} [ksUat]
59
67
  * @throws {RequiredError}
60
68
  * @memberof ThreadsApiInterface
@@ -64,6 +72,7 @@ export interface ThreadsApiInterface {
64
72
  * 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).
65
73
  * @summary Create Thread Handler
66
74
  * @param {CreateThreadRequest} createThreadRequest
75
+ * @param {string} [authorization]
67
76
  * @param {string} [ksUat]
68
77
  * @param {*} [options] Override http request option.
69
78
  * @throws {RequiredError}
@@ -78,6 +87,7 @@ export interface ThreadsApiInterface {
78
87
  /**
79
88
  * Creates request options for deleteThread without sending the request
80
89
  * @param {string} threadId
90
+ * @param {string} [authorization]
81
91
  * @param {string} [ksUat]
82
92
  * @throws {RequiredError}
83
93
  * @memberof ThreadsApiInterface
@@ -87,6 +97,7 @@ export interface ThreadsApiInterface {
87
97
  * 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.
88
98
  * @summary Delete Thread Handler
89
99
  * @param {string} threadId
100
+ * @param {string} [authorization]
90
101
  * @param {string} [ksUat]
91
102
  * @param {*} [options] Override http request option.
92
103
  * @throws {RequiredError}
@@ -101,6 +112,7 @@ export interface ThreadsApiInterface {
101
112
  /**
102
113
  * Creates request options for getThread without sending the request
103
114
  * @param {string} threadId
115
+ * @param {string} [authorization]
104
116
  * @param {string} [ksUat]
105
117
  * @throws {RequiredError}
106
118
  * @memberof ThreadsApiInterface
@@ -110,6 +122,7 @@ export interface ThreadsApiInterface {
110
122
  * Get a thread by its thread ID.
111
123
  * @summary Get Thread Handler
112
124
  * @param {string} threadId
125
+ * @param {string} [authorization]
113
126
  * @param {string} [ksUat]
114
127
  * @param {*} [options] Override http request option.
115
128
  * @throws {RequiredError}
@@ -126,6 +139,7 @@ export interface ThreadsApiInterface {
126
139
  * @param {string} [parentPathPartId] Parent PathPart ID. Omit to list user\'s conversation threads.
127
140
  * @param {number} [limit] Number of items per page
128
141
  * @param {number} [offset] Number of items to skip
142
+ * @param {string} [authorization]
129
143
  * @param {string} [ksUat]
130
144
  * @throws {RequiredError}
131
145
  * @memberof ThreadsApiInterface
@@ -137,6 +151,7 @@ export interface ThreadsApiInterface {
137
151
  * @param {string} [parentPathPartId] Parent PathPart ID. Omit to list user\'s conversation threads.
138
152
  * @param {number} [limit] Number of items per page
139
153
  * @param {number} [offset] Number of items to skip
154
+ * @param {string} [authorization]
140
155
  * @param {string} [ksUat]
141
156
  * @param {*} [options] Override http request option.
142
157
  * @throws {RequiredError}
@@ -152,6 +167,7 @@ export interface ThreadsApiInterface {
152
167
  * Creates request options for sendUserMessage without sending the request
153
168
  * @param {string} threadId
154
169
  * @param {UserMessageRequest} userMessageRequest
170
+ * @param {string} [authorization]
155
171
  * @param {string} [ksUat]
156
172
  * @throws {RequiredError}
157
173
  * @memberof ThreadsApiInterface
@@ -162,6 +178,7 @@ export interface ThreadsApiInterface {
162
178
  * @summary Send User Message Handler
163
179
  * @param {string} threadId
164
180
  * @param {UserMessageRequest} userMessageRequest
181
+ * @param {string} [authorization]
165
182
  * @param {string} [ksUat]
166
183
  * @param {*} [options] Override http request option.
167
184
  * @throws {RequiredError}
@@ -178,6 +195,7 @@ export interface ThreadsApiInterface {
178
195
  * @param {string} threadId
179
196
  * @param {string} [lastMessageId]
180
197
  * @param {string} [lastEntryId]
198
+ * @param {string} [authorization]
181
199
  * @param {string} [ksUat]
182
200
  * @throws {RequiredError}
183
201
  * @memberof ThreadsApiInterface
@@ -189,6 +207,7 @@ export interface ThreadsApiInterface {
189
207
  * @param {string} threadId
190
208
  * @param {string} [lastMessageId]
191
209
  * @param {string} [lastEntryId]
210
+ * @param {string} [authorization]
192
211
  * @param {string} [ksUat]
193
212
  * @param {*} [options] Override http request option.
194
213
  * @throws {RequiredError}
@@ -204,6 +223,7 @@ export interface ThreadsApiInterface {
204
223
  * Creates request options for updateThread without sending the request
205
224
  * @param {string} threadId
206
225
  * @param {UpdateThreadRequest} updateThreadRequest
226
+ * @param {string} [authorization]
207
227
  * @param {string} [ksUat]
208
228
  * @throws {RequiredError}
209
229
  * @memberof ThreadsApiInterface
@@ -214,6 +234,7 @@ export interface ThreadsApiInterface {
214
234
  * @summary Update Thread Handler
215
235
  * @param {string} threadId
216
236
  * @param {UpdateThreadRequest} updateThreadRequest
237
+ * @param {string} [authorization]
217
238
  * @param {string} [ksUat]
218
239
  * @param {*} [options] Override http request option.
219
240
  * @throws {RequiredError}
@@ -37,6 +37,9 @@ export class ThreadsApi 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/threads`;
41
44
  return {
42
45
  path: urlPath,
@@ -78,6 +81,9 @@ export class ThreadsApi 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/threads/{thread_id}`;
82
88
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
83
89
  return {
@@ -118,6 +124,9 @@ export class ThreadsApi 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/threads/{thread_id}`;
122
131
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
123
132
  return {
@@ -165,6 +174,9 @@ export class ThreadsApi extends runtime.BaseAPI {
165
174
  queryParameters['offset'] = requestParameters['offset'];
166
175
  }
167
176
  const headerParameters = {};
177
+ if (requestParameters['authorization'] != null) {
178
+ headerParameters['authorization'] = String(requestParameters['authorization']);
179
+ }
168
180
  let urlPath = `/v1/threads`;
169
181
  return {
170
182
  path: urlPath,
@@ -209,6 +221,9 @@ export class ThreadsApi extends runtime.BaseAPI {
209
221
  const queryParameters = {};
210
222
  const headerParameters = {};
211
223
  headerParameters['Content-Type'] = 'application/json';
224
+ if (requestParameters['authorization'] != null) {
225
+ headerParameters['authorization'] = String(requestParameters['authorization']);
226
+ }
212
227
  let urlPath = `/v1/threads/{thread_id}/user_message`;
213
228
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
214
229
  return {
@@ -257,6 +272,9 @@ export class ThreadsApi extends runtime.BaseAPI {
257
272
  queryParameters['last_entry_id'] = requestParameters['lastEntryId'];
258
273
  }
259
274
  const headerParameters = {};
275
+ if (requestParameters['authorization'] != null) {
276
+ headerParameters['authorization'] = String(requestParameters['authorization']);
277
+ }
260
278
  let urlPath = `/v1/threads/{thread_id}/stream`;
261
279
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
262
280
  return {
@@ -301,6 +319,9 @@ export class ThreadsApi extends runtime.BaseAPI {
301
319
  const queryParameters = {};
302
320
  const headerParameters = {};
303
321
  headerParameters['Content-Type'] = 'application/json';
322
+ if (requestParameters['authorization'] != null) {
323
+ headerParameters['authorization'] = String(requestParameters['authorization']);
324
+ }
304
325
  let urlPath = `/v1/threads/{thread_id}`;
305
326
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
306
327
  return {
@@ -13,11 +13,13 @@ import * as runtime from '../runtime';
13
13
  import type { CreatePermissionRequest, PaginatedResponsePermissionResponse, PermissionResponse, UpdatePermissionRequest } from '../models/index';
14
14
  export interface CreateUserPermissionRequest {
15
15
  createPermissionRequest: CreatePermissionRequest;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface DeleteUserPermissionRequest {
19
20
  permissionId: string;
20
21
  tenantId: string;
22
+ authorization?: string | null;
21
23
  ksUat?: string | null;
22
24
  }
23
25
  export interface ListUserPermissionsRequest {
@@ -25,12 +27,14 @@ export interface ListUserPermissionsRequest {
25
27
  userId: string;
26
28
  limit?: number;
27
29
  offset?: number;
30
+ authorization?: string | null;
28
31
  ksUat?: string | null;
29
32
  }
30
33
  export interface UpdateUserPermissionRequest {
31
34
  permissionId: string;
32
35
  tenantId: string;
33
36
  updatePermissionRequest: UpdatePermissionRequest;
37
+ authorization?: string | null;
34
38
  ksUat?: string | null;
35
39
  }
36
40
  /**
@@ -43,6 +47,7 @@ export interface UserPermissionsApiInterface {
43
47
  /**
44
48
  * Creates request options for createUserPermission without sending the request
45
49
  * @param {CreatePermissionRequest} createPermissionRequest
50
+ * @param {string} [authorization]
46
51
  * @param {string} [ksUat]
47
52
  * @throws {RequiredError}
48
53
  * @memberof UserPermissionsApiInterface
@@ -52,6 +57,7 @@ export interface UserPermissionsApiInterface {
52
57
  * Create a path permission for a user in a tenant (admin/owner only).
53
58
  * @summary Create User Permission Handler
54
59
  * @param {CreatePermissionRequest} createPermissionRequest
60
+ * @param {string} [authorization]
55
61
  * @param {string} [ksUat]
56
62
  * @param {*} [options] Override http request option.
57
63
  * @throws {RequiredError}
@@ -67,6 +73,7 @@ export interface UserPermissionsApiInterface {
67
73
  * Creates request options for deleteUserPermission without sending the request
68
74
  * @param {string} permissionId
69
75
  * @param {string} tenantId Tenant ID the permission belongs to
76
+ * @param {string} [authorization]
70
77
  * @param {string} [ksUat]
71
78
  * @throws {RequiredError}
72
79
  * @memberof UserPermissionsApiInterface
@@ -77,6 +84,7 @@ export interface UserPermissionsApiInterface {
77
84
  * @summary Delete User Permission Handler
78
85
  * @param {string} permissionId
79
86
  * @param {string} tenantId Tenant ID the permission belongs to
87
+ * @param {string} [authorization]
80
88
  * @param {string} [ksUat]
81
89
  * @param {*} [options] Override http request option.
82
90
  * @throws {RequiredError}
@@ -94,6 +102,7 @@ export interface UserPermissionsApiInterface {
94
102
  * @param {string} userId User ID to list permissions for
95
103
  * @param {number} [limit] Number of items per page
96
104
  * @param {number} [offset] Number of items to skip
105
+ * @param {string} [authorization]
97
106
  * @param {string} [ksUat]
98
107
  * @throws {RequiredError}
99
108
  * @memberof UserPermissionsApiInterface
@@ -106,6 +115,7 @@ export interface UserPermissionsApiInterface {
106
115
  * @param {string} userId User ID to list permissions for
107
116
  * @param {number} [limit] Number of items per page
108
117
  * @param {number} [offset] Number of items to skip
118
+ * @param {string} [authorization]
109
119
  * @param {string} [ksUat]
110
120
  * @param {*} [options] Override http request option.
111
121
  * @throws {RequiredError}
@@ -122,6 +132,7 @@ export interface UserPermissionsApiInterface {
122
132
  * @param {string} permissionId
123
133
  * @param {string} tenantId Tenant ID the permission belongs to
124
134
  * @param {UpdatePermissionRequest} updatePermissionRequest
135
+ * @param {string} [authorization]
125
136
  * @param {string} [ksUat]
126
137
  * @throws {RequiredError}
127
138
  * @memberof UserPermissionsApiInterface
@@ -133,6 +144,7 @@ export interface UserPermissionsApiInterface {
133
144
  * @param {string} permissionId
134
145
  * @param {string} tenantId Tenant ID the permission belongs to
135
146
  * @param {UpdatePermissionRequest} updatePermissionRequest
147
+ * @param {string} [authorization]
136
148
  * @param {string} [ksUat]
137
149
  * @param {*} [options] Override http request option.
138
150
  * @throws {RequiredError}
@@ -37,6 +37,9 @@ export class UserPermissionsApi 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/user-permissions`;
41
44
  return {
42
45
  path: urlPath,
@@ -84,6 +87,9 @@ export class UserPermissionsApi extends runtime.BaseAPI {
84
87
  queryParameters['tenant_id'] = requestParameters['tenantId'];
85
88
  }
86
89
  const headerParameters = {};
90
+ if (requestParameters['authorization'] != null) {
91
+ headerParameters['authorization'] = String(requestParameters['authorization']);
92
+ }
87
93
  let urlPath = `/v1/user-permissions/{permission_id}`;
88
94
  urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
89
95
  return {
@@ -139,6 +145,9 @@ export class UserPermissionsApi extends runtime.BaseAPI {
139
145
  queryParameters['offset'] = requestParameters['offset'];
140
146
  }
141
147
  const headerParameters = {};
148
+ if (requestParameters['authorization'] != null) {
149
+ headerParameters['authorization'] = String(requestParameters['authorization']);
150
+ }
142
151
  let urlPath = `/v1/user-permissions`;
143
152
  return {
144
153
  path: urlPath,
@@ -189,6 +198,9 @@ export class UserPermissionsApi extends runtime.BaseAPI {
189
198
  }
190
199
  const headerParameters = {};
191
200
  headerParameters['Content-Type'] = 'application/json';
201
+ if (requestParameters['authorization'] != null) {
202
+ headerParameters['authorization'] = String(requestParameters['authorization']);
203
+ }
192
204
  let urlPath = `/v1/user-permissions/{permission_id}`;
193
205
  urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
194
206
  return {
@@ -12,10 +12,12 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { UpdateUserRequest, UserResponse } from '../models/index';
14
14
  export interface GetMeRequest {
15
+ authorization?: string | null;
15
16
  ksUat?: string | null;
16
17
  }
17
18
  export interface UpdateMeRequest {
18
19
  updateUserRequest: UpdateUserRequest;
20
+ authorization?: string | null;
19
21
  ksUat?: string | null;
20
22
  }
21
23
  /**
@@ -27,6 +29,7 @@ export interface UpdateMeRequest {
27
29
  export interface UsersApiInterface {
28
30
  /**
29
31
  * Creates request options for getMe without sending the request
32
+ * @param {string} [authorization]
30
33
  * @param {string} [ksUat]
31
34
  * @throws {RequiredError}
32
35
  * @memberof UsersApiInterface
@@ -35,6 +38,7 @@ export interface UsersApiInterface {
35
38
  /**
36
39
  * Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
37
40
  * @summary Get Me Handler
41
+ * @param {string} [authorization]
38
42
  * @param {string} [ksUat]
39
43
  * @param {*} [options] Override http request option.
40
44
  * @throws {RequiredError}
@@ -49,6 +53,7 @@ export interface UsersApiInterface {
49
53
  /**
50
54
  * Creates request options for updateMe without sending the request
51
55
  * @param {UpdateUserRequest} updateUserRequest
56
+ * @param {string} [authorization]
52
57
  * @param {string} [ksUat]
53
58
  * @throws {RequiredError}
54
59
  * @memberof UsersApiInterface
@@ -58,6 +63,7 @@ export interface UsersApiInterface {
58
63
  * Update the user\'s default tenant. The user must belong to the specified tenant.
59
64
  * @summary Update Me Handler
60
65
  * @param {UpdateUserRequest} updateUserRequest
66
+ * @param {string} [authorization]
61
67
  * @param {string} [ksUat]
62
68
  * @param {*} [options] Override http request option.
63
69
  * @throws {RequiredError}
@@ -33,6 +33,9 @@ export class UsersApi extends runtime.BaseAPI {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  const queryParameters = {};
35
35
  const headerParameters = {};
36
+ if (requestParameters['authorization'] != null) {
37
+ headerParameters['authorization'] = String(requestParameters['authorization']);
38
+ }
36
39
  let urlPath = `/v1/users/me`;
37
40
  return {
38
41
  path: urlPath,
@@ -74,6 +77,9 @@ export class UsersApi extends runtime.BaseAPI {
74
77
  const queryParameters = {};
75
78
  const headerParameters = {};
76
79
  headerParameters['Content-Type'] = 'application/json';
80
+ if (requestParameters['authorization'] != null) {
81
+ headerParameters['authorization'] = String(requestParameters['authorization']);
82
+ }
77
83
  let urlPath = `/v1/users`;
78
84
  return {
79
85
  path: urlPath,
@@ -13,16 +13,19 @@ import * as runtime from '../runtime';
13
13
  import type { PaginatedResponseWorkflowSummaryResponse, WorkflowAction, WorkflowActionResponse, WorkflowDetailResponse } from '../models/index';
14
14
  export interface GetWorkflowRequest {
15
15
  workflowId: string;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface ListWorkflowsRequest {
19
20
  limit?: number;
20
21
  offset?: number;
22
+ authorization?: string | null;
21
23
  ksUat?: string | null;
22
24
  }
23
25
  export interface WorkflowActionRequest {
24
26
  workflowId: string;
25
27
  action: WorkflowAction;
28
+ authorization?: string | null;
26
29
  ksUat?: string | null;
27
30
  }
28
31
  /**
@@ -35,6 +38,7 @@ export interface WorkflowsApiInterface {
35
38
  /**
36
39
  * Creates request options for getWorkflow without sending the request
37
40
  * @param {string} workflowId
41
+ * @param {string} [authorization]
38
42
  * @param {string} [ksUat]
39
43
  * @throws {RequiredError}
40
44
  * @memberof WorkflowsApiInterface
@@ -44,6 +48,7 @@ export interface WorkflowsApiInterface {
44
48
  * Get single workflow detail with live Temporal status.
45
49
  * @summary Get Workflow Handler
46
50
  * @param {string} workflowId
51
+ * @param {string} [authorization]
47
52
  * @param {string} [ksUat]
48
53
  * @param {*} [options] Override http request option.
49
54
  * @throws {RequiredError}
@@ -59,6 +64,7 @@ export interface WorkflowsApiInterface {
59
64
  * Creates request options for listWorkflows without sending the request
60
65
  * @param {number} [limit] Number of items per page
61
66
  * @param {number} [offset] Number of items to skip
67
+ * @param {string} [authorization]
62
68
  * @param {string} [ksUat]
63
69
  * @throws {RequiredError}
64
70
  * @memberof WorkflowsApiInterface
@@ -69,6 +75,7 @@ export interface WorkflowsApiInterface {
69
75
  * @summary List Workflows Handler
70
76
  * @param {number} [limit] Number of items per page
71
77
  * @param {number} [offset] Number of items to skip
78
+ * @param {string} [authorization]
72
79
  * @param {string} [ksUat]
73
80
  * @param {*} [options] Override http request option.
74
81
  * @throws {RequiredError}
@@ -84,6 +91,7 @@ export interface WorkflowsApiInterface {
84
91
  * Creates request options for workflowAction without sending the request
85
92
  * @param {string} workflowId
86
93
  * @param {WorkflowAction} action Action to perform
94
+ * @param {string} [authorization]
87
95
  * @param {string} [ksUat]
88
96
  * @throws {RequiredError}
89
97
  * @memberof WorkflowsApiInterface
@@ -94,6 +102,7 @@ export interface WorkflowsApiInterface {
94
102
  * @summary Workflow Action Handler
95
103
  * @param {string} workflowId
96
104
  * @param {WorkflowAction} action Action to perform
105
+ * @param {string} [authorization]
97
106
  * @param {string} [ksUat]
98
107
  * @param {*} [options] Override http request option.
99
108
  * @throws {RequiredError}
@@ -36,6 +36,9 @@ export class WorkflowsApi extends runtime.BaseAPI {
36
36
  }
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
+ if (requestParameters['authorization'] != null) {
40
+ headerParameters['authorization'] = String(requestParameters['authorization']);
41
+ }
39
42
  let urlPath = `/v1/workflows/{workflow_id}`;
40
43
  urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
41
44
  return {
@@ -80,6 +83,9 @@ export class WorkflowsApi extends runtime.BaseAPI {
80
83
  queryParameters['offset'] = requestParameters['offset'];
81
84
  }
82
85
  const headerParameters = {};
86
+ if (requestParameters['authorization'] != null) {
87
+ headerParameters['authorization'] = String(requestParameters['authorization']);
88
+ }
83
89
  let urlPath = `/v1/workflows`;
84
90
  return {
85
91
  path: urlPath,
@@ -126,6 +132,9 @@ export class WorkflowsApi extends runtime.BaseAPI {
126
132
  queryParameters['action'] = requestParameters['action'];
127
133
  }
128
134
  const headerParameters = {};
135
+ if (requestParameters['authorization'] != null) {
136
+ headerParameters['authorization'] = String(requestParameters['authorization']);
137
+ }
129
138
  let urlPath = `/v1/workflows/{workflow_id}`;
130
139
  urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
131
140
  return {
@@ -1,3 +1,4 @@
1
+ export * from './ApiKeysApi';
1
2
  export * from './AuthApi';
2
3
  export * from './ChunkLineagesApi';
3
4
  export * from './ChunksApi';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ApiKeysApi';
3
4
  export * from './AuthApi';
4
5
  export * from './ChunkLineagesApi';
5
6
  export * from './ChunksApi';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * API key metadata (without the secret key).
14
+ * @export
15
+ * @interface ApiKeyResponse
16
+ */
17
+ export interface ApiKeyResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiKeyResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiKeyResponse
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiKeyResponse
34
+ */
35
+ keySuffix: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof ApiKeyResponse
40
+ */
41
+ createdAt: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ApiKeyResponse interface.
45
+ */
46
+ export declare function instanceOfApiKeyResponse(value: object): value is ApiKeyResponse;
47
+ export declare function ApiKeyResponseFromJSON(json: any): ApiKeyResponse;
48
+ export declare function ApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyResponse;
49
+ export declare function ApiKeyResponseToJSON(json: any): ApiKeyResponse;
50
+ export declare function ApiKeyResponseToJSONTyped(value?: ApiKeyResponse | null, ignoreDiscriminator?: boolean): any;
51
+ export declare const ApiKeyResponsePropertyValidationAttributesMap: {
52
+ [property: string]: {
53
+ maxLength?: number;
54
+ minLength?: number;
55
+ pattern?: string;
56
+ maximum?: number;
57
+ exclusiveMaximum?: boolean;
58
+ minimum?: number;
59
+ exclusiveMinimum?: boolean;
60
+ multipleOf?: number;
61
+ maxItems?: number;
62
+ minItems?: number;
63
+ uniqueItems?: boolean;
64
+ };
65
+ };
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ApiKeyResponse interface.
16
+ */
17
+ export function instanceOfApiKeyResponse(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('keySuffix' in value) || value['keySuffix'] === undefined)
23
+ return false;
24
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function ApiKeyResponseFromJSON(json) {
29
+ return ApiKeyResponseFromJSONTyped(json, false);
30
+ }
31
+ export function ApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'name': json['name'],
38
+ 'keySuffix': json['key_suffix'],
39
+ 'createdAt': (new Date(json['created_at'])),
40
+ };
41
+ }
42
+ export function ApiKeyResponseToJSON(json) {
43
+ return ApiKeyResponseToJSONTyped(json, false);
44
+ }
45
+ export function ApiKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'id': value['id'],
51
+ 'name': value['name'],
52
+ 'key_suffix': value['keySuffix'],
53
+ 'created_at': value['createdAt'].toISOString(),
54
+ };
55
+ }
56
+ export const ApiKeyResponsePropertyValidationAttributesMap = {};