@idunion/tl-sdk 0.0.8 → 0.0.10

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 +20 -8
  2. package/api.js +15 -15
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -768,6 +768,12 @@ export interface Tl {
768
768
  * @memberof Tl
769
769
  */
770
770
  'didBase': string;
771
+ /**
772
+ *
773
+ * @type {string}
774
+ * @memberof Tl
775
+ */
776
+ 'verifierId': string;
771
777
  }
772
778
  /**
773
779
  *
@@ -800,6 +806,12 @@ export interface TlPayload {
800
806
  * @memberof TlPayload
801
807
  */
802
808
  'suggestedId'?: string;
809
+ /**
810
+ * The Verifier used to verify onboarding credentials
811
+ * @type {string}
812
+ * @memberof TlPayload
813
+ */
814
+ 'verifierId': string;
803
815
  }
804
816
  /**
805
817
  * Record defined by a schema
@@ -902,11 +914,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
902
914
  /**
903
915
  * Retrieves a specific DID Document
904
916
  * @param {string} tlId Trust List Identifier
905
- * @param {string} did DID
917
+ * @param {string} tlrId Trust List Record Identifier
906
918
  * @param {*} [options] Override http request option.
907
919
  * @throws {RequiredError}
908
920
  */
909
- didGet: (tlId: string, did: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
921
+ didGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
910
922
  /**
911
923
  * Initiates the onboarding process to the DID registry.
912
924
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
@@ -1020,11 +1032,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1020
1032
  /**
1021
1033
  * Retrieves a specific DID Document
1022
1034
  * @param {string} tlId Trust List Identifier
1023
- * @param {string} did DID
1035
+ * @param {string} tlrId Trust List Record Identifier
1024
1036
  * @param {*} [options] Override http request option.
1025
1037
  * @throws {RequiredError}
1026
1038
  */
1027
- didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
1039
+ didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
1028
1040
  /**
1029
1041
  * Initiates the onboarding process to the DID registry.
1030
1042
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
@@ -1138,11 +1150,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1138
1150
  /**
1139
1151
  * Retrieves a specific DID Document
1140
1152
  * @param {string} tlId Trust List Identifier
1141
- * @param {string} did DID
1153
+ * @param {string} tlrId Trust List Record Identifier
1142
1154
  * @param {*} [options] Override http request option.
1143
1155
  * @throws {RequiredError}
1144
1156
  */
1145
- didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
1157
+ didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
1146
1158
  /**
1147
1159
  * Initiates the onboarding process to the DID registry.
1148
1160
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
@@ -1259,12 +1271,12 @@ export declare class DefaultApi extends BaseAPI {
1259
1271
  /**
1260
1272
  * Retrieves a specific DID Document
1261
1273
  * @param {string} tlId Trust List Identifier
1262
- * @param {string} did DID
1274
+ * @param {string} tlrId Trust List Record Identifier
1263
1275
  * @param {*} [options] Override http request option.
1264
1276
  * @throws {RequiredError}
1265
1277
  * @memberof DefaultApi
1266
1278
  */
1267
- didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
1279
+ didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
1268
1280
  /**
1269
1281
  * Initiates the onboarding process to the DID registry.
1270
1282
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
package/api.js CHANGED
@@ -96,18 +96,18 @@ const DefaultApiAxiosParamCreator = function (configuration) {
96
96
  /**
97
97
  * Retrieves a specific DID Document
98
98
  * @param {string} tlId Trust List Identifier
99
- * @param {string} did DID
99
+ * @param {string} tlrId Trust List Record Identifier
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- didGet: (tlId_1, did_1, ...args_1) => __awaiter(this, [tlId_1, did_1, ...args_1], void 0, function* (tlId, did, options = {}) {
103
+ didGet: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
104
104
  // verify required parameter 'tlId' is not null or undefined
105
105
  (0, common_1.assertParamExists)('didGet', 'tlId', tlId);
106
- // verify required parameter 'did' is not null or undefined
107
- (0, common_1.assertParamExists)('didGet', 'did', did);
108
- const localVarPath = `/{tl_id}/{did}/did.json`
106
+ // verify required parameter 'tlrId' is not null or undefined
107
+ (0, common_1.assertParamExists)('didGet', 'tlrId', tlrId);
108
+ const localVarPath = `/{tl_id}/{tlr_id}/did.json`
109
109
  .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
110
- .replace(`{${"did"}}`, encodeURIComponent(String(did)));
110
+ .replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
111
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
112
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
113
  let baseOptions;
@@ -565,14 +565,14 @@ const DefaultApiFp = function (configuration) {
565
565
  /**
566
566
  * Retrieves a specific DID Document
567
567
  * @param {string} tlId Trust List Identifier
568
- * @param {string} did DID
568
+ * @param {string} tlrId Trust List Record Identifier
569
569
  * @param {*} [options] Override http request option.
570
570
  * @throws {RequiredError}
571
571
  */
572
- didGet(tlId, did, options) {
572
+ didGet(tlId, tlrId, options) {
573
573
  return __awaiter(this, void 0, void 0, function* () {
574
574
  var _a, _b, _c;
575
- const localVarAxiosArgs = yield localVarAxiosParamCreator.didGet(tlId, did, options);
575
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.didGet(tlId, tlrId, options);
576
576
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
577
577
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
578
578
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -801,12 +801,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
801
801
  /**
802
802
  * Retrieves a specific DID Document
803
803
  * @param {string} tlId Trust List Identifier
804
- * @param {string} did DID
804
+ * @param {string} tlrId Trust List Record Identifier
805
805
  * @param {*} [options] Override http request option.
806
806
  * @throws {RequiredError}
807
807
  */
808
- didGet(tlId, did, options) {
809
- return localVarFp.didGet(tlId, did, options).then((request) => request(axios, basePath));
808
+ didGet(tlId, tlrId, options) {
809
+ return localVarFp.didGet(tlId, tlrId, options).then((request) => request(axios, basePath));
810
810
  },
811
811
  /**
812
812
  * Initiates the onboarding process to the DID registry.
@@ -954,13 +954,13 @@ class DefaultApi extends base_1.BaseAPI {
954
954
  /**
955
955
  * Retrieves a specific DID Document
956
956
  * @param {string} tlId Trust List Identifier
957
- * @param {string} did DID
957
+ * @param {string} tlrId Trust List Record Identifier
958
958
  * @param {*} [options] Override http request option.
959
959
  * @throws {RequiredError}
960
960
  * @memberof DefaultApi
961
961
  */
962
- didGet(tlId, did, options) {
963
- return (0, exports.DefaultApiFp)(this.configuration).didGet(tlId, did, options).then((request) => request(this.axios, this.basePath));
962
+ didGet(tlId, tlrId, options) {
963
+ return (0, exports.DefaultApiFp)(this.configuration).didGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
964
964
  }
965
965
  /**
966
966
  * Initiates the onboarding process to the DID registry.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {