@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.
- package/.openapi-generator/FILES +8 -0
- package/README.md +18 -9
- package/dist/apis/ApiKeysApi.d.ts +187 -0
- package/dist/apis/ApiKeysApi.js +193 -0
- package/dist/apis/AuthApi.d.ts +6 -0
- package/dist/apis/AuthApi.js +6 -0
- package/dist/apis/ChunkLineagesApi.d.ts +9 -0
- package/dist/apis/ChunkLineagesApi.js +9 -0
- package/dist/apis/ChunksApi.d.ts +24 -0
- package/dist/apis/ChunksApi.js +24 -0
- package/dist/apis/DocumentVersionsApi.d.ts +21 -0
- package/dist/apis/DocumentVersionsApi.js +21 -0
- package/dist/apis/DocumentsApi.d.ts +21 -0
- package/dist/apis/DocumentsApi.js +21 -0
- package/dist/apis/FoldersApi.d.ts +21 -0
- package/dist/apis/FoldersApi.js +21 -0
- package/dist/apis/InvitesApi.d.ts +12 -0
- package/dist/apis/InvitesApi.js +12 -0
- package/dist/apis/PathPartsApi.d.ts +18 -0
- package/dist/apis/PathPartsApi.js +18 -0
- package/dist/apis/SectionsApi.d.ts +12 -0
- package/dist/apis/SectionsApi.js +12 -0
- package/dist/apis/TagsApi.d.ts +15 -0
- package/dist/apis/TagsApi.js +15 -0
- package/dist/apis/TenantsApi.d.ts +24 -0
- package/dist/apis/TenantsApi.js +24 -0
- package/dist/apis/ThreadMessagesApi.d.ts +9 -0
- package/dist/apis/ThreadMessagesApi.js +9 -0
- package/dist/apis/ThreadsApi.d.ts +21 -0
- package/dist/apis/ThreadsApi.js +21 -0
- package/dist/apis/UserPermissionsApi.d.ts +12 -0
- package/dist/apis/UserPermissionsApi.js +12 -0
- package/dist/apis/UsersApi.d.ts +6 -0
- package/dist/apis/UsersApi.js +6 -0
- package/dist/apis/WorkflowsApi.d.ts +9 -0
- package/dist/apis/WorkflowsApi.js +9 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ApiKeysApi.d.ts +187 -0
- package/dist/esm/apis/ApiKeysApi.js +189 -0
- package/dist/esm/apis/AuthApi.d.ts +6 -0
- package/dist/esm/apis/AuthApi.js +6 -0
- package/dist/esm/apis/ChunkLineagesApi.d.ts +9 -0
- package/dist/esm/apis/ChunkLineagesApi.js +9 -0
- package/dist/esm/apis/ChunksApi.d.ts +24 -0
- package/dist/esm/apis/ChunksApi.js +24 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +21 -0
- package/dist/esm/apis/DocumentVersionsApi.js +21 -0
- package/dist/esm/apis/DocumentsApi.d.ts +21 -0
- package/dist/esm/apis/DocumentsApi.js +21 -0
- package/dist/esm/apis/FoldersApi.d.ts +21 -0
- package/dist/esm/apis/FoldersApi.js +21 -0
- package/dist/esm/apis/InvitesApi.d.ts +12 -0
- package/dist/esm/apis/InvitesApi.js +12 -0
- package/dist/esm/apis/PathPartsApi.d.ts +18 -0
- package/dist/esm/apis/PathPartsApi.js +18 -0
- package/dist/esm/apis/SectionsApi.d.ts +12 -0
- package/dist/esm/apis/SectionsApi.js +12 -0
- package/dist/esm/apis/TagsApi.d.ts +15 -0
- package/dist/esm/apis/TagsApi.js +15 -0
- package/dist/esm/apis/TenantsApi.d.ts +24 -0
- package/dist/esm/apis/TenantsApi.js +24 -0
- package/dist/esm/apis/ThreadMessagesApi.d.ts +9 -0
- package/dist/esm/apis/ThreadMessagesApi.js +9 -0
- package/dist/esm/apis/ThreadsApi.d.ts +21 -0
- package/dist/esm/apis/ThreadsApi.js +21 -0
- package/dist/esm/apis/UserPermissionsApi.d.ts +12 -0
- package/dist/esm/apis/UserPermissionsApi.js +12 -0
- package/dist/esm/apis/UsersApi.d.ts +6 -0
- package/dist/esm/apis/UsersApi.js +6 -0
- package/dist/esm/apis/WorkflowsApi.d.ts +9 -0
- package/dist/esm/apis/WorkflowsApi.js +9 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ApiKeyResponse.d.ts +65 -0
- package/dist/esm/models/ApiKeyResponse.js +56 -0
- package/dist/esm/models/CreateApiKeyRequest.d.ts +47 -0
- package/dist/esm/models/CreateApiKeyRequest.js +49 -0
- package/dist/esm/models/CreateApiKeyResponse.d.ts +71 -0
- package/dist/esm/models/CreateApiKeyResponse.js +60 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/ApiKeyResponse.d.ts +65 -0
- package/dist/models/ApiKeyResponse.js +64 -0
- package/dist/models/CreateApiKeyRequest.d.ts +47 -0
- package/dist/models/CreateApiKeyRequest.js +57 -0
- package/dist/models/CreateApiKeyResponse.d.ts +71 -0
- package/dist/models/CreateApiKeyResponse.js +68 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/ApiKeyResponse.md +41 -0
- package/docs/ApiKeysApi.md +293 -0
- package/docs/AuthApi.md +8 -2
- package/docs/ChunkLineagesApi.md +12 -3
- package/docs/ChunksApi.md +32 -8
- package/docs/CreateApiKeyRequest.md +35 -0
- package/docs/CreateApiKeyResponse.md +43 -0
- package/docs/DocumentVersionsApi.md +28 -7
- package/docs/DocumentsApi.md +28 -7
- package/docs/FoldersApi.md +28 -7
- package/docs/InvitesApi.md +16 -4
- package/docs/PathPartsApi.md +24 -6
- package/docs/SectionsApi.md +16 -4
- package/docs/TagsApi.md +20 -5
- package/docs/TenantsApi.md +32 -8
- package/docs/ThreadMessagesApi.md +12 -3
- package/docs/ThreadsApi.md +28 -7
- package/docs/UserPermissionsApi.md +16 -4
- package/docs/UsersApi.md +8 -2
- package/docs/WorkflowsApi.md +12 -3
- package/package.json +1 -1
- package/src/apis/ApiKeysApi.ts +350 -0
- package/src/apis/AuthApi.ts +14 -0
- package/src/apis/ChunkLineagesApi.ts +21 -0
- package/src/apis/ChunksApi.ts +56 -0
- package/src/apis/DocumentVersionsApi.ts +49 -0
- package/src/apis/DocumentsApi.ts +49 -0
- package/src/apis/FoldersApi.ts +49 -0
- package/src/apis/InvitesApi.ts +28 -0
- package/src/apis/PathPartsApi.ts +42 -0
- package/src/apis/SectionsApi.ts +28 -0
- package/src/apis/TagsApi.ts +35 -0
- package/src/apis/TenantsApi.ts +56 -0
- package/src/apis/ThreadMessagesApi.ts +21 -0
- package/src/apis/ThreadsApi.ts +49 -0
- package/src/apis/UserPermissionsApi.ts +28 -0
- package/src/apis/UsersApi.ts +14 -0
- package/src/apis/WorkflowsApi.ts +21 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ApiKeyResponse.ts +110 -0
- package/src/models/CreateApiKeyRequest.ts +87 -0
- package/src/models/CreateApiKeyResponse.ts +119 -0
- package/src/models/index.ts +3 -0
|
@@ -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}
|
package/dist/apis/ThreadsApi.js
CHANGED
|
@@ -40,6 +40,9 @@ class ThreadsApi 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`;
|
|
44
47
|
return {
|
|
45
48
|
path: urlPath,
|
|
@@ -81,6 +84,9 @@ class ThreadsApi extends runtime.BaseAPI {
|
|
|
81
84
|
}
|
|
82
85
|
const queryParameters = {};
|
|
83
86
|
const headerParameters = {};
|
|
87
|
+
if (requestParameters['authorization'] != null) {
|
|
88
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
89
|
+
}
|
|
84
90
|
let urlPath = `/v1/threads/{thread_id}`;
|
|
85
91
|
urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
|
|
86
92
|
return {
|
|
@@ -121,6 +127,9 @@ class ThreadsApi 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/threads/{thread_id}`;
|
|
125
134
|
urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
|
|
126
135
|
return {
|
|
@@ -168,6 +177,9 @@ class ThreadsApi extends runtime.BaseAPI {
|
|
|
168
177
|
queryParameters['offset'] = requestParameters['offset'];
|
|
169
178
|
}
|
|
170
179
|
const headerParameters = {};
|
|
180
|
+
if (requestParameters['authorization'] != null) {
|
|
181
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
182
|
+
}
|
|
171
183
|
let urlPath = `/v1/threads`;
|
|
172
184
|
return {
|
|
173
185
|
path: urlPath,
|
|
@@ -212,6 +224,9 @@ class ThreadsApi extends runtime.BaseAPI {
|
|
|
212
224
|
const queryParameters = {};
|
|
213
225
|
const headerParameters = {};
|
|
214
226
|
headerParameters['Content-Type'] = 'application/json';
|
|
227
|
+
if (requestParameters['authorization'] != null) {
|
|
228
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
229
|
+
}
|
|
215
230
|
let urlPath = `/v1/threads/{thread_id}/user_message`;
|
|
216
231
|
urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
|
|
217
232
|
return {
|
|
@@ -260,6 +275,9 @@ class ThreadsApi extends runtime.BaseAPI {
|
|
|
260
275
|
queryParameters['last_entry_id'] = requestParameters['lastEntryId'];
|
|
261
276
|
}
|
|
262
277
|
const headerParameters = {};
|
|
278
|
+
if (requestParameters['authorization'] != null) {
|
|
279
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
280
|
+
}
|
|
263
281
|
let urlPath = `/v1/threads/{thread_id}/stream`;
|
|
264
282
|
urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
|
|
265
283
|
return {
|
|
@@ -304,6 +322,9 @@ class ThreadsApi extends runtime.BaseAPI {
|
|
|
304
322
|
const queryParameters = {};
|
|
305
323
|
const headerParameters = {};
|
|
306
324
|
headerParameters['Content-Type'] = 'application/json';
|
|
325
|
+
if (requestParameters['authorization'] != null) {
|
|
326
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
327
|
+
}
|
|
307
328
|
let urlPath = `/v1/threads/{thread_id}`;
|
|
308
329
|
urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
|
|
309
330
|
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}
|
|
@@ -40,6 +40,9 @@ class UserPermissionsApi 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/user-permissions`;
|
|
44
47
|
return {
|
|
45
48
|
path: urlPath,
|
|
@@ -87,6 +90,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
87
90
|
queryParameters['tenant_id'] = requestParameters['tenantId'];
|
|
88
91
|
}
|
|
89
92
|
const headerParameters = {};
|
|
93
|
+
if (requestParameters['authorization'] != null) {
|
|
94
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
95
|
+
}
|
|
90
96
|
let urlPath = `/v1/user-permissions/{permission_id}`;
|
|
91
97
|
urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
|
|
92
98
|
return {
|
|
@@ -142,6 +148,9 @@ class UserPermissionsApi 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/user-permissions`;
|
|
146
155
|
return {
|
|
147
156
|
path: urlPath,
|
|
@@ -192,6 +201,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
192
201
|
}
|
|
193
202
|
const headerParameters = {};
|
|
194
203
|
headerParameters['Content-Type'] = 'application/json';
|
|
204
|
+
if (requestParameters['authorization'] != null) {
|
|
205
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
206
|
+
}
|
|
195
207
|
let urlPath = `/v1/user-permissions/{permission_id}`;
|
|
196
208
|
urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
|
|
197
209
|
return {
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -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}
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -36,6 +36,9 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
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/users/me`;
|
|
40
43
|
return {
|
|
41
44
|
path: urlPath,
|
|
@@ -77,6 +80,9 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
77
80
|
const queryParameters = {};
|
|
78
81
|
const headerParameters = {};
|
|
79
82
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
+
if (requestParameters['authorization'] != null) {
|
|
84
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
85
|
+
}
|
|
80
86
|
let urlPath = `/v1/users`;
|
|
81
87
|
return {
|
|
82
88
|
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}
|
|
@@ -39,6 +39,9 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
39
39
|
}
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
|
+
if (requestParameters['authorization'] != null) {
|
|
43
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
44
|
+
}
|
|
42
45
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
43
46
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
44
47
|
return {
|
|
@@ -83,6 +86,9 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
83
86
|
queryParameters['offset'] = requestParameters['offset'];
|
|
84
87
|
}
|
|
85
88
|
const headerParameters = {};
|
|
89
|
+
if (requestParameters['authorization'] != null) {
|
|
90
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
91
|
+
}
|
|
86
92
|
let urlPath = `/v1/workflows`;
|
|
87
93
|
return {
|
|
88
94
|
path: urlPath,
|
|
@@ -129,6 +135,9 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
129
135
|
queryParameters['action'] = requestParameters['action'];
|
|
130
136
|
}
|
|
131
137
|
const headerParameters = {};
|
|
138
|
+
if (requestParameters['authorization'] != null) {
|
|
139
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
140
|
+
}
|
|
132
141
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
133
142
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
134
143
|
return {
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ApiKeysApi"), exports);
|
|
19
20
|
__exportStar(require("./AuthApi"), exports);
|
|
20
21
|
__exportStar(require("./ChunkLineagesApi"), exports);
|
|
21
22
|
__exportStar(require("./ChunksApi"), exports);
|