@idunion/tl-sdk 0.0.42 → 0.0.44

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/api.d.ts CHANGED
@@ -385,6 +385,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
385
385
  * @throws {RequiredError}
386
386
  */
387
387
  tlList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
388
+ /**
389
+ * Provides a list of Trusted Lists for an authenticated owner
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ tlListByOwner: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
388
394
  /**
389
395
  * Updates a Trust List based on the specified payload.
390
396
  * @param {string} tlId
@@ -541,6 +547,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
541
547
  * @throws {RequiredError}
542
548
  */
543
549
  tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
550
+ /**
551
+ * Provides a list of Trusted Lists for an authenticated owner
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ tlListByOwner(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
544
556
  /**
545
557
  * Updates a Trust List based on the specified payload.
546
558
  * @param {string} tlId
@@ -697,6 +709,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
697
709
  * @throws {RequiredError}
698
710
  */
699
711
  tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
712
+ /**
713
+ * Provides a list of Trusted Lists for an authenticated owner
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ tlListByOwner(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
700
718
  /**
701
719
  * Updates a Trust List based on the specified payload.
702
720
  * @param {string} tlId
@@ -853,6 +871,12 @@ export declare class DefaultApi extends BaseAPI {
853
871
  * @throws {RequiredError}
854
872
  */
855
873
  tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
874
+ /**
875
+ * Provides a list of Trusted Lists for an authenticated owner
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ tlListByOwner(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
856
880
  /**
857
881
  * Updates a Trust List based on the specified payload.
858
882
  * @param {string} tlId
package/api.js CHANGED
@@ -459,6 +459,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
459
459
  options: localVarRequestOptions,
460
460
  };
461
461
  }),
462
+ /**
463
+ * Provides a list of Trusted Lists for an authenticated owner
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ tlListByOwner: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
468
+ const localVarPath = `/tl/owner`;
469
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
471
+ let baseOptions;
472
+ if (configuration) {
473
+ baseOptions = configuration.baseOptions;
474
+ }
475
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
476
+ const localVarHeaderParameter = {};
477
+ const localVarQueryParameter = {};
478
+ // authentication accessToken required
479
+ // http bearer authentication required
480
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
481
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ return {
485
+ url: (0, common_1.toPathString)(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ };
488
+ }),
462
489
  /**
463
490
  * Updates a Trust List based on the specified payload.
464
491
  * @param {string} tlId
@@ -899,6 +926,20 @@ const DefaultApiFp = function (configuration) {
899
926
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
900
927
  });
901
928
  },
929
+ /**
930
+ * Provides a list of Trusted Lists for an authenticated owner
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ tlListByOwner(options) {
935
+ return __awaiter(this, void 0, void 0, function* () {
936
+ var _a, _b, _c;
937
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlListByOwner(options);
938
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
939
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlListByOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
940
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
941
+ });
942
+ },
902
943
  /**
903
944
  * Updates a Trust List based on the specified payload.
904
945
  * @param {string} tlId
@@ -1141,6 +1182,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1141
1182
  tlList(options) {
1142
1183
  return localVarFp.tlList(options).then((request) => request(axios, basePath));
1143
1184
  },
1185
+ /**
1186
+ * Provides a list of Trusted Lists for an authenticated owner
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ tlListByOwner(options) {
1191
+ return localVarFp.tlListByOwner(options).then((request) => request(axios, basePath));
1192
+ },
1144
1193
  /**
1145
1194
  * Updates a Trust List based on the specified payload.
1146
1195
  * @param {string} tlId
@@ -1339,6 +1388,14 @@ class DefaultApi extends base_1.BaseAPI {
1339
1388
  tlList(options) {
1340
1389
  return (0, exports.DefaultApiFp)(this.configuration).tlList(options).then((request) => request(this.axios, this.basePath));
1341
1390
  }
1391
+ /**
1392
+ * Provides a list of Trusted Lists for an authenticated owner
1393
+ * @param {*} [options] Override http request option.
1394
+ * @throws {RequiredError}
1395
+ */
1396
+ tlListByOwner(options) {
1397
+ return (0, exports.DefaultApiFp)(this.configuration).tlListByOwner(options).then((request) => request(this.axios, this.basePath));
1398
+ }
1342
1399
  /**
1343
1400
  * Updates a Trust List based on the specified payload.
1344
1401
  * @param {string} tlId
@@ -9,11 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
12
23
  export interface ConfigurationParameters {
13
24
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
25
  username?: string;
15
26
  password?: string;
16
27
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
17
29
  basePath?: string;
18
30
  serverIndex?: number;
19
31
  baseOptions?: any;
@@ -39,6 +51,17 @@ export declare class Configuration {
39
51
  * @param scopes oauth2 scope
40
52
  */
41
53
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
+ /**
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
62
+ * @memberof Configuration
63
+ */
64
+ awsv4?: AWSv4Configuration;
42
65
  /**
43
66
  * override base path
44
67
  */
@@ -72,3 +95,4 @@ export declare class Configuration {
72
95
  */
73
96
  isJsonMime(mime: string): boolean;
74
97
  }
98
+ export {};
package/configuration.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
- /* eslint-disable */
4
3
  /**
5
4
  * IDunion Trust List API
6
5
  * IDunion Trust List API
@@ -21,6 +20,7 @@ class Configuration {
21
20
  this.username = param.username;
22
21
  this.password = param.password;
23
22
  this.accessToken = param.accessToken;
23
+ this.awsv4 = param.awsv4;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
26
  this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.42",
4
+ "version": "0.0.44",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {