@idunion/tl-sdk 0.0.23 → 0.0.24
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 +29 -29
- package/api.js +66 -66
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -951,13 +951,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
951
951
|
* @throws {RequiredError}
|
|
952
952
|
*/
|
|
953
953
|
didVerificationMethodAdd: (tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
954
|
-
/**
|
|
955
|
-
* Retrieves a list of DID Documents.
|
|
956
|
-
* @param {string} tlId
|
|
957
|
-
* @param {*} [options] Override http request option.
|
|
958
|
-
* @throws {RequiredError}
|
|
959
|
-
*/
|
|
960
|
-
didsGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
961
954
|
/**
|
|
962
955
|
*
|
|
963
956
|
* @param {*} [options] Override http request option.
|
|
@@ -1015,6 +1008,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1015
1008
|
* @throws {RequiredError}
|
|
1016
1009
|
*/
|
|
1017
1010
|
tlrSearch: (orgName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Retrieves a list of Trust List records.
|
|
1013
|
+
* @param {string} tlId
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
*/
|
|
1017
|
+
tlrsGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Gets a Verifiable Presentation.
|
|
1020
1020
|
* @param {string} tlId
|
|
@@ -1062,13 +1062,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1062
1062
|
* @throws {RequiredError}
|
|
1063
1063
|
*/
|
|
1064
1064
|
didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1065
|
-
/**
|
|
1066
|
-
* Retrieves a list of DID Documents.
|
|
1067
|
-
* @param {string} tlId
|
|
1068
|
-
* @param {*} [options] Override http request option.
|
|
1069
|
-
* @throws {RequiredError}
|
|
1070
|
-
*/
|
|
1071
|
-
didsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocumentList>>;
|
|
1072
1065
|
/**
|
|
1073
1066
|
*
|
|
1074
1067
|
* @param {*} [options] Override http request option.
|
|
@@ -1126,6 +1119,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1126
1119
|
* @throws {RequiredError}
|
|
1127
1120
|
*/
|
|
1128
1121
|
tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Retrieves a list of Trust List records.
|
|
1124
|
+
* @param {string} tlId
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
*/
|
|
1128
|
+
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Gets a Verifiable Presentation.
|
|
1131
1131
|
* @param {string} tlId
|
|
@@ -1173,13 +1173,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1173
1173
|
* @throws {RequiredError}
|
|
1174
1174
|
*/
|
|
1175
1175
|
didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1176
|
-
/**
|
|
1177
|
-
* Retrieves a list of DID Documents.
|
|
1178
|
-
* @param {string} tlId
|
|
1179
|
-
* @param {*} [options] Override http request option.
|
|
1180
|
-
* @throws {RequiredError}
|
|
1181
|
-
*/
|
|
1182
|
-
didsGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocumentList>;
|
|
1183
1176
|
/**
|
|
1184
1177
|
*
|
|
1185
1178
|
* @param {*} [options] Override http request option.
|
|
@@ -1237,6 +1230,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1237
1230
|
* @throws {RequiredError}
|
|
1238
1231
|
*/
|
|
1239
1232
|
tlrSearch(orgName: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Retrieves a list of Trust List records.
|
|
1235
|
+
* @param {string} tlId
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
|
|
1240
1240
|
/**
|
|
1241
1241
|
* Gets a Verifiable Presentation.
|
|
1242
1242
|
* @param {string} tlId
|
|
@@ -1290,14 +1290,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1290
1290
|
* @memberof DefaultApi
|
|
1291
1291
|
*/
|
|
1292
1292
|
didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1293
|
-
/**
|
|
1294
|
-
* Retrieves a list of DID Documents.
|
|
1295
|
-
* @param {string} tlId
|
|
1296
|
-
* @param {*} [options] Override http request option.
|
|
1297
|
-
* @throws {RequiredError}
|
|
1298
|
-
* @memberof DefaultApi
|
|
1299
|
-
*/
|
|
1300
|
-
didsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocumentList, any>>;
|
|
1301
1293
|
/**
|
|
1302
1294
|
*
|
|
1303
1295
|
* @param {*} [options] Override http request option.
|
|
@@ -1363,6 +1355,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1363
1355
|
* @memberof DefaultApi
|
|
1364
1356
|
*/
|
|
1365
1357
|
tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Retrieves a list of Trust List records.
|
|
1360
|
+
* @param {string} tlId
|
|
1361
|
+
* @param {*} [options] Override http request option.
|
|
1362
|
+
* @throws {RequiredError}
|
|
1363
|
+
* @memberof DefaultApi
|
|
1364
|
+
*/
|
|
1365
|
+
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Gets a Verifiable Presentation.
|
|
1368
1368
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -69,7 +69,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
69
69
|
didDocumentCreate: (tlId_1, didDocumentCreatePayload_1, ...args_1) => __awaiter(this, [tlId_1, didDocumentCreatePayload_1, ...args_1], void 0, function* (tlId, didDocumentCreatePayload, options = {}) {
|
|
70
70
|
// verify required parameter 'tlId' is not null or undefined
|
|
71
71
|
(0, common_1.assertParamExists)('didDocumentCreate', 'tlId', tlId);
|
|
72
|
-
const localVarPath = `/{tl_id}/
|
|
72
|
+
const localVarPath = `/{tl_id}/tlrs`
|
|
73
73
|
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
74
74
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
75
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -194,37 +194,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
options: localVarRequestOptions,
|
|
195
195
|
};
|
|
196
196
|
}),
|
|
197
|
-
/**
|
|
198
|
-
* Retrieves a list of DID Documents.
|
|
199
|
-
* @param {string} tlId
|
|
200
|
-
* @param {*} [options] Override http request option.
|
|
201
|
-
* @throws {RequiredError}
|
|
202
|
-
*/
|
|
203
|
-
didsGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
204
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
205
|
-
(0, common_1.assertParamExists)('didsGet', 'tlId', tlId);
|
|
206
|
-
const localVarPath = `/{tl_id}/dids`
|
|
207
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
208
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
209
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
210
|
-
let baseOptions;
|
|
211
|
-
if (configuration) {
|
|
212
|
-
baseOptions = configuration.baseOptions;
|
|
213
|
-
}
|
|
214
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
215
|
-
const localVarHeaderParameter = {};
|
|
216
|
-
const localVarQueryParameter = {};
|
|
217
|
-
// authentication accessToken required
|
|
218
|
-
// http bearer authentication required
|
|
219
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
220
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
221
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
223
|
-
return {
|
|
224
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
225
|
-
options: localVarRequestOptions,
|
|
226
|
-
};
|
|
227
|
-
}),
|
|
228
197
|
/**
|
|
229
198
|
*
|
|
230
199
|
* @param {*} [options] Override http request option.
|
|
@@ -462,6 +431,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
462
431
|
options: localVarRequestOptions,
|
|
463
432
|
};
|
|
464
433
|
}),
|
|
434
|
+
/**
|
|
435
|
+
* Retrieves a list of Trust List records.
|
|
436
|
+
* @param {string} tlId
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
tlrsGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
441
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
442
|
+
(0, common_1.assertParamExists)('tlrsGet', 'tlId', tlId);
|
|
443
|
+
const localVarPath = `/{tl_id}/tlrs`
|
|
444
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
447
|
+
let baseOptions;
|
|
448
|
+
if (configuration) {
|
|
449
|
+
baseOptions = configuration.baseOptions;
|
|
450
|
+
}
|
|
451
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
452
|
+
const localVarHeaderParameter = {};
|
|
453
|
+
const localVarQueryParameter = {};
|
|
454
|
+
// authentication accessToken required
|
|
455
|
+
// http bearer authentication required
|
|
456
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
457
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
459
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
460
|
+
return {
|
|
461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
};
|
|
464
|
+
}),
|
|
465
465
|
/**
|
|
466
466
|
* Gets a Verifiable Presentation.
|
|
467
467
|
* @param {string} tlId
|
|
@@ -575,21 +575,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
575
575
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
576
|
});
|
|
577
577
|
},
|
|
578
|
-
/**
|
|
579
|
-
* Retrieves a list of DID Documents.
|
|
580
|
-
* @param {string} tlId
|
|
581
|
-
* @param {*} [options] Override http request option.
|
|
582
|
-
* @throws {RequiredError}
|
|
583
|
-
*/
|
|
584
|
-
didsGet(tlId, options) {
|
|
585
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
586
|
-
var _a, _b, _c;
|
|
587
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didsGet(tlId, options);
|
|
588
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
589
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
590
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
591
|
-
});
|
|
592
|
-
},
|
|
593
578
|
/**
|
|
594
579
|
*
|
|
595
580
|
* @param {*} [options] Override http request option.
|
|
@@ -711,6 +696,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
711
696
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
697
|
});
|
|
713
698
|
},
|
|
699
|
+
/**
|
|
700
|
+
* Retrieves a list of Trust List records.
|
|
701
|
+
* @param {string} tlId
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
*/
|
|
705
|
+
tlrsGet(tlId, options) {
|
|
706
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
+
var _a, _b, _c;
|
|
708
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrsGet(tlId, options);
|
|
709
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
710
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
711
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
|
+
});
|
|
713
|
+
},
|
|
714
714
|
/**
|
|
715
715
|
* Gets a Verifiable Presentation.
|
|
716
716
|
* @param {string} tlId
|
|
@@ -778,15 +778,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
778
778
|
didVerificationMethodAdd(tlId, did, verificationMethod, options) {
|
|
779
779
|
return localVarFp.didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(axios, basePath));
|
|
780
780
|
},
|
|
781
|
-
/**
|
|
782
|
-
* Retrieves a list of DID Documents.
|
|
783
|
-
* @param {string} tlId
|
|
784
|
-
* @param {*} [options] Override http request option.
|
|
785
|
-
* @throws {RequiredError}
|
|
786
|
-
*/
|
|
787
|
-
didsGet(tlId, options) {
|
|
788
|
-
return localVarFp.didsGet(tlId, options).then((request) => request(axios, basePath));
|
|
789
|
-
},
|
|
790
781
|
/**
|
|
791
782
|
*
|
|
792
783
|
* @param {*} [options] Override http request option.
|
|
@@ -860,6 +851,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
860
851
|
tlrSearch(orgName, options) {
|
|
861
852
|
return localVarFp.tlrSearch(orgName, options).then((request) => request(axios, basePath));
|
|
862
853
|
},
|
|
854
|
+
/**
|
|
855
|
+
* Retrieves a list of Trust List records.
|
|
856
|
+
* @param {string} tlId
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
tlrsGet(tlId, options) {
|
|
861
|
+
return localVarFp.tlrsGet(tlId, options).then((request) => request(axios, basePath));
|
|
862
|
+
},
|
|
863
863
|
/**
|
|
864
864
|
* Gets a Verifiable Presentation.
|
|
865
865
|
* @param {string} tlId
|
|
@@ -925,16 +925,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
925
925
|
didVerificationMethodAdd(tlId, did, verificationMethod, options) {
|
|
926
926
|
return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(this.axios, this.basePath));
|
|
927
927
|
}
|
|
928
|
-
/**
|
|
929
|
-
* Retrieves a list of DID Documents.
|
|
930
|
-
* @param {string} tlId
|
|
931
|
-
* @param {*} [options] Override http request option.
|
|
932
|
-
* @throws {RequiredError}
|
|
933
|
-
* @memberof DefaultApi
|
|
934
|
-
*/
|
|
935
|
-
didsGet(tlId, options) {
|
|
936
|
-
return (0, exports.DefaultApiFp)(this.configuration).didsGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
937
|
-
}
|
|
938
928
|
/**
|
|
939
929
|
*
|
|
940
930
|
* @param {*} [options] Override http request option.
|
|
@@ -1016,6 +1006,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1016
1006
|
tlrSearch(orgName, options) {
|
|
1017
1007
|
return (0, exports.DefaultApiFp)(this.configuration).tlrSearch(orgName, options).then((request) => request(this.axios, this.basePath));
|
|
1018
1008
|
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Retrieves a list of Trust List records.
|
|
1011
|
+
* @param {string} tlId
|
|
1012
|
+
* @param {*} [options] Override http request option.
|
|
1013
|
+
* @throws {RequiredError}
|
|
1014
|
+
* @memberof DefaultApi
|
|
1015
|
+
*/
|
|
1016
|
+
tlrsGet(tlId, options) {
|
|
1017
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlrsGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1018
|
+
}
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Gets a Verifiable Presentation.
|
|
1021
1021
|
* @param {string} tlId
|