@idunion/tl-sdk 0.0.56 → 0.0.58
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 +64 -8
- package/api.js +92 -15
- package/common.d.ts +1 -1
- package/common.js +1 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ export interface Tl {
|
|
|
188
188
|
* Trust List human-readable name
|
|
189
189
|
*/
|
|
190
190
|
'name': string;
|
|
191
|
+
'type'?: TlType;
|
|
191
192
|
/**
|
|
192
193
|
* Trust List description
|
|
193
194
|
*/
|
|
@@ -207,6 +208,7 @@ export interface TlPayload {
|
|
|
207
208
|
* Trust List human-readable name
|
|
208
209
|
*/
|
|
209
210
|
'name': string;
|
|
211
|
+
'type'?: TlType;
|
|
210
212
|
/**
|
|
211
213
|
* Trust List description
|
|
212
214
|
*/
|
|
@@ -240,6 +242,19 @@ export interface TlPublicInfo {
|
|
|
240
242
|
export interface TlPublicInfoList {
|
|
241
243
|
'items'?: Array<TlPublicInfo>;
|
|
242
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Trust List type
|
|
247
|
+
*/
|
|
248
|
+
export declare const TlType: {
|
|
249
|
+
readonly QeaaProvider: "QEAA_Provider";
|
|
250
|
+
readonly PuBeaaProvider: "PuBEAA_Provider";
|
|
251
|
+
readonly WalletProvider: "Wallet_Provider";
|
|
252
|
+
readonly PidProvider: "PID_Provider";
|
|
253
|
+
readonly AccessCertificateAuthority: "Access_Certificate_Authority";
|
|
254
|
+
readonly RegistrationCertificatesProvider: "Registration_Certificates_Provider";
|
|
255
|
+
readonly EaaProvider: "EAA_Provider";
|
|
256
|
+
};
|
|
257
|
+
export type TlType = typeof TlType[keyof typeof TlType];
|
|
243
258
|
export interface Tlr {
|
|
244
259
|
'orgName': string;
|
|
245
260
|
'id': string;
|
|
@@ -268,6 +283,19 @@ export interface TlrCreatePayload {
|
|
|
268
283
|
'didKey'?: string;
|
|
269
284
|
'csr'?: string;
|
|
270
285
|
'orgName': string;
|
|
286
|
+
'orgTradeName': string;
|
|
287
|
+
'orgStreetAddress': string;
|
|
288
|
+
'orgCity': string;
|
|
289
|
+
'orgState': string;
|
|
290
|
+
'orgPostalCode': string;
|
|
291
|
+
'orgCountry': string;
|
|
292
|
+
'orgEmail': string;
|
|
293
|
+
'orgPhone': string;
|
|
294
|
+
'orgWebAddress': string;
|
|
295
|
+
'orgToC': string;
|
|
296
|
+
'walletSolutionName': string;
|
|
297
|
+
'walletSolutionUrl': string;
|
|
298
|
+
'walletSolutionRefId': string;
|
|
271
299
|
}
|
|
272
300
|
export interface TlrCreatedResult {
|
|
273
301
|
'did': string;
|
|
@@ -353,12 +381,19 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
353
381
|
*/
|
|
354
382
|
didVerificationMethodPatch: (tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
355
383
|
/**
|
|
356
|
-
* Returns an ETSI Trusted list
|
|
384
|
+
* Returns an ETSI 119 602 Trusted list
|
|
385
|
+
* @param {string} tlId
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
*/
|
|
389
|
+
etsiTl602Get: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
390
|
+
/**
|
|
391
|
+
* Returns an ETSI 119 612 Trusted list
|
|
357
392
|
* @param {string} tlId
|
|
358
393
|
* @param {*} [options] Override http request option.
|
|
359
394
|
* @throws {RequiredError}
|
|
360
395
|
*/
|
|
361
|
-
|
|
396
|
+
etsiTl612Get: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
362
397
|
/**
|
|
363
398
|
*
|
|
364
399
|
* @param {*} [options] Override http request option.
|
|
@@ -523,12 +558,19 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
523
558
|
*/
|
|
524
559
|
didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
525
560
|
/**
|
|
526
|
-
* Returns an ETSI Trusted list
|
|
561
|
+
* Returns an ETSI 119 602 Trusted list
|
|
527
562
|
* @param {string} tlId
|
|
528
563
|
* @param {*} [options] Override http request option.
|
|
529
564
|
* @throws {RequiredError}
|
|
530
565
|
*/
|
|
531
|
-
|
|
566
|
+
etsiTl602Get(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
567
|
+
/**
|
|
568
|
+
* Returns an ETSI 119 612 Trusted list
|
|
569
|
+
* @param {string} tlId
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
etsiTl612Get(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
532
574
|
/**
|
|
533
575
|
*
|
|
534
576
|
* @param {*} [options] Override http request option.
|
|
@@ -693,12 +735,19 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
693
735
|
*/
|
|
694
736
|
didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
695
737
|
/**
|
|
696
|
-
* Returns an ETSI Trusted list
|
|
738
|
+
* Returns an ETSI 119 602 Trusted list
|
|
739
|
+
* @param {string} tlId
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
etsiTl602Get(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
744
|
+
/**
|
|
745
|
+
* Returns an ETSI 119 612 Trusted list
|
|
697
746
|
* @param {string} tlId
|
|
698
747
|
* @param {*} [options] Override http request option.
|
|
699
748
|
* @throws {RequiredError}
|
|
700
749
|
*/
|
|
701
|
-
|
|
750
|
+
etsiTl612Get(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
702
751
|
/**
|
|
703
752
|
*
|
|
704
753
|
* @param {*} [options] Override http request option.
|
|
@@ -863,12 +912,19 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
863
912
|
*/
|
|
864
913
|
didVerificationMethodPatch(tlId: string, tlrId: string, verificationMethodPatchPayload?: VerificationMethodPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
865
914
|
/**
|
|
866
|
-
* Returns an ETSI Trusted list
|
|
915
|
+
* Returns an ETSI 119 602 Trusted list
|
|
916
|
+
* @param {string} tlId
|
|
917
|
+
* @param {*} [options] Override http request option.
|
|
918
|
+
* @throws {RequiredError}
|
|
919
|
+
*/
|
|
920
|
+
etsiTl602Get(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
921
|
+
/**
|
|
922
|
+
* Returns an ETSI 119 612 Trusted list
|
|
867
923
|
* @param {string} tlId
|
|
868
924
|
* @param {*} [options] Override http request option.
|
|
869
925
|
* @throws {RequiredError}
|
|
870
926
|
*/
|
|
871
|
-
|
|
927
|
+
etsiTl612Get(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
872
928
|
/**
|
|
873
929
|
*
|
|
874
930
|
* @param {*} [options] Override http request option.
|
package/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.TlrStatusEnum = exports.OnboardingStatusStatusEnum = exports.HealthStatusStatusEnum = void 0;
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.TlrStatusEnum = exports.TlType = exports.OnboardingStatusStatusEnum = exports.HealthStatusStatusEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -42,6 +42,18 @@ exports.OnboardingStatusStatusEnum = {
|
|
|
42
42
|
Completed: 'completed',
|
|
43
43
|
Error: 'error'
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Trust List type
|
|
47
|
+
*/
|
|
48
|
+
exports.TlType = {
|
|
49
|
+
QeaaProvider: 'QEAA_Provider',
|
|
50
|
+
PuBeaaProvider: 'PuBEAA_Provider',
|
|
51
|
+
WalletProvider: 'Wallet_Provider',
|
|
52
|
+
PidProvider: 'PID_Provider',
|
|
53
|
+
AccessCertificateAuthority: 'Access_Certificate_Authority',
|
|
54
|
+
RegistrationCertificatesProvider: 'Registration_Certificates_Provider',
|
|
55
|
+
EaaProvider: 'EAA_Provider'
|
|
56
|
+
};
|
|
45
57
|
exports.TlrStatusEnum = {
|
|
46
58
|
Onboarded: 'onboarded',
|
|
47
59
|
Trusted: 'trusted',
|
|
@@ -197,15 +209,47 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
197
209
|
};
|
|
198
210
|
}),
|
|
199
211
|
/**
|
|
200
|
-
* Returns an ETSI Trusted list
|
|
212
|
+
* Returns an ETSI 119 602 Trusted list
|
|
213
|
+
* @param {string} tlId
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
etsiTl602Get: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
218
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
219
|
+
(0, common_1.assertParamExists)('etsiTl602Get', 'tlId', tlId);
|
|
220
|
+
const localVarPath = `/{tl_id}/etsi/119_602_tl.xml`
|
|
221
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
224
|
+
let baseOptions;
|
|
225
|
+
if (configuration) {
|
|
226
|
+
baseOptions = configuration.baseOptions;
|
|
227
|
+
}
|
|
228
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
229
|
+
const localVarHeaderParameter = {};
|
|
230
|
+
const localVarQueryParameter = {};
|
|
231
|
+
// authentication accessToken required
|
|
232
|
+
// http bearer authentication required
|
|
233
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
234
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
235
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
238
|
+
return {
|
|
239
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
|
+
options: localVarRequestOptions,
|
|
241
|
+
};
|
|
242
|
+
}),
|
|
243
|
+
/**
|
|
244
|
+
* Returns an ETSI 119 612 Trusted list
|
|
201
245
|
* @param {string} tlId
|
|
202
246
|
* @param {*} [options] Override http request option.
|
|
203
247
|
* @throws {RequiredError}
|
|
204
248
|
*/
|
|
205
|
-
|
|
249
|
+
etsiTl612Get: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
206
250
|
// verify required parameter 'tlId' is not null or undefined
|
|
207
|
-
(0, common_1.assertParamExists)('
|
|
208
|
-
const localVarPath = `/{tl_id}/etsi/
|
|
251
|
+
(0, common_1.assertParamExists)('etsiTl612Get', 'tlId', tlId);
|
|
252
|
+
const localVarPath = `/{tl_id}/etsi/119_612_tl.xml`
|
|
209
253
|
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
210
254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
255
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -843,17 +887,32 @@ const DefaultApiFp = function (configuration) {
|
|
|
843
887
|
});
|
|
844
888
|
},
|
|
845
889
|
/**
|
|
846
|
-
* Returns an ETSI Trusted list
|
|
890
|
+
* Returns an ETSI 119 602 Trusted list
|
|
847
891
|
* @param {string} tlId
|
|
848
892
|
* @param {*} [options] Override http request option.
|
|
849
893
|
* @throws {RequiredError}
|
|
850
894
|
*/
|
|
851
|
-
|
|
895
|
+
etsiTl602Get(tlId, options) {
|
|
852
896
|
return __awaiter(this, void 0, void 0, function* () {
|
|
853
897
|
var _a, _b, _c;
|
|
854
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
898
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTl602Get(tlId, options);
|
|
855
899
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
856
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
900
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.etsiTl602Get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
901
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
902
|
+
});
|
|
903
|
+
},
|
|
904
|
+
/**
|
|
905
|
+
* Returns an ETSI 119 612 Trusted list
|
|
906
|
+
* @param {string} tlId
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
etsiTl612Get(tlId, options) {
|
|
911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
912
|
+
var _a, _b, _c;
|
|
913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.etsiTl612Get(tlId, options);
|
|
914
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
915
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.etsiTl612Get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
857
916
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
858
917
|
});
|
|
859
918
|
},
|
|
@@ -1169,13 +1228,22 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1169
1228
|
return localVarFp.didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options).then((request) => request(axios, basePath));
|
|
1170
1229
|
},
|
|
1171
1230
|
/**
|
|
1172
|
-
* Returns an ETSI Trusted list
|
|
1231
|
+
* Returns an ETSI 119 602 Trusted list
|
|
1232
|
+
* @param {string} tlId
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
*/
|
|
1236
|
+
etsiTl602Get(tlId, options) {
|
|
1237
|
+
return localVarFp.etsiTl602Get(tlId, options).then((request) => request(axios, basePath));
|
|
1238
|
+
},
|
|
1239
|
+
/**
|
|
1240
|
+
* Returns an ETSI 119 612 Trusted list
|
|
1173
1241
|
* @param {string} tlId
|
|
1174
1242
|
* @param {*} [options] Override http request option.
|
|
1175
1243
|
* @throws {RequiredError}
|
|
1176
1244
|
*/
|
|
1177
|
-
|
|
1178
|
-
return localVarFp.
|
|
1245
|
+
etsiTl612Get(tlId, options) {
|
|
1246
|
+
return localVarFp.etsiTl612Get(tlId, options).then((request) => request(axios, basePath));
|
|
1179
1247
|
},
|
|
1180
1248
|
/**
|
|
1181
1249
|
*
|
|
@@ -1385,13 +1453,22 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1385
1453
|
return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1386
1454
|
}
|
|
1387
1455
|
/**
|
|
1388
|
-
* Returns an ETSI Trusted list
|
|
1456
|
+
* Returns an ETSI 119 602 Trusted list
|
|
1457
|
+
* @param {string} tlId
|
|
1458
|
+
* @param {*} [options] Override http request option.
|
|
1459
|
+
* @throws {RequiredError}
|
|
1460
|
+
*/
|
|
1461
|
+
etsiTl602Get(tlId, options) {
|
|
1462
|
+
return (0, exports.DefaultApiFp)(this.configuration).etsiTl602Get(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Returns an ETSI 119 612 Trusted list
|
|
1389
1466
|
* @param {string} tlId
|
|
1390
1467
|
* @param {*} [options] Override http request option.
|
|
1391
1468
|
* @throws {RequiredError}
|
|
1392
1469
|
*/
|
|
1393
|
-
|
|
1394
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
1470
|
+
etsiTl612Get(tlId, options) {
|
|
1471
|
+
return (0, exports.DefaultApiFp)(this.configuration).etsiTl612Get(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1395
1472
|
}
|
|
1396
1473
|
/**
|
|
1397
1474
|
*
|
package/common.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
28
28
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
29
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
30
|
*/
|
|
31
|
-
export declare const replaceWithSerializableTypeIfNeeded: (key:
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
32
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
33
33
|
export declare const toPathString: (url: URL) => string;
|
|
34
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/common.js
CHANGED
|
@@ -105,6 +105,7 @@ exports.setSearchParams = setSearchParams;
|
|
|
105
105
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
106
106
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
107
107
|
*/
|
|
108
|
+
// @ts-ignore
|
|
108
109
|
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
109
110
|
if (value instanceof Set) {
|
|
110
111
|
return Array.from(value);
|