@idunion/tl-sdk 0.0.32 → 0.0.34
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 +60 -0
- package/api.js +135 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -266,6 +266,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
266
266
|
* @throws {RequiredError}
|
|
267
267
|
*/
|
|
268
268
|
didVerificationMethodAdd: (tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
269
|
+
/**
|
|
270
|
+
* Returns an ETSI Trusted list
|
|
271
|
+
* @param {string} tlId
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
etsiTlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
269
276
|
/**
|
|
270
277
|
*
|
|
271
278
|
* @param {*} [options] Override http request option.
|
|
@@ -323,6 +330,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
323
330
|
* @throws {RequiredError}
|
|
324
331
|
*/
|
|
325
332
|
tlPatch: (tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
333
|
+
/**
|
|
334
|
+
* Removes a specific Trust List Record
|
|
335
|
+
* @param {string} tlId Trust List Identifier
|
|
336
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
tlrDelete: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
326
341
|
/**
|
|
327
342
|
* Retrieves a specific Trust List record
|
|
328
343
|
* @param {string} tlId Trust List Identifier
|
|
@@ -399,6 +414,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
399
414
|
* @throws {RequiredError}
|
|
400
415
|
*/
|
|
401
416
|
didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
417
|
+
/**
|
|
418
|
+
* Returns an ETSI Trusted list
|
|
419
|
+
* @param {string} tlId
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
402
424
|
/**
|
|
403
425
|
*
|
|
404
426
|
* @param {*} [options] Override http request option.
|
|
@@ -456,6 +478,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
456
478
|
* @throws {RequiredError}
|
|
457
479
|
*/
|
|
458
480
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
481
|
+
/**
|
|
482
|
+
* Removes a specific Trust List Record
|
|
483
|
+
* @param {string} tlId Trust List Identifier
|
|
484
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
tlrDelete(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
459
489
|
/**
|
|
460
490
|
* Retrieves a specific Trust List record
|
|
461
491
|
* @param {string} tlId Trust List Identifier
|
|
@@ -532,6 +562,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
532
562
|
* @throws {RequiredError}
|
|
533
563
|
*/
|
|
534
564
|
didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
565
|
+
/**
|
|
566
|
+
* Returns an ETSI Trusted list
|
|
567
|
+
* @param {string} tlId
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
535
572
|
/**
|
|
536
573
|
*
|
|
537
574
|
* @param {*} [options] Override http request option.
|
|
@@ -589,6 +626,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
589
626
|
* @throws {RequiredError}
|
|
590
627
|
*/
|
|
591
628
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
629
|
+
/**
|
|
630
|
+
* Removes a specific Trust List Record
|
|
631
|
+
* @param {string} tlId Trust List Identifier
|
|
632
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
633
|
+
* @param {*} [options] Override http request option.
|
|
634
|
+
* @throws {RequiredError}
|
|
635
|
+
*/
|
|
636
|
+
tlrDelete(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
592
637
|
/**
|
|
593
638
|
* Retrieves a specific Trust List record
|
|
594
639
|
* @param {string} tlId Trust List Identifier
|
|
@@ -665,6 +710,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
665
710
|
* @throws {RequiredError}
|
|
666
711
|
*/
|
|
667
712
|
didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
713
|
+
/**
|
|
714
|
+
* Returns an ETSI Trusted list
|
|
715
|
+
* @param {string} tlId
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
etsiTlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
668
720
|
/**
|
|
669
721
|
*
|
|
670
722
|
* @param {*} [options] Override http request option.
|
|
@@ -722,6 +774,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
722
774
|
* @throws {RequiredError}
|
|
723
775
|
*/
|
|
724
776
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
777
|
+
/**
|
|
778
|
+
* Removes a specific Trust List Record
|
|
779
|
+
* @param {string} tlId Trust List Identifier
|
|
780
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
tlrDelete(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
725
785
|
/**
|
|
726
786
|
* Retrieves a specific Trust List record
|
|
727
787
|
* @param {string} tlId Trust List Identifier
|
package/api.js
CHANGED
|
@@ -187,6 +187,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
187
187
|
options: localVarRequestOptions,
|
|
188
188
|
};
|
|
189
189
|
}),
|
|
190
|
+
/**
|
|
191
|
+
* Returns an ETSI Trusted list
|
|
192
|
+
* @param {string} tlId
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
etsiTlGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
197
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
198
|
+
(0, common_1.assertParamExists)('etsiTlGet', 'tlId', tlId);
|
|
199
|
+
const localVarPath = `/{tl_id}/etsi/tsl.xml`
|
|
200
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
203
|
+
let baseOptions;
|
|
204
|
+
if (configuration) {
|
|
205
|
+
baseOptions = configuration.baseOptions;
|
|
206
|
+
}
|
|
207
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
208
|
+
const localVarHeaderParameter = {};
|
|
209
|
+
const localVarQueryParameter = {};
|
|
210
|
+
// authentication accessToken required
|
|
211
|
+
// http bearer authentication required
|
|
212
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
213
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
215
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
216
|
+
return {
|
|
217
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
218
|
+
options: localVarRequestOptions,
|
|
219
|
+
};
|
|
220
|
+
}),
|
|
190
221
|
/**
|
|
191
222
|
*
|
|
192
223
|
* @param {*} [options] Override http request option.
|
|
@@ -427,6 +458,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
427
458
|
options: localVarRequestOptions,
|
|
428
459
|
};
|
|
429
460
|
}),
|
|
461
|
+
/**
|
|
462
|
+
* Removes a specific Trust List Record
|
|
463
|
+
* @param {string} tlId Trust List Identifier
|
|
464
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
tlrDelete: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
|
|
469
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
470
|
+
(0, common_1.assertParamExists)('tlrDelete', 'tlId', tlId);
|
|
471
|
+
// verify required parameter 'tlrId' is not null or undefined
|
|
472
|
+
(0, common_1.assertParamExists)('tlrDelete', 'tlrId', tlrId);
|
|
473
|
+
const localVarPath = `/{tl_id}/{tlr_id}`
|
|
474
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
|
|
475
|
+
.replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
|
|
476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
478
|
+
let baseOptions;
|
|
479
|
+
if (configuration) {
|
|
480
|
+
baseOptions = configuration.baseOptions;
|
|
481
|
+
}
|
|
482
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
483
|
+
const localVarHeaderParameter = {};
|
|
484
|
+
const localVarQueryParameter = {};
|
|
485
|
+
// authentication accessToken required
|
|
486
|
+
// http bearer authentication required
|
|
487
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
488
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
+
return {
|
|
492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
493
|
+
options: localVarRequestOptions,
|
|
494
|
+
};
|
|
495
|
+
}),
|
|
430
496
|
/**
|
|
431
497
|
* Retrieves a specific Trust List record
|
|
432
498
|
* @param {string} tlId Trust List Identifier
|
|
@@ -662,6 +728,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
662
728
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
663
729
|
});
|
|
664
730
|
},
|
|
731
|
+
/**
|
|
732
|
+
* Returns an ETSI Trusted list
|
|
733
|
+
* @param {string} tlId
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
etsiTlGet(tlId, options) {
|
|
738
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
739
|
+
var _a, _b, _c;
|
|
740
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTlGet(tlId, options);
|
|
741
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
742
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.etsiTlGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
743
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
744
|
+
});
|
|
745
|
+
},
|
|
665
746
|
/**
|
|
666
747
|
*
|
|
667
748
|
* @param {*} [options] Override http request option.
|
|
@@ -783,6 +864,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
783
864
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
784
865
|
});
|
|
785
866
|
},
|
|
867
|
+
/**
|
|
868
|
+
* Removes a specific Trust List Record
|
|
869
|
+
* @param {string} tlId Trust List Identifier
|
|
870
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
tlrDelete(tlId, tlrId, options) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
+
var _a, _b, _c;
|
|
877
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrDelete(tlId, tlrId, options);
|
|
878
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
879
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
880
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
881
|
+
});
|
|
882
|
+
},
|
|
786
883
|
/**
|
|
787
884
|
* Retrieves a specific Trust List record
|
|
788
885
|
* @param {string} tlId Trust List Identifier
|
|
@@ -911,6 +1008,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
911
1008
|
didVerificationMethodAdd(tlId, did, verificationMethod, options) {
|
|
912
1009
|
return localVarFp.didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(axios, basePath));
|
|
913
1010
|
},
|
|
1011
|
+
/**
|
|
1012
|
+
* Returns an ETSI Trusted list
|
|
1013
|
+
* @param {string} tlId
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
*/
|
|
1017
|
+
etsiTlGet(tlId, options) {
|
|
1018
|
+
return localVarFp.etsiTlGet(tlId, options).then((request) => request(axios, basePath));
|
|
1019
|
+
},
|
|
914
1020
|
/**
|
|
915
1021
|
*
|
|
916
1022
|
* @param {*} [options] Override http request option.
|
|
@@ -984,6 +1090,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
984
1090
|
tlPatch(tlId, tlPayload, options) {
|
|
985
1091
|
return localVarFp.tlPatch(tlId, tlPayload, options).then((request) => request(axios, basePath));
|
|
986
1092
|
},
|
|
1093
|
+
/**
|
|
1094
|
+
* Removes a specific Trust List Record
|
|
1095
|
+
* @param {string} tlId Trust List Identifier
|
|
1096
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1097
|
+
* @param {*} [options] Override http request option.
|
|
1098
|
+
* @throws {RequiredError}
|
|
1099
|
+
*/
|
|
1100
|
+
tlrDelete(tlId, tlrId, options) {
|
|
1101
|
+
return localVarFp.tlrDelete(tlId, tlrId, options).then((request) => request(axios, basePath));
|
|
1102
|
+
},
|
|
987
1103
|
/**
|
|
988
1104
|
* Retrieves a specific Trust List record
|
|
989
1105
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1080,6 +1196,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1080
1196
|
didVerificationMethodAdd(tlId, did, verificationMethod, options) {
|
|
1081
1197
|
return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(this.axios, this.basePath));
|
|
1082
1198
|
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Returns an ETSI Trusted list
|
|
1201
|
+
* @param {string} tlId
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
etsiTlGet(tlId, options) {
|
|
1206
|
+
return (0, exports.DefaultApiFp)(this.configuration).etsiTlGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1207
|
+
}
|
|
1083
1208
|
/**
|
|
1084
1209
|
*
|
|
1085
1210
|
* @param {*} [options] Override http request option.
|
|
@@ -1153,6 +1278,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1153
1278
|
tlPatch(tlId, tlPayload, options) {
|
|
1154
1279
|
return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1155
1280
|
}
|
|
1281
|
+
/**
|
|
1282
|
+
* Removes a specific Trust List Record
|
|
1283
|
+
* @param {string} tlId Trust List Identifier
|
|
1284
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
*/
|
|
1288
|
+
tlrDelete(tlId, tlrId, options) {
|
|
1289
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlrDelete(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
|
|
1290
|
+
}
|
|
1156
1291
|
/**
|
|
1157
1292
|
* Retrieves a specific Trust List record
|
|
1158
1293
|
* @param {string} tlId Trust List Identifier
|