@idunion/tl-sdk 0.0.23 → 0.0.25

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.
Files changed (3) hide show
  1. package/api.d.ts +41 -29
  2. package/api.js +72 -67
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -861,7 +861,19 @@ export interface Tlr {
861
861
  * @memberof Tlr
862
862
  */
863
863
  'tlName': string;
864
+ /**
865
+ * Denotes the Trust List record trust status. - Unverified record is created manually without presenting an onboarding VC - Verified record is created upon onboarding VC presentation - Trusted record is created upon onboarding VC presentation that was issued by an Issuer that is verified by IDunion SCE
866
+ * @type {string}
867
+ * @memberof Tlr
868
+ */
869
+ 'status': TlrStatusEnum;
864
870
  }
871
+ export declare const TlrStatusEnum: {
872
+ readonly Unverified: "unverified";
873
+ readonly Verified: "verified";
874
+ readonly Trusted: "trusted";
875
+ };
876
+ export type TlrStatusEnum = typeof TlrStatusEnum[keyof typeof TlrStatusEnum];
865
877
  /**
866
878
  *
867
879
  * @export
@@ -951,13 +963,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
951
963
  * @throws {RequiredError}
952
964
  */
953
965
  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
966
  /**
962
967
  *
963
968
  * @param {*} [options] Override http request option.
@@ -1015,6 +1020,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1015
1020
  * @throws {RequiredError}
1016
1021
  */
1017
1022
  tlrSearch: (orgName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1023
+ /**
1024
+ * Retrieves a list of Trust List records.
1025
+ * @param {string} tlId
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ tlrsGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1018
1030
  /**
1019
1031
  * Gets a Verifiable Presentation.
1020
1032
  * @param {string} tlId
@@ -1062,13 +1074,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1062
1074
  * @throws {RequiredError}
1063
1075
  */
1064
1076
  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
1077
  /**
1073
1078
  *
1074
1079
  * @param {*} [options] Override http request option.
@@ -1126,6 +1131,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1126
1131
  * @throws {RequiredError}
1127
1132
  */
1128
1133
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
1134
+ /**
1135
+ * Retrieves a list of Trust List records.
1136
+ * @param {string} tlId
1137
+ * @param {*} [options] Override http request option.
1138
+ * @throws {RequiredError}
1139
+ */
1140
+ tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
1129
1141
  /**
1130
1142
  * Gets a Verifiable Presentation.
1131
1143
  * @param {string} tlId
@@ -1173,13 +1185,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1173
1185
  * @throws {RequiredError}
1174
1186
  */
1175
1187
  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
1188
  /**
1184
1189
  *
1185
1190
  * @param {*} [options] Override http request option.
@@ -1237,6 +1242,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1237
1242
  * @throws {RequiredError}
1238
1243
  */
1239
1244
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
1245
+ /**
1246
+ * Retrieves a list of Trust List records.
1247
+ * @param {string} tlId
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ tlrsGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
1240
1252
  /**
1241
1253
  * Gets a Verifiable Presentation.
1242
1254
  * @param {string} tlId
@@ -1290,14 +1302,6 @@ export declare class DefaultApi extends BaseAPI {
1290
1302
  * @memberof DefaultApi
1291
1303
  */
1292
1304
  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
1305
  /**
1302
1306
  *
1303
1307
  * @param {*} [options] Override http request option.
@@ -1363,6 +1367,14 @@ export declare class DefaultApi extends BaseAPI {
1363
1367
  * @memberof DefaultApi
1364
1368
  */
1365
1369
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
1370
+ /**
1371
+ * Retrieves a list of Trust List records.
1372
+ * @param {string} tlId
1373
+ * @param {*} [options] Override http request option.
1374
+ * @throws {RequiredError}
1375
+ * @memberof DefaultApi
1376
+ */
1377
+ tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
1366
1378
  /**
1367
1379
  * Gets a Verifiable Presentation.
1368
1380
  * @param {string} tlId
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.OnboardingStatusStatusEnum = exports.HealthStatusStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = void 0;
28
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.TlrStatusEnum = exports.OnboardingStatusStatusEnum = exports.HealthStatusStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -53,6 +53,11 @@ exports.OnboardingStatusStatusEnum = {
53
53
  Completed: 'completed',
54
54
  Error: 'error'
55
55
  };
56
+ exports.TlrStatusEnum = {
57
+ Unverified: 'unverified',
58
+ Verified: 'verified',
59
+ Trusted: 'trusted'
60
+ };
56
61
  /**
57
62
  * DefaultApi - axios parameter creator
58
63
  * @export
@@ -69,7 +74,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
69
74
  didDocumentCreate: (tlId_1, didDocumentCreatePayload_1, ...args_1) => __awaiter(this, [tlId_1, didDocumentCreatePayload_1, ...args_1], void 0, function* (tlId, didDocumentCreatePayload, options = {}) {
70
75
  // verify required parameter 'tlId' is not null or undefined
71
76
  (0, common_1.assertParamExists)('didDocumentCreate', 'tlId', tlId);
72
- const localVarPath = `/{tl_id}/dids`
77
+ const localVarPath = `/{tl_id}/tlrs`
73
78
  .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
74
79
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
80
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -194,37 +199,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
194
199
  options: localVarRequestOptions,
195
200
  };
196
201
  }),
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
202
  /**
229
203
  *
230
204
  * @param {*} [options] Override http request option.
@@ -462,6 +436,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
462
436
  options: localVarRequestOptions,
463
437
  };
464
438
  }),
439
+ /**
440
+ * Retrieves a list of Trust List records.
441
+ * @param {string} tlId
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ tlrsGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
446
+ // verify required parameter 'tlId' is not null or undefined
447
+ (0, common_1.assertParamExists)('tlrsGet', 'tlId', tlId);
448
+ const localVarPath = `/{tl_id}/tlrs`
449
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ if (configuration) {
454
+ baseOptions = configuration.baseOptions;
455
+ }
456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
457
+ const localVarHeaderParameter = {};
458
+ const localVarQueryParameter = {};
459
+ // authentication accessToken required
460
+ // http bearer authentication required
461
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ return {
466
+ url: (0, common_1.toPathString)(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ };
469
+ }),
465
470
  /**
466
471
  * Gets a Verifiable Presentation.
467
472
  * @param {string} tlId
@@ -575,21 +580,6 @@ const DefaultApiFp = function (configuration) {
575
580
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
576
581
  });
577
582
  },
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
583
  /**
594
584
  *
595
585
  * @param {*} [options] Override http request option.
@@ -711,6 +701,21 @@ const DefaultApiFp = function (configuration) {
711
701
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
702
  });
713
703
  },
704
+ /**
705
+ * Retrieves a list of Trust List records.
706
+ * @param {string} tlId
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ */
710
+ tlrsGet(tlId, options) {
711
+ return __awaiter(this, void 0, void 0, function* () {
712
+ var _a, _b, _c;
713
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrsGet(tlId, options);
714
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
715
+ 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;
716
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
717
+ });
718
+ },
714
719
  /**
715
720
  * Gets a Verifiable Presentation.
716
721
  * @param {string} tlId
@@ -778,15 +783,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
778
783
  didVerificationMethodAdd(tlId, did, verificationMethod, options) {
779
784
  return localVarFp.didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(axios, basePath));
780
785
  },
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
786
  /**
791
787
  *
792
788
  * @param {*} [options] Override http request option.
@@ -860,6 +856,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
860
856
  tlrSearch(orgName, options) {
861
857
  return localVarFp.tlrSearch(orgName, options).then((request) => request(axios, basePath));
862
858
  },
859
+ /**
860
+ * Retrieves a list of Trust List records.
861
+ * @param {string} tlId
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ tlrsGet(tlId, options) {
866
+ return localVarFp.tlrsGet(tlId, options).then((request) => request(axios, basePath));
867
+ },
863
868
  /**
864
869
  * Gets a Verifiable Presentation.
865
870
  * @param {string} tlId
@@ -925,16 +930,6 @@ class DefaultApi extends base_1.BaseAPI {
925
930
  didVerificationMethodAdd(tlId, did, verificationMethod, options) {
926
931
  return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(this.axios, this.basePath));
927
932
  }
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
933
  /**
939
934
  *
940
935
  * @param {*} [options] Override http request option.
@@ -1016,6 +1011,16 @@ class DefaultApi extends base_1.BaseAPI {
1016
1011
  tlrSearch(orgName, options) {
1017
1012
  return (0, exports.DefaultApiFp)(this.configuration).tlrSearch(orgName, options).then((request) => request(this.axios, this.basePath));
1018
1013
  }
1014
+ /**
1015
+ * Retrieves a list of Trust List records.
1016
+ * @param {string} tlId
1017
+ * @param {*} [options] Override http request option.
1018
+ * @throws {RequiredError}
1019
+ * @memberof DefaultApi
1020
+ */
1021
+ tlrsGet(tlId, options) {
1022
+ return (0, exports.DefaultApiFp)(this.configuration).tlrsGet(tlId, options).then((request) => request(this.axios, this.basePath));
1023
+ }
1019
1024
  /**
1020
1025
  * Gets a Verifiable Presentation.
1021
1026
  * @param {string} tlId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.23",
4
+ "version": "0.0.25",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {