@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.
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
docs/AcceptInviteResponse.md
|
|
6
|
+
docs/ApiKeyResponse.md
|
|
7
|
+
docs/ApiKeysApi.md
|
|
6
8
|
docs/Args.md
|
|
7
9
|
docs/AuthApi.md
|
|
8
10
|
docs/BulkTagRequest.md
|
|
@@ -18,6 +20,8 @@ docs/ChunkType.md
|
|
|
18
20
|
docs/ChunksApi.md
|
|
19
21
|
docs/Citation.md
|
|
20
22
|
docs/ClearVersionContentsResponse.md
|
|
23
|
+
docs/CreateApiKeyRequest.md
|
|
24
|
+
docs/CreateApiKeyResponse.md
|
|
21
25
|
docs/CreateChunkLineageRequest.md
|
|
22
26
|
docs/CreateChunkRequest.md
|
|
23
27
|
docs/CreateDocumentRequest.md
|
|
@@ -138,6 +142,7 @@ docs/WorkflowDetailResponse.md
|
|
|
138
142
|
docs/WorkflowSummaryResponse.md
|
|
139
143
|
docs/WorkflowsApi.md
|
|
140
144
|
package.json
|
|
145
|
+
src/apis/ApiKeysApi.ts
|
|
141
146
|
src/apis/AuthApi.ts
|
|
142
147
|
src/apis/ChunkLineagesApi.ts
|
|
143
148
|
src/apis/ChunksApi.ts
|
|
@@ -158,6 +163,7 @@ src/apis/WorkflowsApi.ts
|
|
|
158
163
|
src/apis/index.ts
|
|
159
164
|
src/index.ts
|
|
160
165
|
src/models/AcceptInviteResponse.ts
|
|
166
|
+
src/models/ApiKeyResponse.ts
|
|
161
167
|
src/models/Args.ts
|
|
162
168
|
src/models/BulkTagRequest.ts
|
|
163
169
|
src/models/ChunkBulkResponse.ts
|
|
@@ -170,6 +176,8 @@ src/models/ChunkSearchRequest.ts
|
|
|
170
176
|
src/models/ChunkType.ts
|
|
171
177
|
src/models/Citation.ts
|
|
172
178
|
src/models/ClearVersionContentsResponse.ts
|
|
179
|
+
src/models/CreateApiKeyRequest.ts
|
|
180
|
+
src/models/CreateApiKeyResponse.ts
|
|
173
181
|
src/models/CreateChunkLineageRequest.ts
|
|
174
182
|
src/models/CreateChunkRequest.ts
|
|
175
183
|
src/models/CreateDocumentRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.42.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -16,21 +16,23 @@ Next, try it out.
|
|
|
16
16
|
```ts
|
|
17
17
|
import {
|
|
18
18
|
Configuration,
|
|
19
|
-
|
|
19
|
+
ApiKeysApi,
|
|
20
20
|
} from '@knowledge-stack/ksapi';
|
|
21
|
-
import type {
|
|
21
|
+
import type { CreateApiKeyOperationRequest } from '@knowledge-stack/ksapi';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
25
|
-
const api = new
|
|
25
|
+
const api = new ApiKeysApi();
|
|
26
26
|
|
|
27
27
|
const body = {
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
// CreateApiKeyRequest
|
|
29
|
+
createApiKeyRequest: ...,
|
|
30
|
+
// string (optional)
|
|
31
|
+
ksUat: ksUat_example,
|
|
32
|
+
} satisfies CreateApiKeyOperationRequest;
|
|
31
33
|
|
|
32
34
|
try {
|
|
33
|
-
const data = await api.
|
|
35
|
+
const data = await api.createApiKey(body);
|
|
34
36
|
console.log(data);
|
|
35
37
|
} catch (error) {
|
|
36
38
|
console.error(error);
|
|
@@ -50,6 +52,10 @@ All URIs are relative to *http://localhost:8000*
|
|
|
50
52
|
|
|
51
53
|
| Class | Method | HTTP request | Description
|
|
52
54
|
| ----- | ------ | ------------ | -------------
|
|
55
|
+
*ApiKeysApi* | [**createApiKey**](docs/ApiKeysApi.md#createapikeyoperation) | **POST** /v1/api-keys | Create Api Key Handler
|
|
56
|
+
*ApiKeysApi* | [**deleteApiKey**](docs/ApiKeysApi.md#deleteapikey) | **DELETE** /v1/api-keys/{api_key_id} | Delete Api Key Handler
|
|
57
|
+
*ApiKeysApi* | [**getApiKey**](docs/ApiKeysApi.md#getapikey) | **GET** /v1/api-keys/{api_key_id} | Get Api Key Handler
|
|
58
|
+
*ApiKeysApi* | [**listApiKeys**](docs/ApiKeysApi.md#listapikeys) | **GET** /v1/api-keys | List Api Keys Handler
|
|
53
59
|
*AuthApi* | [**createPasswordUser**](docs/AuthApi.md#createpassworduseroperation) | **POST** /v1/auth/pw/user | Create Password User Handler
|
|
54
60
|
*AuthApi* | [**initiateSso**](docs/AuthApi.md#initiatesso) | **POST** /v1/auth/sso/initiate | Initiate Sso Handler
|
|
55
61
|
*AuthApi* | [**oauth2Callback**](docs/AuthApi.md#oauth2callback) | **GET** /v1/auth/sso/oauth2/callback | Oauth2 Callback Handler
|
|
@@ -145,6 +151,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
145
151
|
### Models
|
|
146
152
|
|
|
147
153
|
- [AcceptInviteResponse](docs/AcceptInviteResponse.md)
|
|
154
|
+
- [ApiKeyResponse](docs/ApiKeyResponse.md)
|
|
148
155
|
- [Args](docs/Args.md)
|
|
149
156
|
- [BulkTagRequest](docs/BulkTagRequest.md)
|
|
150
157
|
- [ChunkBulkResponse](docs/ChunkBulkResponse.md)
|
|
@@ -157,6 +164,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
157
164
|
- [ChunkType](docs/ChunkType.md)
|
|
158
165
|
- [Citation](docs/Citation.md)
|
|
159
166
|
- [ClearVersionContentsResponse](docs/ClearVersionContentsResponse.md)
|
|
167
|
+
- [CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
|
|
168
|
+
- [CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
|
|
160
169
|
- [CreateChunkLineageRequest](docs/CreateChunkLineageRequest.md)
|
|
161
170
|
- [CreateChunkRequest](docs/CreateChunkRequest.md)
|
|
162
171
|
- [CreateDocumentRequest](docs/CreateDocumentRequest.md)
|
|
@@ -275,7 +284,7 @@ and is automatically generated by the
|
|
|
275
284
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
276
285
|
|
|
277
286
|
- API version: `0.1.0`
|
|
278
|
-
- Package version: `1.
|
|
287
|
+
- Package version: `1.42.1`
|
|
279
288
|
- Generator version: `7.20.0`
|
|
280
289
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
281
290
|
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ApiKeyResponse, CreateApiKeyRequest, CreateApiKeyResponse } from '../models/index';
|
|
14
|
+
export interface CreateApiKeyOperationRequest {
|
|
15
|
+
createApiKeyRequest: CreateApiKeyRequest;
|
|
16
|
+
ksUat?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteApiKeyRequest {
|
|
19
|
+
apiKeyId: string;
|
|
20
|
+
ksUat?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface GetApiKeyRequest {
|
|
23
|
+
apiKeyId: string;
|
|
24
|
+
ksUat?: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface ListApiKeysRequest {
|
|
27
|
+
ksUat?: string | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* ApiKeysApi - interface
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface ApiKeysApiInterface
|
|
34
|
+
*/
|
|
35
|
+
export interface ApiKeysApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
* Creates request options for createApiKey without sending the request
|
|
38
|
+
* @param {CreateApiKeyRequest} createApiKeyRequest
|
|
39
|
+
* @param {string} [ksUat]
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
* @memberof ApiKeysApiInterface
|
|
42
|
+
*/
|
|
43
|
+
createApiKeyRequestOpts(requestParameters: CreateApiKeyOperationRequest): Promise<runtime.RequestOpts>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new API key. The full key is returned only once.
|
|
46
|
+
* @summary Create Api Key Handler
|
|
47
|
+
* @param {CreateApiKeyRequest} createApiKeyRequest
|
|
48
|
+
* @param {string} [ksUat]
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @memberof ApiKeysApiInterface
|
|
52
|
+
*/
|
|
53
|
+
createApiKeyRaw(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateApiKeyResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a new API key. The full key is returned only once.
|
|
56
|
+
* Create Api Key Handler
|
|
57
|
+
*/
|
|
58
|
+
createApiKey(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateApiKeyResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates request options for deleteApiKey without sending the request
|
|
61
|
+
* @param {string} apiKeyId
|
|
62
|
+
* @param {string} [ksUat]
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof ApiKeysApiInterface
|
|
65
|
+
*/
|
|
66
|
+
deleteApiKeyRequestOpts(requestParameters: DeleteApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
67
|
+
/**
|
|
68
|
+
* Delete an API key.
|
|
69
|
+
* @summary Delete Api Key Handler
|
|
70
|
+
* @param {string} apiKeyId
|
|
71
|
+
* @param {string} [ksUat]
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof ApiKeysApiInterface
|
|
75
|
+
*/
|
|
76
|
+
deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
77
|
+
/**
|
|
78
|
+
* Delete an API key.
|
|
79
|
+
* Delete Api Key Handler
|
|
80
|
+
*/
|
|
81
|
+
deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Creates request options for getApiKey without sending the request
|
|
84
|
+
* @param {string} apiKeyId
|
|
85
|
+
* @param {string} [ksUat]
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof ApiKeysApiInterface
|
|
88
|
+
*/
|
|
89
|
+
getApiKeyRequestOpts(requestParameters: GetApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
90
|
+
/**
|
|
91
|
+
* Get a single API key by ID.
|
|
92
|
+
* @summary Get Api Key Handler
|
|
93
|
+
* @param {string} apiKeyId
|
|
94
|
+
* @param {string} [ksUat]
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
* @memberof ApiKeysApiInterface
|
|
98
|
+
*/
|
|
99
|
+
getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyResponse>>;
|
|
100
|
+
/**
|
|
101
|
+
* Get a single API key by ID.
|
|
102
|
+
* Get Api Key Handler
|
|
103
|
+
*/
|
|
104
|
+
getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for listApiKeys without sending the request
|
|
107
|
+
* @param {string} [ksUat]
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
* @memberof ApiKeysApiInterface
|
|
110
|
+
*/
|
|
111
|
+
listApiKeysRequestOpts(requestParameters: ListApiKeysRequest): Promise<runtime.RequestOpts>;
|
|
112
|
+
/**
|
|
113
|
+
* List all API keys for the current user.
|
|
114
|
+
* @summary List Api Keys Handler
|
|
115
|
+
* @param {string} [ksUat]
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
* @memberof ApiKeysApiInterface
|
|
119
|
+
*/
|
|
120
|
+
listApiKeysRaw(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
|
|
121
|
+
/**
|
|
122
|
+
* List all API keys for the current user.
|
|
123
|
+
* List Api Keys Handler
|
|
124
|
+
*/
|
|
125
|
+
listApiKeys(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
export declare class ApiKeysApi extends runtime.BaseAPI implements ApiKeysApiInterface {
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for createApiKey without sending the request
|
|
133
|
+
*/
|
|
134
|
+
createApiKeyRequestOpts(requestParameters: CreateApiKeyOperationRequest): Promise<runtime.RequestOpts>;
|
|
135
|
+
/**
|
|
136
|
+
* Create a new API key. The full key is returned only once.
|
|
137
|
+
* Create Api Key Handler
|
|
138
|
+
*/
|
|
139
|
+
createApiKeyRaw(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateApiKeyResponse>>;
|
|
140
|
+
/**
|
|
141
|
+
* Create a new API key. The full key is returned only once.
|
|
142
|
+
* Create Api Key Handler
|
|
143
|
+
*/
|
|
144
|
+
createApiKey(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateApiKeyResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for deleteApiKey without sending the request
|
|
147
|
+
*/
|
|
148
|
+
deleteApiKeyRequestOpts(requestParameters: DeleteApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
149
|
+
/**
|
|
150
|
+
* Delete an API key.
|
|
151
|
+
* Delete Api Key Handler
|
|
152
|
+
*/
|
|
153
|
+
deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
154
|
+
/**
|
|
155
|
+
* Delete an API key.
|
|
156
|
+
* Delete Api Key Handler
|
|
157
|
+
*/
|
|
158
|
+
deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates request options for getApiKey without sending the request
|
|
161
|
+
*/
|
|
162
|
+
getApiKeyRequestOpts(requestParameters: GetApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
163
|
+
/**
|
|
164
|
+
* Get a single API key by ID.
|
|
165
|
+
* Get Api Key Handler
|
|
166
|
+
*/
|
|
167
|
+
getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyResponse>>;
|
|
168
|
+
/**
|
|
169
|
+
* Get a single API key by ID.
|
|
170
|
+
* Get Api Key Handler
|
|
171
|
+
*/
|
|
172
|
+
getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Creates request options for listApiKeys without sending the request
|
|
175
|
+
*/
|
|
176
|
+
listApiKeysRequestOpts(requestParameters: ListApiKeysRequest): Promise<runtime.RequestOpts>;
|
|
177
|
+
/**
|
|
178
|
+
* List all API keys for the current user.
|
|
179
|
+
* List Api Keys Handler
|
|
180
|
+
*/
|
|
181
|
+
listApiKeysRaw(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
|
|
182
|
+
/**
|
|
183
|
+
* List all API keys for the current user.
|
|
184
|
+
* List Api Keys Handler
|
|
185
|
+
*/
|
|
186
|
+
listApiKeys(requestParameters?: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
|
|
187
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ApiKeysApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class ApiKeysApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for createApiKey without sending the request
|
|
34
|
+
*/
|
|
35
|
+
createApiKeyRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['createApiKeyRequest'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('createApiKeyRequest', 'Required parameter "createApiKeyRequest" was null or undefined when calling createApiKey().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
let urlPath = `/v1/api-keys`;
|
|
44
|
+
return {
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'POST',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
body: (0, index_1.CreateApiKeyRequestToJSON)(requestParameters['createApiKeyRequest']),
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create a new API key. The full key is returned only once.
|
|
55
|
+
* Create Api Key Handler
|
|
56
|
+
*/
|
|
57
|
+
createApiKeyRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.createApiKeyRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateApiKeyResponseFromJSON)(jsonValue));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Create a new API key. The full key is returned only once.
|
|
66
|
+
* Create Api Key Handler
|
|
67
|
+
*/
|
|
68
|
+
createApiKey(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const response = yield this.createApiKeyRaw(requestParameters, initOverrides);
|
|
71
|
+
return yield response.value();
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates request options for deleteApiKey without sending the request
|
|
76
|
+
*/
|
|
77
|
+
deleteApiKeyRequestOpts(requestParameters) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
80
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling deleteApiKey().');
|
|
81
|
+
}
|
|
82
|
+
const queryParameters = {};
|
|
83
|
+
const headerParameters = {};
|
|
84
|
+
let urlPath = `/v1/api-keys/{api_key_id}`;
|
|
85
|
+
urlPath = urlPath.replace(`{${"api_key_id"}}`, encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
86
|
+
return {
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'DELETE',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Delete an API key.
|
|
96
|
+
* Delete Api Key Handler
|
|
97
|
+
*/
|
|
98
|
+
deleteApiKeyRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.deleteApiKeyRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
+
return new runtime.VoidApiResponse(response);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Delete an API key.
|
|
107
|
+
* Delete Api Key Handler
|
|
108
|
+
*/
|
|
109
|
+
deleteApiKey(requestParameters, initOverrides) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
yield this.deleteApiKeyRaw(requestParameters, initOverrides);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for getApiKey without sending the request
|
|
116
|
+
*/
|
|
117
|
+
getApiKeyRequestOpts(requestParameters) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
120
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling getApiKey().');
|
|
121
|
+
}
|
|
122
|
+
const queryParameters = {};
|
|
123
|
+
const headerParameters = {};
|
|
124
|
+
let urlPath = `/v1/api-keys/{api_key_id}`;
|
|
125
|
+
urlPath = urlPath.replace(`{${"api_key_id"}}`, encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
126
|
+
return {
|
|
127
|
+
path: urlPath,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get a single API key by ID.
|
|
136
|
+
* Get Api Key Handler
|
|
137
|
+
*/
|
|
138
|
+
getApiKeyRaw(requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const requestOptions = yield this.getApiKeyRequestOpts(requestParameters);
|
|
141
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiKeyResponseFromJSON)(jsonValue));
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get a single API key by ID.
|
|
147
|
+
* Get Api Key Handler
|
|
148
|
+
*/
|
|
149
|
+
getApiKey(requestParameters, initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const response = yield this.getApiKeyRaw(requestParameters, initOverrides);
|
|
152
|
+
return yield response.value();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for listApiKeys without sending the request
|
|
157
|
+
*/
|
|
158
|
+
listApiKeysRequestOpts(requestParameters) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const queryParameters = {};
|
|
161
|
+
const headerParameters = {};
|
|
162
|
+
let urlPath = `/v1/api-keys`;
|
|
163
|
+
return {
|
|
164
|
+
path: urlPath,
|
|
165
|
+
method: 'GET',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* List all API keys for the current user.
|
|
173
|
+
* List Api Keys Handler
|
|
174
|
+
*/
|
|
175
|
+
listApiKeysRaw(requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const requestOptions = yield this.listApiKeysRequestOpts(requestParameters);
|
|
178
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
179
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiKeyResponseFromJSON));
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* List all API keys for the current user.
|
|
184
|
+
* List Api Keys Handler
|
|
185
|
+
*/
|
|
186
|
+
listApiKeys() {
|
|
187
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
188
|
+
const response = yield this.listApiKeysRaw(requestParameters, initOverrides);
|
|
189
|
+
return yield response.value();
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.ApiKeysApi = ApiKeysApi;
|
package/dist/apis/AuthApi.d.ts
CHANGED
|
@@ -34,10 +34,12 @@ export interface PwSigninRequest {
|
|
|
34
34
|
}
|
|
35
35
|
export interface RefreshUatRequest {
|
|
36
36
|
tenantId?: string | null;
|
|
37
|
+
authorization?: string | null;
|
|
37
38
|
ksUat?: string | null;
|
|
38
39
|
}
|
|
39
40
|
export interface ResetPasswordRequest {
|
|
40
41
|
passwordResetRequest: PasswordResetRequest;
|
|
42
|
+
authorization?: string | null;
|
|
41
43
|
ksUat?: string | null;
|
|
42
44
|
}
|
|
43
45
|
export interface ResetPasswordWithTokenRequest {
|
|
@@ -172,6 +174,7 @@ export interface AuthApiInterface {
|
|
|
172
174
|
/**
|
|
173
175
|
* Creates request options for refreshUat without sending the request
|
|
174
176
|
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
177
|
+
* @param {string} [authorization]
|
|
175
178
|
* @param {string} [ksUat]
|
|
176
179
|
* @throws {RequiredError}
|
|
177
180
|
* @memberof AuthApiInterface
|
|
@@ -181,6 +184,7 @@ export interface AuthApiInterface {
|
|
|
181
184
|
* Refresh or switch the user\'s active tenant token.
|
|
182
185
|
* @summary Refresh Uat Handler
|
|
183
186
|
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
187
|
+
* @param {string} [authorization]
|
|
184
188
|
* @param {string} [ksUat]
|
|
185
189
|
* @param {*} [options] Override http request option.
|
|
186
190
|
* @throws {RequiredError}
|
|
@@ -195,6 +199,7 @@ export interface AuthApiInterface {
|
|
|
195
199
|
/**
|
|
196
200
|
* Creates request options for resetPassword without sending the request
|
|
197
201
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
202
|
+
* @param {string} [authorization]
|
|
198
203
|
* @param {string} [ksUat]
|
|
199
204
|
* @throws {RequiredError}
|
|
200
205
|
* @memberof AuthApiInterface
|
|
@@ -204,6 +209,7 @@ export interface AuthApiInterface {
|
|
|
204
209
|
* Reset password for the authenticated user
|
|
205
210
|
* @summary Reset Password Handler
|
|
206
211
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
212
|
+
* @param {string} [authorization]
|
|
207
213
|
* @param {string} [ksUat]
|
|
208
214
|
* @param {*} [options] Override http request option.
|
|
209
215
|
* @throws {RequiredError}
|
package/dist/apis/AuthApi.js
CHANGED
|
@@ -267,6 +267,9 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
267
267
|
queryParameters['tenant_id'] = requestParameters['tenantId'];
|
|
268
268
|
}
|
|
269
269
|
const headerParameters = {};
|
|
270
|
+
if (requestParameters['authorization'] != null) {
|
|
271
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
272
|
+
}
|
|
270
273
|
let urlPath = `/v1/auth/uat`;
|
|
271
274
|
return {
|
|
272
275
|
path: urlPath,
|
|
@@ -308,6 +311,9 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
308
311
|
const queryParameters = {};
|
|
309
312
|
const headerParameters = {};
|
|
310
313
|
headerParameters['Content-Type'] = 'application/json';
|
|
314
|
+
if (requestParameters['authorization'] != null) {
|
|
315
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
316
|
+
}
|
|
311
317
|
let urlPath = `/v1/auth/pw/reset`;
|
|
312
318
|
return {
|
|
313
319
|
path: urlPath,
|
|
@@ -13,16 +13,19 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { ChunkLineageResponse, CreateChunkLineageRequest, LineageGraphResponse } from '../models/index';
|
|
14
14
|
export interface CreateChunkLineageOperationRequest {
|
|
15
15
|
createChunkLineageRequest: CreateChunkLineageRequest;
|
|
16
|
+
authorization?: string | null;
|
|
16
17
|
ksUat?: string | null;
|
|
17
18
|
}
|
|
18
19
|
export interface DeleteChunkLineageRequest {
|
|
19
20
|
parentChunkId: string;
|
|
20
21
|
chunkId: string;
|
|
22
|
+
authorization?: string | null;
|
|
21
23
|
ksUat?: string | null;
|
|
22
24
|
}
|
|
23
25
|
export interface GetChunkLineageRequest {
|
|
24
26
|
chunkId: string;
|
|
25
27
|
maxDepth?: number;
|
|
28
|
+
authorization?: string | null;
|
|
26
29
|
ksUat?: string | null;
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
@@ -35,6 +38,7 @@ export interface ChunkLineagesApiInterface {
|
|
|
35
38
|
/**
|
|
36
39
|
* Creates request options for createChunkLineage without sending the request
|
|
37
40
|
* @param {CreateChunkLineageRequest} createChunkLineageRequest
|
|
41
|
+
* @param {string} [authorization]
|
|
38
42
|
* @param {string} [ksUat]
|
|
39
43
|
* @throws {RequiredError}
|
|
40
44
|
* @memberof ChunkLineagesApiInterface
|
|
@@ -44,6 +48,7 @@ export interface ChunkLineagesApiInterface {
|
|
|
44
48
|
* Batch-create lineage edges for a child chunk. Creates edges from each parent chunk to the specified child chunk. All chunks must exist in the same tenant.
|
|
45
49
|
* @summary Create Chunk Lineage Handler
|
|
46
50
|
* @param {CreateChunkLineageRequest} createChunkLineageRequest
|
|
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 ChunkLineagesApiInterface {
|
|
|
59
64
|
* Creates request options for deleteChunkLineage without sending the request
|
|
60
65
|
* @param {string} parentChunkId Parent chunk ID
|
|
61
66
|
* @param {string} chunkId Child chunk ID
|
|
67
|
+
* @param {string} [authorization]
|
|
62
68
|
* @param {string} [ksUat]
|
|
63
69
|
* @throws {RequiredError}
|
|
64
70
|
* @memberof ChunkLineagesApiInterface
|
|
@@ -69,6 +75,7 @@ export interface ChunkLineagesApiInterface {
|
|
|
69
75
|
* @summary Delete Chunk Lineage Handler
|
|
70
76
|
* @param {string} parentChunkId Parent chunk ID
|
|
71
77
|
* @param {string} chunkId Child chunk ID
|
|
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 ChunkLineagesApiInterface {
|
|
|
84
91
|
* Creates request options for getChunkLineage without sending the request
|
|
85
92
|
* @param {string} chunkId
|
|
86
93
|
* @param {number} [maxDepth]
|
|
94
|
+
* @param {string} [authorization]
|
|
87
95
|
* @param {string} [ksUat]
|
|
88
96
|
* @throws {RequiredError}
|
|
89
97
|
* @memberof ChunkLineagesApiInterface
|
|
@@ -94,6 +102,7 @@ export interface ChunkLineagesApiInterface {
|
|
|
94
102
|
* @summary Get Chunk Lineage Handler
|
|
95
103
|
* @param {string} chunkId
|
|
96
104
|
* @param {number} [maxDepth]
|
|
105
|
+
* @param {string} [authorization]
|
|
97
106
|
* @param {string} [ksUat]
|
|
98
107
|
* @param {*} [options] Override http request option.
|
|
99
108
|
* @throws {RequiredError}
|
|
@@ -40,6 +40,9 @@ class ChunkLineagesApi 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/chunk-lineages`;
|
|
44
47
|
return {
|
|
45
48
|
path: urlPath,
|
|
@@ -90,6 +93,9 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
90
93
|
queryParameters['chunk_id'] = requestParameters['chunkId'];
|
|
91
94
|
}
|
|
92
95
|
const headerParameters = {};
|
|
96
|
+
if (requestParameters['authorization'] != null) {
|
|
97
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
98
|
+
}
|
|
93
99
|
let urlPath = `/v1/chunk-lineages`;
|
|
94
100
|
return {
|
|
95
101
|
path: urlPath,
|
|
@@ -132,6 +138,9 @@ class ChunkLineagesApi extends runtime.BaseAPI {
|
|
|
132
138
|
queryParameters['max_depth'] = requestParameters['maxDepth'];
|
|
133
139
|
}
|
|
134
140
|
const headerParameters = {};
|
|
141
|
+
if (requestParameters['authorization'] != null) {
|
|
142
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
143
|
+
}
|
|
135
144
|
let urlPath = `/v1/chunk-lineages/{chunk_id}`;
|
|
136
145
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
137
146
|
return {
|