@idunion/tl-sdk 0.0.34 → 0.0.35
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 +69 -12
- package/api.js +97 -20
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -223,6 +223,27 @@ export interface VerificationMethod {
|
|
|
223
223
|
* The value of the type property MUST be a string that references exactly one verification method type. In order to maximize global interoperability, the verification method type SHOULD be registered in the DID Specification Registries [DID-SPEC-REGISTRIES].
|
|
224
224
|
*/
|
|
225
225
|
'type': string;
|
|
226
|
+
/**
|
|
227
|
+
* DateTimeStamp string specifying when the verification method MUST NOT be used.
|
|
228
|
+
*/
|
|
229
|
+
'revoked': string;
|
|
230
|
+
}
|
|
231
|
+
export interface VerificationMethodCreatePayload {
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
'controller': string;
|
|
234
|
+
'id': string;
|
|
235
|
+
/**
|
|
236
|
+
* The value of the type property MUST be a string that references exactly one verification method type. In order to maximize global interoperability, the verification method type SHOULD be registered in the DID Specification Registries [DID-SPEC-REGISTRIES].
|
|
237
|
+
*/
|
|
238
|
+
'type': string;
|
|
239
|
+
}
|
|
240
|
+
export interface VerificationMethodPatchPayload {
|
|
241
|
+
'controller': string;
|
|
242
|
+
'id': string;
|
|
243
|
+
/**
|
|
244
|
+
* DateTimeStamp string specifying when the verification method MUST NOT be used.
|
|
245
|
+
*/
|
|
246
|
+
'revoked': string;
|
|
226
247
|
}
|
|
227
248
|
export interface VpResponse {
|
|
228
249
|
/**
|
|
@@ -260,12 +281,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
260
281
|
/**
|
|
261
282
|
* Adds DID Verification method.
|
|
262
283
|
* @param {string} tlId Trust List Identifier
|
|
263
|
-
* @param {string}
|
|
264
|
-
* @param {
|
|
284
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
285
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
didVerificationMethodAdd: (tlId: string, tlrId: string, verificationMethodCreatePayload?: VerificationMethodCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
290
|
+
/**
|
|
291
|
+
* Adds DID Verification method.
|
|
292
|
+
* @param {string} tlId Trust List Identifier
|
|
293
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
294
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
265
295
|
* @param {*} [options] Override http request option.
|
|
266
296
|
* @throws {RequiredError}
|
|
267
297
|
*/
|
|
268
|
-
|
|
298
|
+
didVerificationMethodPatch: (tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
269
299
|
/**
|
|
270
300
|
* Returns an ETSI Trusted list
|
|
271
301
|
* @param {string} tlId
|
|
@@ -408,12 +438,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
408
438
|
/**
|
|
409
439
|
* Adds DID Verification method.
|
|
410
440
|
* @param {string} tlId Trust List Identifier
|
|
411
|
-
* @param {string}
|
|
412
|
-
* @param {
|
|
441
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
442
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
413
443
|
* @param {*} [options] Override http request option.
|
|
414
444
|
* @throws {RequiredError}
|
|
415
445
|
*/
|
|
416
|
-
didVerificationMethodAdd(tlId: string,
|
|
446
|
+
didVerificationMethodAdd(tlId: string, tlrId: string, verificationMethodCreatePayload?: VerificationMethodCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
447
|
+
/**
|
|
448
|
+
* Adds DID Verification method.
|
|
449
|
+
* @param {string} tlId Trust List Identifier
|
|
450
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
451
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
*/
|
|
455
|
+
didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
417
456
|
/**
|
|
418
457
|
* Returns an ETSI Trusted list
|
|
419
458
|
* @param {string} tlId
|
|
@@ -556,12 +595,21 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
556
595
|
/**
|
|
557
596
|
* Adds DID Verification method.
|
|
558
597
|
* @param {string} tlId Trust List Identifier
|
|
559
|
-
* @param {string}
|
|
560
|
-
* @param {
|
|
598
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
599
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
561
600
|
* @param {*} [options] Override http request option.
|
|
562
601
|
* @throws {RequiredError}
|
|
563
602
|
*/
|
|
564
|
-
didVerificationMethodAdd(tlId: string,
|
|
603
|
+
didVerificationMethodAdd(tlId: string, tlrId: string, verificationMethodCreatePayload?: VerificationMethodCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
604
|
+
/**
|
|
605
|
+
* Adds DID Verification method.
|
|
606
|
+
* @param {string} tlId Trust List Identifier
|
|
607
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
608
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
565
613
|
/**
|
|
566
614
|
* Returns an ETSI Trusted list
|
|
567
615
|
* @param {string} tlId
|
|
@@ -704,12 +752,21 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
704
752
|
/**
|
|
705
753
|
* Adds DID Verification method.
|
|
706
754
|
* @param {string} tlId Trust List Identifier
|
|
707
|
-
* @param {string}
|
|
708
|
-
* @param {
|
|
755
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
756
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
*/
|
|
760
|
+
didVerificationMethodAdd(tlId: string, tlrId: string, verificationMethodCreatePayload?: VerificationMethodCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
761
|
+
/**
|
|
762
|
+
* Adds DID Verification method.
|
|
763
|
+
* @param {string} tlId Trust List Identifier
|
|
764
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
765
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
709
766
|
* @param {*} [options] Override http request option.
|
|
710
767
|
* @throws {RequiredError}
|
|
711
768
|
*/
|
|
712
|
-
|
|
769
|
+
didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
713
770
|
/**
|
|
714
771
|
* Returns an ETSI Trusted list
|
|
715
772
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -152,19 +152,19 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
152
152
|
/**
|
|
153
153
|
* Adds DID Verification method.
|
|
154
154
|
* @param {string} tlId Trust List Identifier
|
|
155
|
-
* @param {string}
|
|
156
|
-
* @param {
|
|
155
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
156
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
160
|
-
didVerificationMethodAdd: (tlId_1,
|
|
160
|
+
didVerificationMethodAdd: (tlId_1, tlrId_1, verificationMethodCreatePayload_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, verificationMethodCreatePayload_1, ...args_1], void 0, function* (tlId, tlrId, verificationMethodCreatePayload, options = {}) {
|
|
161
161
|
// verify required parameter 'tlId' is not null or undefined
|
|
162
162
|
(0, common_1.assertParamExists)('didVerificationMethodAdd', 'tlId', tlId);
|
|
163
|
-
// verify required parameter '
|
|
164
|
-
(0, common_1.assertParamExists)('didVerificationMethodAdd', '
|
|
165
|
-
const localVarPath = `/{tl_id}/dids/{
|
|
163
|
+
// verify required parameter 'tlrId' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('didVerificationMethodAdd', 'tlrId', tlrId);
|
|
165
|
+
const localVarPath = `/{tl_id}/dids/{tlr_id}/verificationMethod`
|
|
166
166
|
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
|
|
167
|
-
.replace(`{${"
|
|
167
|
+
.replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
|
|
168
168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
169
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
170
|
let baseOptions;
|
|
@@ -181,7 +181,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
182
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
183
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verificationMethodCreatePayload, localVarRequestOptions, configuration);
|
|
185
|
+
return {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
}),
|
|
190
|
+
/**
|
|
191
|
+
* Adds DID Verification method.
|
|
192
|
+
* @param {string} tlId Trust List Identifier
|
|
193
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
194
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
didVerificationMethodPatch: (tlId_1, tlrId_1, verificationMethodPatchPayload_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, verificationMethodPatchPayload_1, ...args_1], void 0, function* (tlId, tlrId, verificationMethodPatchPayload, options = {}) {
|
|
199
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
200
|
+
(0, common_1.assertParamExists)('didVerificationMethodPatch', 'tlId', tlId);
|
|
201
|
+
// verify required parameter 'tlrId' is not null or undefined
|
|
202
|
+
(0, common_1.assertParamExists)('didVerificationMethodPatch', 'tlrId', tlrId);
|
|
203
|
+
const localVarPath = `/{tl_id}/dids/{tlr_id}/verificationMethod`
|
|
204
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
|
|
205
|
+
.replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
|
|
206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
207
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
208
|
+
let baseOptions;
|
|
209
|
+
if (configuration) {
|
|
210
|
+
baseOptions = configuration.baseOptions;
|
|
211
|
+
}
|
|
212
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
213
|
+
const localVarHeaderParameter = {};
|
|
214
|
+
const localVarQueryParameter = {};
|
|
215
|
+
// authentication accessToken required
|
|
216
|
+
// http bearer authentication required
|
|
217
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
218
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
219
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
220
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
221
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
222
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verificationMethodPatchPayload, localVarRequestOptions, configuration);
|
|
185
223
|
return {
|
|
186
224
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
225
|
options: localVarRequestOptions,
|
|
@@ -714,20 +752,37 @@ const DefaultApiFp = function (configuration) {
|
|
|
714
752
|
/**
|
|
715
753
|
* Adds DID Verification method.
|
|
716
754
|
* @param {string} tlId Trust List Identifier
|
|
717
|
-
* @param {string}
|
|
718
|
-
* @param {
|
|
755
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
756
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
719
757
|
* @param {*} [options] Override http request option.
|
|
720
758
|
* @throws {RequiredError}
|
|
721
759
|
*/
|
|
722
|
-
didVerificationMethodAdd(tlId,
|
|
760
|
+
didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload, options) {
|
|
723
761
|
return __awaiter(this, void 0, void 0, function* () {
|
|
724
762
|
var _a, _b, _c;
|
|
725
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didVerificationMethodAdd(tlId,
|
|
763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload, options);
|
|
726
764
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
727
765
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didVerificationMethodAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
728
766
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
729
767
|
});
|
|
730
768
|
},
|
|
769
|
+
/**
|
|
770
|
+
* Adds DID Verification method.
|
|
771
|
+
* @param {string} tlId Trust List Identifier
|
|
772
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
773
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
*/
|
|
777
|
+
didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options) {
|
|
778
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
779
|
+
var _a, _b, _c;
|
|
780
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options);
|
|
781
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
782
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didVerificationMethodPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
783
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
784
|
+
});
|
|
785
|
+
},
|
|
731
786
|
/**
|
|
732
787
|
* Returns an ETSI Trusted list
|
|
733
788
|
* @param {string} tlId
|
|
@@ -1000,13 +1055,24 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1000
1055
|
/**
|
|
1001
1056
|
* Adds DID Verification method.
|
|
1002
1057
|
* @param {string} tlId Trust List Identifier
|
|
1003
|
-
* @param {string}
|
|
1004
|
-
* @param {
|
|
1058
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1059
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload, options) {
|
|
1064
|
+
return localVarFp.didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload, options).then((request) => request(axios, basePath));
|
|
1065
|
+
},
|
|
1066
|
+
/**
|
|
1067
|
+
* Adds DID Verification method.
|
|
1068
|
+
* @param {string} tlId Trust List Identifier
|
|
1069
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1070
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
1005
1071
|
* @param {*} [options] Override http request option.
|
|
1006
1072
|
* @throws {RequiredError}
|
|
1007
1073
|
*/
|
|
1008
|
-
|
|
1009
|
-
return localVarFp.
|
|
1074
|
+
didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options) {
|
|
1075
|
+
return localVarFp.didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options).then((request) => request(axios, basePath));
|
|
1010
1076
|
},
|
|
1011
1077
|
/**
|
|
1012
1078
|
* Returns an ETSI Trusted list
|
|
@@ -1188,13 +1254,24 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1188
1254
|
/**
|
|
1189
1255
|
* Adds DID Verification method.
|
|
1190
1256
|
* @param {string} tlId Trust List Identifier
|
|
1191
|
-
* @param {string}
|
|
1192
|
-
* @param {
|
|
1257
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1258
|
+
* @param {VerificationMethodCreatePayload} [verificationMethodCreatePayload] Verification method.
|
|
1259
|
+
* @param {*} [options] Override http request option.
|
|
1260
|
+
* @throws {RequiredError}
|
|
1261
|
+
*/
|
|
1262
|
+
didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload, options) {
|
|
1263
|
+
return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload, options).then((request) => request(this.axios, this.basePath));
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Adds DID Verification method.
|
|
1267
|
+
* @param {string} tlId Trust List Identifier
|
|
1268
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1269
|
+
* @param {VerificationMethodPatchPayload} [verificationMethodPatchPayload] Verification method.
|
|
1193
1270
|
* @param {*} [options] Override http request option.
|
|
1194
1271
|
* @throws {RequiredError}
|
|
1195
1272
|
*/
|
|
1196
|
-
|
|
1197
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
1273
|
+
didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options) {
|
|
1274
|
+
return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1198
1275
|
}
|
|
1199
1276
|
/**
|
|
1200
1277
|
* Returns an ETSI Trusted list
|