@knowledge-stack/ksapi 2.14.3 → 2.15.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 +2 -0
- package/README.md +4 -2
- package/dist/apis/ApiConnectionsApi.d.ts +8 -8
- package/dist/apis/ApiConnectionsApi.js +4 -4
- package/dist/apis/DataSourcesApi.d.ts +4 -4
- package/dist/apis/DataSourcesApi.js +2 -2
- package/dist/apis/SkillsApi.d.ts +39 -1
- package/dist/apis/SkillsApi.js +49 -0
- package/dist/esm/apis/ApiConnectionsApi.d.ts +8 -8
- package/dist/esm/apis/ApiConnectionsApi.js +4 -4
- package/dist/esm/apis/DataSourcesApi.d.ts +4 -4
- package/dist/esm/apis/DataSourcesApi.js +2 -2
- package/dist/esm/apis/SkillsApi.d.ts +39 -1
- package/dist/esm/apis/SkillsApi.js +50 -1
- package/dist/esm/models/ExportSkillsRequest.d.ts +47 -0
- package/dist/esm/models/ExportSkillsRequest.js +50 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ExportSkillsRequest.d.ts +47 -0
- package/dist/models/ExportSkillsRequest.js +58 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ApiConnectionsApi.md +2 -2
- package/docs/DataSourcesApi.md +1 -1
- package/docs/ExportSkillsRequest.md +35 -0
- package/docs/SkillsApi.md +76 -0
- package/package.json +1 -1
- package/src/apis/ApiConnectionsApi.ts +8 -8
- package/src/apis/DataSourcesApi.ts +4 -4
- package/src/apis/SkillsApi.ts +88 -0
- package/src/models/ExportSkillsRequest.ts +88 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -158,6 +158,7 @@ docs/EnrichedThreadMessageContent.md
|
|
|
158
158
|
docs/ErrorResponse.md
|
|
159
159
|
docs/EventResponse.md
|
|
160
160
|
docs/ExcludedCommonFile.md
|
|
161
|
+
docs/ExportSkillsRequest.md
|
|
161
162
|
docs/ExtractRequest.md
|
|
162
163
|
docs/ExtractResponse.md
|
|
163
164
|
docs/FeaturesApi.md
|
|
@@ -622,6 +623,7 @@ src/models/EnrichedThreadMessageContent.ts
|
|
|
622
623
|
src/models/ErrorResponse.ts
|
|
623
624
|
src/models/EventResponse.ts
|
|
624
625
|
src/models/ExcludedCommonFile.ts
|
|
626
|
+
src/models/ExportSkillsRequest.ts
|
|
625
627
|
src/models/ExtractRequest.ts
|
|
626
628
|
src/models/ExtractResponse.ts
|
|
627
629
|
src/models/FeaturesResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@2.
|
|
1
|
+
# @knowledge-stack/ksapi@2.15.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -203,6 +203,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
203
203
|
*SkillsApi* | [**deleteSkill**](docs/SkillsApi.md#deleteskill) | **DELETE** /v1/skills/{skill_id} | Delete Skill Handler
|
|
204
204
|
*SkillsApi* | [**discardSkillDraft**](docs/SkillsApi.md#discardskilldraft) | **POST** /v1/skills/{skill_id}/discard-draft | Discard Skill Draft Handler
|
|
205
205
|
*SkillsApi* | [**exportSkill**](docs/SkillsApi.md#exportskill) | **GET** /v1/skills/{skill_id}/export | Export Skill Handler
|
|
206
|
+
*SkillsApi* | [**exportSkills**](docs/SkillsApi.md#exportskillsoperation) | **POST** /v1/skills/export | Export Skills Handler
|
|
206
207
|
*SkillsApi* | [**getSkill**](docs/SkillsApi.md#getskill) | **GET** /v1/skills/{skill_id} | Get Skill Handler
|
|
207
208
|
*SkillsApi* | [**importSkill**](docs/SkillsApi.md#importskill) | **POST** /v1/skills/import | Import Skill Handler
|
|
208
209
|
*SkillsApi* | [**listSkillVersions**](docs/SkillsApi.md#listskillversions) | **GET** /v1/skills/{skill_id}/versions | List Skill Versions Handler
|
|
@@ -443,6 +444,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
443
444
|
- [ErrorResponse](docs/ErrorResponse.md)
|
|
444
445
|
- [EventResponse](docs/EventResponse.md)
|
|
445
446
|
- [ExcludedCommonFile](docs/ExcludedCommonFile.md)
|
|
447
|
+
- [ExportSkillsRequest](docs/ExportSkillsRequest.md)
|
|
446
448
|
- [ExtractRequest](docs/ExtractRequest.md)
|
|
447
449
|
- [ExtractResponse](docs/ExtractResponse.md)
|
|
448
450
|
- [FeaturesResponse](docs/FeaturesResponse.md)
|
|
@@ -725,7 +727,7 @@ and is automatically generated by the
|
|
|
725
727
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
726
728
|
|
|
727
729
|
- API version: `0.1.0`
|
|
728
|
-
- Package version: `2.
|
|
730
|
+
- Package version: `2.15.0`
|
|
729
731
|
- Generator version: `7.21.0`
|
|
730
732
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
731
733
|
|
|
@@ -91,7 +91,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
91
91
|
*/
|
|
92
92
|
deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
|
|
93
93
|
/**
|
|
94
|
-
* Move a connection to trash
|
|
94
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
95
95
|
* @summary Delete Api Connection Handler
|
|
96
96
|
* @param {string} connectionId
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
@@ -100,7 +100,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
100
100
|
*/
|
|
101
101
|
deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
102
102
|
/**
|
|
103
|
-
* Move a connection to trash
|
|
103
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
104
104
|
* Delete Api Connection Handler
|
|
105
105
|
*/
|
|
106
106
|
deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -157,7 +157,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
157
157
|
*/
|
|
158
158
|
updateApiConnectionRequestOpts(requestParameters: UpdateApiConnectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
159
159
|
/**
|
|
160
|
-
* Update a connection
|
|
160
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
161
161
|
* @summary Update Api Connection Handler
|
|
162
162
|
* @param {string} connectionId
|
|
163
163
|
* @param {UpdateApiConnectionRequest} updateApiConnectionRequest
|
|
@@ -167,7 +167,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
167
167
|
*/
|
|
168
168
|
updateApiConnectionRaw(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiConnectionResponse>>;
|
|
169
169
|
/**
|
|
170
|
-
* Update a connection
|
|
170
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
171
171
|
* Update Api Connection Handler
|
|
172
172
|
*/
|
|
173
173
|
updateApiConnection(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
|
|
@@ -209,12 +209,12 @@ export declare class ApiConnectionsApi extends runtime.BaseAPI implements ApiCon
|
|
|
209
209
|
*/
|
|
210
210
|
deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
|
|
211
211
|
/**
|
|
212
|
-
* Move a connection to trash
|
|
212
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
213
213
|
* Delete Api Connection Handler
|
|
214
214
|
*/
|
|
215
215
|
deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
216
216
|
/**
|
|
217
|
-
* Move a connection to trash
|
|
217
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
218
218
|
* Delete Api Connection Handler
|
|
219
219
|
*/
|
|
220
220
|
deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -251,12 +251,12 @@ export declare class ApiConnectionsApi extends runtime.BaseAPI implements ApiCon
|
|
|
251
251
|
*/
|
|
252
252
|
updateApiConnectionRequestOpts(requestParameters: UpdateApiConnectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
253
253
|
/**
|
|
254
|
-
* Update a connection
|
|
254
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
255
255
|
* Update Api Connection Handler
|
|
256
256
|
*/
|
|
257
257
|
updateApiConnectionRaw(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiConnectionResponse>>;
|
|
258
258
|
/**
|
|
259
|
-
* Update a connection
|
|
259
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
260
260
|
* Update Api Connection Handler
|
|
261
261
|
*/
|
|
262
262
|
updateApiConnection(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
|
|
@@ -192,7 +192,7 @@ class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
|
-
* Move a connection to trash
|
|
195
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
196
196
|
* Delete Api Connection Handler
|
|
197
197
|
*/
|
|
198
198
|
deleteApiConnectionRaw(requestParameters, initOverrides) {
|
|
@@ -203,7 +203,7 @@ class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
|
-
* Move a connection to trash
|
|
206
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
207
207
|
* Delete Api Connection Handler
|
|
208
208
|
*/
|
|
209
209
|
deleteApiConnection(requestParameters, initOverrides) {
|
|
@@ -345,7 +345,7 @@ class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
348
|
-
* Update a connection
|
|
348
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
349
349
|
* Update Api Connection Handler
|
|
350
350
|
*/
|
|
351
351
|
updateApiConnectionRaw(requestParameters, initOverrides) {
|
|
@@ -356,7 +356,7 @@ class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
359
|
-
* Update a connection
|
|
359
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
360
360
|
* Update Api Connection Handler
|
|
361
361
|
*/
|
|
362
362
|
updateApiConnection(requestParameters, initOverrides) {
|
|
@@ -414,7 +414,7 @@ export interface DataSourcesApiInterface {
|
|
|
414
414
|
*/
|
|
415
415
|
updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
|
|
416
416
|
/**
|
|
417
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
417
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
418
418
|
* @summary Update Data Source Handler
|
|
419
419
|
* @param {string} dataSourceId
|
|
420
420
|
* @param {UpdateDataSourceRequest} updateDataSourceRequest
|
|
@@ -424,7 +424,7 @@ export interface DataSourcesApiInterface {
|
|
|
424
424
|
*/
|
|
425
425
|
updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
|
|
426
426
|
/**
|
|
427
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
427
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
428
428
|
* Update Data Source Handler
|
|
429
429
|
*/
|
|
430
430
|
updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
|
|
@@ -673,12 +673,12 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
|
|
|
673
673
|
*/
|
|
674
674
|
updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
|
|
675
675
|
/**
|
|
676
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
676
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
677
677
|
* Update Data Source Handler
|
|
678
678
|
*/
|
|
679
679
|
updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
|
|
680
680
|
/**
|
|
681
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
681
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
682
682
|
* Update Data Source Handler
|
|
683
683
|
*/
|
|
684
684
|
updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
|
|
@@ -840,7 +840,7 @@ class DataSourcesApi extends runtime.BaseAPI {
|
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
/**
|
|
843
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
843
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
844
844
|
* Update Data Source Handler
|
|
845
845
|
*/
|
|
846
846
|
updateDataSourceRaw(requestParameters, initOverrides) {
|
|
@@ -851,7 +851,7 @@ class DataSourcesApi extends runtime.BaseAPI {
|
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
854
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
855
855
|
* Update Data Source Handler
|
|
856
856
|
*/
|
|
857
857
|
updateDataSource(requestParameters, initOverrides) {
|
package/dist/apis/SkillsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ActivateSkillVersionRequest, CreateSkillRequest, PaginatedResponseSkillResponse, SearchSkillsRequest, SearchSkillsResponse, SkillOrder, SkillResponse, SkillVersionResponse, SortDirection, UpdateSkillRequest } from '../models/index';
|
|
13
|
+
import type { ActivateSkillVersionRequest, CreateSkillRequest, ExportSkillsRequest, PaginatedResponseSkillResponse, SearchSkillsRequest, SearchSkillsResponse, SkillOrder, SkillResponse, SkillVersionResponse, SortDirection, UpdateSkillRequest } from '../models/index';
|
|
14
14
|
export interface ActivateSkillVersionOperationRequest {
|
|
15
15
|
skillId: string;
|
|
16
16
|
versionId: string;
|
|
@@ -34,6 +34,9 @@ export interface DiscardSkillDraftRequest {
|
|
|
34
34
|
export interface ExportSkillRequest {
|
|
35
35
|
skillId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface ExportSkillsOperationRequest {
|
|
38
|
+
exportSkillsRequest: ExportSkillsRequest;
|
|
39
|
+
}
|
|
37
40
|
export interface GetSkillRequest {
|
|
38
41
|
skillId: string;
|
|
39
42
|
includeFileContents?: boolean;
|
|
@@ -219,6 +222,27 @@ export interface SkillsApiInterface {
|
|
|
219
222
|
* Export Skill Handler
|
|
220
223
|
*/
|
|
221
224
|
exportSkill(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
225
|
+
/**
|
|
226
|
+
* Creates request options for exportSkills without sending the request
|
|
227
|
+
* @param {ExportSkillsRequest} exportSkillsRequest
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
* @memberof SkillsApiInterface
|
|
230
|
+
*/
|
|
231
|
+
exportSkillsRequestOpts(requestParameters: ExportSkillsOperationRequest): Promise<runtime.RequestOpts>;
|
|
232
|
+
/**
|
|
233
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
234
|
+
* @summary Export Skills Handler
|
|
235
|
+
* @param {ExportSkillsRequest} exportSkillsRequest
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
* @memberof SkillsApiInterface
|
|
239
|
+
*/
|
|
240
|
+
exportSkillsRaw(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
241
|
+
/**
|
|
242
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
243
|
+
* Export Skills Handler
|
|
244
|
+
*/
|
|
245
|
+
exportSkills(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
222
246
|
/**
|
|
223
247
|
* Creates request options for getSkill without sending the request
|
|
224
248
|
* @param {string} skillId
|
|
@@ -481,6 +505,20 @@ export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInter
|
|
|
481
505
|
* Export Skill Handler
|
|
482
506
|
*/
|
|
483
507
|
exportSkill(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
508
|
+
/**
|
|
509
|
+
* Creates request options for exportSkills without sending the request
|
|
510
|
+
*/
|
|
511
|
+
exportSkillsRequestOpts(requestParameters: ExportSkillsOperationRequest): Promise<runtime.RequestOpts>;
|
|
512
|
+
/**
|
|
513
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
514
|
+
* Export Skills Handler
|
|
515
|
+
*/
|
|
516
|
+
exportSkillsRaw(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
517
|
+
/**
|
|
518
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
519
|
+
* Export Skills Handler
|
|
520
|
+
*/
|
|
521
|
+
exportSkills(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
484
522
|
/**
|
|
485
523
|
* Creates request options for getSkill without sending the request
|
|
486
524
|
*/
|
package/dist/apis/SkillsApi.js
CHANGED
|
@@ -411,6 +411,55 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
411
411
|
return yield response.value();
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* Creates request options for exportSkills without sending the request
|
|
416
|
+
*/
|
|
417
|
+
exportSkillsRequestOpts(requestParameters) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
if (requestParameters['exportSkillsRequest'] == null) {
|
|
420
|
+
throw new runtime.RequiredError('exportSkillsRequest', 'Required parameter "exportSkillsRequest" was null or undefined when calling exportSkills().');
|
|
421
|
+
}
|
|
422
|
+
const queryParameters = {};
|
|
423
|
+
const headerParameters = {};
|
|
424
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
425
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
426
|
+
const token = this.configuration.accessToken;
|
|
427
|
+
const tokenString = yield token("bearerAuth", []);
|
|
428
|
+
if (tokenString) {
|
|
429
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
let urlPath = `/v1/skills/export`;
|
|
433
|
+
return {
|
|
434
|
+
path: urlPath,
|
|
435
|
+
method: 'POST',
|
|
436
|
+
headers: headerParameters,
|
|
437
|
+
query: queryParameters,
|
|
438
|
+
body: (0, index_1.ExportSkillsRequestToJSON)(requestParameters['exportSkillsRequest']),
|
|
439
|
+
};
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
444
|
+
* Export Skills Handler
|
|
445
|
+
*/
|
|
446
|
+
exportSkillsRaw(requestParameters, initOverrides) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
const requestOptions = yield this.exportSkillsRequestOpts(requestParameters);
|
|
449
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
450
|
+
return new runtime.BlobApiResponse(response);
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
455
|
+
* Export Skills Handler
|
|
456
|
+
*/
|
|
457
|
+
exportSkills(requestParameters, initOverrides) {
|
|
458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
459
|
+
const response = yield this.exportSkillsRaw(requestParameters, initOverrides);
|
|
460
|
+
return yield response.value();
|
|
461
|
+
});
|
|
462
|
+
}
|
|
414
463
|
/**
|
|
415
464
|
* Creates request options for getSkill without sending the request
|
|
416
465
|
*/
|
|
@@ -91,7 +91,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
91
91
|
*/
|
|
92
92
|
deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
|
|
93
93
|
/**
|
|
94
|
-
* Move a connection to trash
|
|
94
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
95
95
|
* @summary Delete Api Connection Handler
|
|
96
96
|
* @param {string} connectionId
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
@@ -100,7 +100,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
100
100
|
*/
|
|
101
101
|
deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
102
102
|
/**
|
|
103
|
-
* Move a connection to trash
|
|
103
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
104
104
|
* Delete Api Connection Handler
|
|
105
105
|
*/
|
|
106
106
|
deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -157,7 +157,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
157
157
|
*/
|
|
158
158
|
updateApiConnectionRequestOpts(requestParameters: UpdateApiConnectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
159
159
|
/**
|
|
160
|
-
* Update a connection
|
|
160
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
161
161
|
* @summary Update Api Connection Handler
|
|
162
162
|
* @param {string} connectionId
|
|
163
163
|
* @param {UpdateApiConnectionRequest} updateApiConnectionRequest
|
|
@@ -167,7 +167,7 @@ export interface ApiConnectionsApiInterface {
|
|
|
167
167
|
*/
|
|
168
168
|
updateApiConnectionRaw(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiConnectionResponse>>;
|
|
169
169
|
/**
|
|
170
|
-
* Update a connection
|
|
170
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
171
171
|
* Update Api Connection Handler
|
|
172
172
|
*/
|
|
173
173
|
updateApiConnection(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
|
|
@@ -209,12 +209,12 @@ export declare class ApiConnectionsApi extends runtime.BaseAPI implements ApiCon
|
|
|
209
209
|
*/
|
|
210
210
|
deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
|
|
211
211
|
/**
|
|
212
|
-
* Move a connection to trash
|
|
212
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
213
213
|
* Delete Api Connection Handler
|
|
214
214
|
*/
|
|
215
215
|
deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
216
216
|
/**
|
|
217
|
-
* Move a connection to trash
|
|
217
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
218
218
|
* Delete Api Connection Handler
|
|
219
219
|
*/
|
|
220
220
|
deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -251,12 +251,12 @@ export declare class ApiConnectionsApi extends runtime.BaseAPI implements ApiCon
|
|
|
251
251
|
*/
|
|
252
252
|
updateApiConnectionRequestOpts(requestParameters: UpdateApiConnectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
253
253
|
/**
|
|
254
|
-
* Update a connection
|
|
254
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
255
255
|
* Update Api Connection Handler
|
|
256
256
|
*/
|
|
257
257
|
updateApiConnectionRaw(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiConnectionResponse>>;
|
|
258
258
|
/**
|
|
259
|
-
* Update a connection
|
|
259
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
260
260
|
* Update Api Connection Handler
|
|
261
261
|
*/
|
|
262
262
|
updateApiConnection(requestParameters: UpdateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
|
|
@@ -156,7 +156,7 @@ export class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
* Move a connection to trash
|
|
159
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
160
160
|
* Delete Api Connection Handler
|
|
161
161
|
*/
|
|
162
162
|
deleteApiConnectionRaw(requestParameters, initOverrides) {
|
|
@@ -167,7 +167,7 @@ export class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
* Move a connection to trash
|
|
170
|
+
* Move a connection to trash; requires ``can_delete``.
|
|
171
171
|
* Delete Api Connection Handler
|
|
172
172
|
*/
|
|
173
173
|
deleteApiConnection(requestParameters, initOverrides) {
|
|
@@ -309,7 +309,7 @@ export class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
/**
|
|
312
|
-
* Update a connection
|
|
312
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
313
313
|
* Update Api Connection Handler
|
|
314
314
|
*/
|
|
315
315
|
updateApiConnectionRaw(requestParameters, initOverrides) {
|
|
@@ -320,7 +320,7 @@ export class ApiConnectionsApi extends runtime.BaseAPI {
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
* Update a connection
|
|
323
|
+
* Update a connection; changing its egress envelope needs Admin/Owner.
|
|
324
324
|
* Update Api Connection Handler
|
|
325
325
|
*/
|
|
326
326
|
updateApiConnection(requestParameters, initOverrides) {
|
|
@@ -414,7 +414,7 @@ export interface DataSourcesApiInterface {
|
|
|
414
414
|
*/
|
|
415
415
|
updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
|
|
416
416
|
/**
|
|
417
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
417
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
418
418
|
* @summary Update Data Source Handler
|
|
419
419
|
* @param {string} dataSourceId
|
|
420
420
|
* @param {UpdateDataSourceRequest} updateDataSourceRequest
|
|
@@ -424,7 +424,7 @@ export interface DataSourcesApiInterface {
|
|
|
424
424
|
*/
|
|
425
425
|
updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
|
|
426
426
|
/**
|
|
427
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
427
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
428
428
|
* Update Data Source Handler
|
|
429
429
|
*/
|
|
430
430
|
updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
|
|
@@ -673,12 +673,12 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
|
|
|
673
673
|
*/
|
|
674
674
|
updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
|
|
675
675
|
/**
|
|
676
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
676
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
677
677
|
* Update Data Source Handler
|
|
678
678
|
*/
|
|
679
679
|
updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
|
|
680
680
|
/**
|
|
681
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
681
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
682
682
|
* Update Data Source Handler
|
|
683
683
|
*/
|
|
684
684
|
updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
|
|
@@ -804,7 +804,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
|
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
/**
|
|
807
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
807
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
808
808
|
* Update Data Source Handler
|
|
809
809
|
*/
|
|
810
810
|
updateDataSourceRaw(requestParameters, initOverrides) {
|
|
@@ -815,7 +815,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
|
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
/**
|
|
818
|
-
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move). Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
818
|
+
* Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
|
|
819
819
|
* Update Data Source Handler
|
|
820
820
|
*/
|
|
821
821
|
updateDataSource(requestParameters, initOverrides) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ActivateSkillVersionRequest, CreateSkillRequest, PaginatedResponseSkillResponse, SearchSkillsRequest, SearchSkillsResponse, SkillOrder, SkillResponse, SkillVersionResponse, SortDirection, UpdateSkillRequest } from '../models/index';
|
|
13
|
+
import type { ActivateSkillVersionRequest, CreateSkillRequest, ExportSkillsRequest, PaginatedResponseSkillResponse, SearchSkillsRequest, SearchSkillsResponse, SkillOrder, SkillResponse, SkillVersionResponse, SortDirection, UpdateSkillRequest } from '../models/index';
|
|
14
14
|
export interface ActivateSkillVersionOperationRequest {
|
|
15
15
|
skillId: string;
|
|
16
16
|
versionId: string;
|
|
@@ -34,6 +34,9 @@ export interface DiscardSkillDraftRequest {
|
|
|
34
34
|
export interface ExportSkillRequest {
|
|
35
35
|
skillId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface ExportSkillsOperationRequest {
|
|
38
|
+
exportSkillsRequest: ExportSkillsRequest;
|
|
39
|
+
}
|
|
37
40
|
export interface GetSkillRequest {
|
|
38
41
|
skillId: string;
|
|
39
42
|
includeFileContents?: boolean;
|
|
@@ -219,6 +222,27 @@ export interface SkillsApiInterface {
|
|
|
219
222
|
* Export Skill Handler
|
|
220
223
|
*/
|
|
221
224
|
exportSkill(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
225
|
+
/**
|
|
226
|
+
* Creates request options for exportSkills without sending the request
|
|
227
|
+
* @param {ExportSkillsRequest} exportSkillsRequest
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
* @memberof SkillsApiInterface
|
|
230
|
+
*/
|
|
231
|
+
exportSkillsRequestOpts(requestParameters: ExportSkillsOperationRequest): Promise<runtime.RequestOpts>;
|
|
232
|
+
/**
|
|
233
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
234
|
+
* @summary Export Skills Handler
|
|
235
|
+
* @param {ExportSkillsRequest} exportSkillsRequest
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
* @memberof SkillsApiInterface
|
|
239
|
+
*/
|
|
240
|
+
exportSkillsRaw(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
241
|
+
/**
|
|
242
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
243
|
+
* Export Skills Handler
|
|
244
|
+
*/
|
|
245
|
+
exportSkills(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
222
246
|
/**
|
|
223
247
|
* Creates request options for getSkill without sending the request
|
|
224
248
|
* @param {string} skillId
|
|
@@ -481,6 +505,20 @@ export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInter
|
|
|
481
505
|
* Export Skill Handler
|
|
482
506
|
*/
|
|
483
507
|
exportSkill(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
508
|
+
/**
|
|
509
|
+
* Creates request options for exportSkills without sending the request
|
|
510
|
+
*/
|
|
511
|
+
exportSkillsRequestOpts(requestParameters: ExportSkillsOperationRequest): Promise<runtime.RequestOpts>;
|
|
512
|
+
/**
|
|
513
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
514
|
+
* Export Skills Handler
|
|
515
|
+
*/
|
|
516
|
+
exportSkillsRaw(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
517
|
+
/**
|
|
518
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
519
|
+
* Export Skills Handler
|
|
520
|
+
*/
|
|
521
|
+
exportSkills(requestParameters: ExportSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
484
522
|
/**
|
|
485
523
|
* Creates request options for getSkill without sending the request
|
|
486
524
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ActivateSkillVersionRequestToJSON, CreateSkillRequestToJSON, PaginatedResponseSkillResponseFromJSON, SearchSkillsRequestToJSON, SearchSkillsResponseFromJSON, SkillResponseFromJSON, SkillVersionResponseFromJSON, UpdateSkillRequestToJSON, } from '../models/index';
|
|
24
|
+
import { ActivateSkillVersionRequestToJSON, CreateSkillRequestToJSON, ExportSkillsRequestToJSON, PaginatedResponseSkillResponseFromJSON, SearchSkillsRequestToJSON, SearchSkillsResponseFromJSON, SkillResponseFromJSON, SkillVersionResponseFromJSON, UpdateSkillRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -375,6 +375,55 @@ export class SkillsApi extends runtime.BaseAPI {
|
|
|
375
375
|
return yield response.value();
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Creates request options for exportSkills without sending the request
|
|
380
|
+
*/
|
|
381
|
+
exportSkillsRequestOpts(requestParameters) {
|
|
382
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
383
|
+
if (requestParameters['exportSkillsRequest'] == null) {
|
|
384
|
+
throw new runtime.RequiredError('exportSkillsRequest', 'Required parameter "exportSkillsRequest" was null or undefined when calling exportSkills().');
|
|
385
|
+
}
|
|
386
|
+
const queryParameters = {};
|
|
387
|
+
const headerParameters = {};
|
|
388
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
389
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
390
|
+
const token = this.configuration.accessToken;
|
|
391
|
+
const tokenString = yield token("bearerAuth", []);
|
|
392
|
+
if (tokenString) {
|
|
393
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
let urlPath = `/v1/skills/export`;
|
|
397
|
+
return {
|
|
398
|
+
path: urlPath,
|
|
399
|
+
method: 'POST',
|
|
400
|
+
headers: headerParameters,
|
|
401
|
+
query: queryParameters,
|
|
402
|
+
body: ExportSkillsRequestToJSON(requestParameters['exportSkillsRequest']),
|
|
403
|
+
};
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
408
|
+
* Export Skills Handler
|
|
409
|
+
*/
|
|
410
|
+
exportSkillsRaw(requestParameters, initOverrides) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const requestOptions = yield this.exportSkillsRequestOpts(requestParameters);
|
|
413
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
414
|
+
return new runtime.BlobApiResponse(response);
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Download several skills\' active versions as one ZIP; needs can_read on each.
|
|
419
|
+
* Export Skills Handler
|
|
420
|
+
*/
|
|
421
|
+
exportSkills(requestParameters, initOverrides) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const response = yield this.exportSkillsRaw(requestParameters, initOverrides);
|
|
424
|
+
return yield response.value();
|
|
425
|
+
});
|
|
426
|
+
}
|
|
378
427
|
/**
|
|
379
428
|
* Creates request options for getSkill without sending the request
|
|
380
429
|
*/
|