@idunion/tl-sdk 0.0.7 → 0.0.9

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 +14 -8
  2. package/api.js +15 -15
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -762,6 +762,12 @@ export interface Tl {
762
762
  * @memberof Tl
763
763
  */
764
764
  'ownerId': string;
765
+ /**
766
+ *
767
+ * @type {string}
768
+ * @memberof Tl
769
+ */
770
+ 'didBase': string;
765
771
  }
766
772
  /**
767
773
  *
@@ -896,11 +902,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
896
902
  /**
897
903
  * Retrieves a specific DID Document
898
904
  * @param {string} tlId Trust List Identifier
899
- * @param {string} did DID
905
+ * @param {string} tlrId Trust List Record Identifier
900
906
  * @param {*} [options] Override http request option.
901
907
  * @throws {RequiredError}
902
908
  */
903
- didGet: (tlId: string, did: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
909
+ didGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
904
910
  /**
905
911
  * Initiates the onboarding process to the DID registry.
906
912
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
@@ -1014,11 +1020,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1014
1020
  /**
1015
1021
  * Retrieves a specific DID Document
1016
1022
  * @param {string} tlId Trust List Identifier
1017
- * @param {string} did DID
1023
+ * @param {string} tlrId Trust List Record Identifier
1018
1024
  * @param {*} [options] Override http request option.
1019
1025
  * @throws {RequiredError}
1020
1026
  */
1021
- didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
1027
+ didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
1022
1028
  /**
1023
1029
  * Initiates the onboarding process to the DID registry.
1024
1030
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
@@ -1132,11 +1138,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1132
1138
  /**
1133
1139
  * Retrieves a specific DID Document
1134
1140
  * @param {string} tlId Trust List Identifier
1135
- * @param {string} did DID
1141
+ * @param {string} tlrId Trust List Record Identifier
1136
1142
  * @param {*} [options] Override http request option.
1137
1143
  * @throws {RequiredError}
1138
1144
  */
1139
- didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
1145
+ didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
1140
1146
  /**
1141
1147
  * Initiates the onboarding process to the DID registry.
1142
1148
  * @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
@@ -1253,12 +1259,12 @@ export declare class DefaultApi extends BaseAPI {
1253
1259
  /**
1254
1260
  * Retrieves a specific DID Document
1255
1261
  * @param {string} tlId Trust List Identifier
1256
- * @param {string} did DID
1262
+ * @param {string} tlrId Trust List Record Identifier
1257
1263
  * @param {*} [options] Override http request option.
1258
1264
  * @throws {RequiredError}
1259
1265
  * @memberof DefaultApi
1260
1266
  */
1261
- didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
1267
+ didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
1262
1268
  /**
1263
1269
  * Initiates the onboarding process to the DID registry.
1264
1270
  * @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.7",
4
+ "version": "0.0.9",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {