@idunion/tl-sdk 0.0.48 → 0.0.50
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 +47 -4
- package/api.js +67 -8
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -225,6 +225,21 @@ export interface TlPayload {
|
|
|
225
225
|
*/
|
|
226
226
|
'verifierId': string;
|
|
227
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Trust List meta info
|
|
230
|
+
*/
|
|
231
|
+
export interface TlPublicInfo {
|
|
232
|
+
'id': string;
|
|
233
|
+
/**
|
|
234
|
+
* Trust List human-readable name
|
|
235
|
+
*/
|
|
236
|
+
'name': string;
|
|
237
|
+
/**
|
|
238
|
+
* Trust List description
|
|
239
|
+
*/
|
|
240
|
+
'description': string;
|
|
241
|
+
'didBase': string;
|
|
242
|
+
}
|
|
228
243
|
export interface Tlr {
|
|
229
244
|
'orgName': string;
|
|
230
245
|
'id': string;
|
|
@@ -380,7 +395,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
380
395
|
*/
|
|
381
396
|
tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
382
397
|
/**
|
|
383
|
-
* Provides a
|
|
398
|
+
* Provides a public information about a specific Trusted List
|
|
399
|
+
* @param {string} tlId
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
tlGetPublicInfo: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
404
|
+
/**
|
|
405
|
+
* Provides a list of public Trusted Lists
|
|
384
406
|
* @param {string} [search]
|
|
385
407
|
* @param {*} [options] Override http request option.
|
|
386
408
|
* @throws {RequiredError}
|
|
@@ -543,7 +565,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
543
565
|
*/
|
|
544
566
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
545
567
|
/**
|
|
546
|
-
* Provides a
|
|
568
|
+
* Provides a public information about a specific Trusted List
|
|
569
|
+
* @param {string} tlId
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
tlGetPublicInfo(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlPublicInfo>>;
|
|
574
|
+
/**
|
|
575
|
+
* Provides a list of public Trusted Lists
|
|
547
576
|
* @param {string} [search]
|
|
548
577
|
* @param {*} [options] Override http request option.
|
|
549
578
|
* @throws {RequiredError}
|
|
@@ -706,7 +735,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
706
735
|
*/
|
|
707
736
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
708
737
|
/**
|
|
709
|
-
* Provides a
|
|
738
|
+
* Provides a public information about a specific Trusted List
|
|
739
|
+
* @param {string} tlId
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
tlGetPublicInfo(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<TlPublicInfo>;
|
|
744
|
+
/**
|
|
745
|
+
* Provides a list of public Trusted Lists
|
|
710
746
|
* @param {string} [search]
|
|
711
747
|
* @param {*} [options] Override http request option.
|
|
712
748
|
* @throws {RequiredError}
|
|
@@ -869,7 +905,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
869
905
|
*/
|
|
870
906
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
871
907
|
/**
|
|
872
|
-
* Provides a
|
|
908
|
+
* Provides a public information about a specific Trusted List
|
|
909
|
+
* @param {string} tlId
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
tlGetPublicInfo(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlPublicInfo, any>>;
|
|
914
|
+
/**
|
|
915
|
+
* Provides a list of public Trusted Lists
|
|
873
916
|
* @param {string} [search]
|
|
874
917
|
* @param {*} [options] Override http request option.
|
|
875
918
|
* @throws {RequiredError}
|
package/api.js
CHANGED
|
@@ -445,13 +445,42 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
445
445
|
};
|
|
446
446
|
}),
|
|
447
447
|
/**
|
|
448
|
-
* Provides a
|
|
448
|
+
* Provides a public information about a specific Trusted List
|
|
449
|
+
* @param {string} tlId
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
tlGetPublicInfo: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
454
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
455
|
+
(0, common_1.assertParamExists)('tlGetPublicInfo', 'tlId', tlId);
|
|
456
|
+
const localVarPath = `/tl/directory/{tl_id}`
|
|
457
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
459
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
460
|
+
let baseOptions;
|
|
461
|
+
if (configuration) {
|
|
462
|
+
baseOptions = configuration.baseOptions;
|
|
463
|
+
}
|
|
464
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
465
|
+
const localVarHeaderParameter = {};
|
|
466
|
+
const localVarQueryParameter = {};
|
|
467
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
468
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
470
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
471
|
+
return {
|
|
472
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
473
|
+
options: localVarRequestOptions,
|
|
474
|
+
};
|
|
475
|
+
}),
|
|
476
|
+
/**
|
|
477
|
+
* Provides a list of public Trusted Lists
|
|
449
478
|
* @param {string} [search]
|
|
450
479
|
* @param {*} [options] Override http request option.
|
|
451
480
|
* @throws {RequiredError}
|
|
452
481
|
*/
|
|
453
482
|
tlList: (search_1, ...args_1) => __awaiter(this, [search_1, ...args_1], void 0, function* (search, options = {}) {
|
|
454
|
-
const localVarPath = `/tl`;
|
|
483
|
+
const localVarPath = `/tl/directory`;
|
|
455
484
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
456
485
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
457
486
|
let baseOptions;
|
|
@@ -461,9 +490,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
461
490
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
462
491
|
const localVarHeaderParameter = {};
|
|
463
492
|
const localVarQueryParameter = {};
|
|
464
|
-
// authentication accessToken required
|
|
465
|
-
// http bearer authentication required
|
|
466
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
467
493
|
if (search !== undefined) {
|
|
468
494
|
localVarQueryParameter['search'] = search;
|
|
469
495
|
}
|
|
@@ -938,7 +964,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
938
964
|
});
|
|
939
965
|
},
|
|
940
966
|
/**
|
|
941
|
-
* Provides a
|
|
967
|
+
* Provides a public information about a specific Trusted List
|
|
968
|
+
* @param {string} tlId
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
tlGetPublicInfo(tlId, options) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
var _a, _b, _c;
|
|
975
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlGetPublicInfo(tlId, options);
|
|
976
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
977
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlGetPublicInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
978
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
979
|
+
});
|
|
980
|
+
},
|
|
981
|
+
/**
|
|
982
|
+
* Provides a list of public Trusted Lists
|
|
942
983
|
* @param {string} [search]
|
|
943
984
|
* @param {*} [options] Override http request option.
|
|
944
985
|
* @throws {RequiredError}
|
|
@@ -1201,7 +1242,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1201
1242
|
return localVarFp.tlGet(tlId, options).then((request) => request(axios, basePath));
|
|
1202
1243
|
},
|
|
1203
1244
|
/**
|
|
1204
|
-
* Provides a
|
|
1245
|
+
* Provides a public information about a specific Trusted List
|
|
1246
|
+
* @param {string} tlId
|
|
1247
|
+
* @param {*} [options] Override http request option.
|
|
1248
|
+
* @throws {RequiredError}
|
|
1249
|
+
*/
|
|
1250
|
+
tlGetPublicInfo(tlId, options) {
|
|
1251
|
+
return localVarFp.tlGetPublicInfo(tlId, options).then((request) => request(axios, basePath));
|
|
1252
|
+
},
|
|
1253
|
+
/**
|
|
1254
|
+
* Provides a list of public Trusted Lists
|
|
1205
1255
|
* @param {string} [search]
|
|
1206
1256
|
* @param {*} [options] Override http request option.
|
|
1207
1257
|
* @throws {RequiredError}
|
|
@@ -1408,7 +1458,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1408
1458
|
return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1409
1459
|
}
|
|
1410
1460
|
/**
|
|
1411
|
-
* Provides a
|
|
1461
|
+
* Provides a public information about a specific Trusted List
|
|
1462
|
+
* @param {string} tlId
|
|
1463
|
+
* @param {*} [options] Override http request option.
|
|
1464
|
+
* @throws {RequiredError}
|
|
1465
|
+
*/
|
|
1466
|
+
tlGetPublicInfo(tlId, options) {
|
|
1467
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlGetPublicInfo(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* Provides a list of public Trusted Lists
|
|
1412
1471
|
* @param {string} [search]
|
|
1413
1472
|
* @param {*} [options] Override http request option.
|
|
1414
1473
|
* @throws {RequiredError}
|