@idunion/tl-sdk 0.0.49 → 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 +43 -0
- package/api.js +62 -0
- 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;
|
|
@@ -379,6 +394,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
379
394
|
* @throws {RequiredError}
|
|
380
395
|
*/
|
|
381
396
|
tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
397
|
+
/**
|
|
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>;
|
|
382
404
|
/**
|
|
383
405
|
* Provides a list of public Trusted Lists
|
|
384
406
|
* @param {string} [search]
|
|
@@ -542,6 +564,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
542
564
|
* @throws {RequiredError}
|
|
543
565
|
*/
|
|
544
566
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
567
|
+
/**
|
|
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>>;
|
|
545
574
|
/**
|
|
546
575
|
* Provides a list of public Trusted Lists
|
|
547
576
|
* @param {string} [search]
|
|
@@ -705,6 +734,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
705
734
|
* @throws {RequiredError}
|
|
706
735
|
*/
|
|
707
736
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
737
|
+
/**
|
|
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>;
|
|
708
744
|
/**
|
|
709
745
|
* Provides a list of public Trusted Lists
|
|
710
746
|
* @param {string} [search]
|
|
@@ -868,6 +904,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
868
904
|
* @throws {RequiredError}
|
|
869
905
|
*/
|
|
870
906
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
907
|
+
/**
|
|
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>>;
|
|
871
914
|
/**
|
|
872
915
|
* Provides a list of public Trusted Lists
|
|
873
916
|
* @param {string} [search]
|
package/api.js
CHANGED
|
@@ -444,6 +444,35 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
444
444
|
options: localVarRequestOptions,
|
|
445
445
|
};
|
|
446
446
|
}),
|
|
447
|
+
/**
|
|
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
|
+
}),
|
|
447
476
|
/**
|
|
448
477
|
* Provides a list of public Trusted Lists
|
|
449
478
|
* @param {string} [search]
|
|
@@ -934,6 +963,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
934
963
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
935
964
|
});
|
|
936
965
|
},
|
|
966
|
+
/**
|
|
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
|
+
},
|
|
937
981
|
/**
|
|
938
982
|
* Provides a list of public Trusted Lists
|
|
939
983
|
* @param {string} [search]
|
|
@@ -1197,6 +1241,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1197
1241
|
tlGet(tlId, options) {
|
|
1198
1242
|
return localVarFp.tlGet(tlId, options).then((request) => request(axios, basePath));
|
|
1199
1243
|
},
|
|
1244
|
+
/**
|
|
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
|
+
},
|
|
1200
1253
|
/**
|
|
1201
1254
|
* Provides a list of public Trusted Lists
|
|
1202
1255
|
* @param {string} [search]
|
|
@@ -1404,6 +1457,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1404
1457
|
tlGet(tlId, options) {
|
|
1405
1458
|
return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1406
1459
|
}
|
|
1460
|
+
/**
|
|
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
|
+
}
|
|
1407
1469
|
/**
|
|
1408
1470
|
* Provides a list of public Trusted Lists
|
|
1409
1471
|
* @param {string} [search]
|