@idunion/tl-sdk 0.0.8 → 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.
- package/api.d.ts +8 -8
- package/api.js +15 -15
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -902,11 +902,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
902
902
|
/**
|
|
903
903
|
* Retrieves a specific DID Document
|
|
904
904
|
* @param {string} tlId Trust List Identifier
|
|
905
|
-
* @param {string}
|
|
905
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
906
906
|
* @param {*} [options] Override http request option.
|
|
907
907
|
* @throws {RequiredError}
|
|
908
908
|
*/
|
|
909
|
-
didGet: (tlId: string,
|
|
909
|
+
didGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
910
910
|
/**
|
|
911
911
|
* Initiates the onboarding process to the DID registry.
|
|
912
912
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
@@ -1020,11 +1020,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Retrieves a specific DID Document
|
|
1022
1022
|
* @param {string} tlId Trust List Identifier
|
|
1023
|
-
* @param {string}
|
|
1023
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1024
1024
|
* @param {*} [options] Override http request option.
|
|
1025
1025
|
* @throws {RequiredError}
|
|
1026
1026
|
*/
|
|
1027
|
-
didGet(tlId: string,
|
|
1027
|
+
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Initiates the onboarding process to the DID registry.
|
|
1030
1030
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
@@ -1138,11 +1138,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Retrieves a specific DID Document
|
|
1140
1140
|
* @param {string} tlId Trust List Identifier
|
|
1141
|
-
* @param {string}
|
|
1141
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1142
1142
|
* @param {*} [options] Override http request option.
|
|
1143
1143
|
* @throws {RequiredError}
|
|
1144
1144
|
*/
|
|
1145
|
-
didGet(tlId: string,
|
|
1145
|
+
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Initiates the onboarding process to the DID registry.
|
|
1148
1148
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
@@ -1259,12 +1259,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1259
1259
|
/**
|
|
1260
1260
|
* Retrieves a specific DID Document
|
|
1261
1261
|
* @param {string} tlId Trust List Identifier
|
|
1262
|
-
* @param {string}
|
|
1262
|
+
* @param {string} tlrId Trust List Record Identifier
|
|
1263
1263
|
* @param {*} [options] Override http request option.
|
|
1264
1264
|
* @throws {RequiredError}
|
|
1265
1265
|
* @memberof DefaultApi
|
|
1266
1266
|
*/
|
|
1267
|
-
didGet(tlId: string,
|
|
1267
|
+
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
|
|
1268
1268
|
/**
|
|
1269
1269
|
* Initiates the onboarding process to the DID registry.
|
|
1270
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}
|
|
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,
|
|
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 '
|
|
107
|
-
(0, common_1.assertParamExists)('didGet', '
|
|
108
|
-
const localVarPath = `/{tl_id}/{
|
|
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(`{${"
|
|
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}
|
|
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,
|
|
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,
|
|
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}
|
|
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,
|
|
809
|
-
return localVarFp.didGet(tlId,
|
|
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}
|
|
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,
|
|
963
|
-
return (0, exports.DefaultApiFp)(this.configuration).didGet(tlId,
|
|
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.
|