@idunion/tl-sdk 0.0.16 → 0.0.18
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 +18 -20
- package/api.js +21 -37
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -510,6 +510,12 @@ export interface DidOnboardingStatus {
|
|
|
510
510
|
* @memberof DidOnboardingStatus
|
|
511
511
|
*/
|
|
512
512
|
'tl'?: Tl;
|
|
513
|
+
/**
|
|
514
|
+
* After the onboarding is initiate this value will be provided
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof DidOnboardingStatus
|
|
517
|
+
*/
|
|
518
|
+
'verifierUrl'?: string;
|
|
513
519
|
}
|
|
514
520
|
export declare const DidOnboardingStatusStatusEnum: {
|
|
515
521
|
readonly InProgress: "in_progress";
|
|
@@ -869,20 +875,18 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
869
875
|
didGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
870
876
|
/**
|
|
871
877
|
* Initiates the onboarding process to the DID registry.
|
|
872
|
-
* @param {string} tlId Trust List Identifier
|
|
873
878
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
874
879
|
* @param {*} [options] Override http request option.
|
|
875
880
|
* @throws {RequiredError}
|
|
876
881
|
*/
|
|
877
|
-
didOnboardingInit: (
|
|
882
|
+
didOnboardingInit: (didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
878
883
|
/**
|
|
879
884
|
*
|
|
880
|
-
* @param {string}
|
|
881
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
885
|
+
* @param {string} verifierState Verifier state
|
|
882
886
|
* @param {*} [options] Override http request option.
|
|
883
887
|
* @throws {RequiredError}
|
|
884
888
|
*/
|
|
885
|
-
didOnboardingStatus: (
|
|
889
|
+
didOnboardingStatus: (verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
886
890
|
/**
|
|
887
891
|
* Adds DID Verification method.
|
|
888
892
|
* @param {string} tlId Trust List Identifier
|
|
@@ -967,20 +971,18 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
967
971
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
|
|
968
972
|
/**
|
|
969
973
|
* Initiates the onboarding process to the DID registry.
|
|
970
|
-
* @param {string} tlId Trust List Identifier
|
|
971
974
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
972
975
|
* @param {*} [options] Override http request option.
|
|
973
976
|
* @throws {RequiredError}
|
|
974
977
|
*/
|
|
975
|
-
didOnboardingInit(
|
|
978
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
976
979
|
/**
|
|
977
980
|
*
|
|
978
|
-
* @param {string}
|
|
979
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
981
|
+
* @param {string} verifierState Verifier state
|
|
980
982
|
* @param {*} [options] Override http request option.
|
|
981
983
|
* @throws {RequiredError}
|
|
982
984
|
*/
|
|
983
|
-
didOnboardingStatus(
|
|
985
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
984
986
|
/**
|
|
985
987
|
* Adds DID Verification method.
|
|
986
988
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1065,20 +1067,18 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1065
1067
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
|
|
1066
1068
|
/**
|
|
1067
1069
|
* Initiates the onboarding process to the DID registry.
|
|
1068
|
-
* @param {string} tlId Trust List Identifier
|
|
1069
1070
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1070
1071
|
* @param {*} [options] Override http request option.
|
|
1071
1072
|
* @throws {RequiredError}
|
|
1072
1073
|
*/
|
|
1073
|
-
didOnboardingInit(
|
|
1074
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1074
1075
|
/**
|
|
1075
1076
|
*
|
|
1076
|
-
* @param {string}
|
|
1077
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1077
|
+
* @param {string} verifierState Verifier state
|
|
1078
1078
|
* @param {*} [options] Override http request option.
|
|
1079
1079
|
* @throws {RequiredError}
|
|
1080
1080
|
*/
|
|
1081
|
-
didOnboardingStatus(
|
|
1081
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Adds DID Verification method.
|
|
1084
1084
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1167,22 +1167,20 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1167
1167
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Initiates the onboarding process to the DID registry.
|
|
1170
|
-
* @param {string} tlId Trust List Identifier
|
|
1171
1170
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1172
1171
|
* @param {*} [options] Override http request option.
|
|
1173
1172
|
* @throws {RequiredError}
|
|
1174
1173
|
* @memberof DefaultApi
|
|
1175
1174
|
*/
|
|
1176
|
-
didOnboardingInit(
|
|
1175
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1177
1176
|
/**
|
|
1178
1177
|
*
|
|
1179
|
-
* @param {string}
|
|
1180
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1178
|
+
* @param {string} verifierState Verifier state
|
|
1181
1179
|
* @param {*} [options] Override http request option.
|
|
1182
1180
|
* @throws {RequiredError}
|
|
1183
1181
|
* @memberof DefaultApi
|
|
1184
1182
|
*/
|
|
1185
|
-
didOnboardingStatus(
|
|
1183
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1186
1184
|
/**
|
|
1187
1185
|
* Adds DID Verification method.
|
|
1188
1186
|
* @param {string} tlId Trust List Identifier
|
package/api.js
CHANGED
|
@@ -127,16 +127,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
}),
|
|
128
128
|
/**
|
|
129
129
|
* Initiates the onboarding process to the DID registry.
|
|
130
|
-
* @param {string} tlId Trust List Identifier
|
|
131
130
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
132
131
|
* @param {*} [options] Override http request option.
|
|
133
132
|
* @throws {RequiredError}
|
|
134
133
|
*/
|
|
135
|
-
didOnboardingInit: (
|
|
136
|
-
|
|
137
|
-
(0, common_1.assertParamExists)('didOnboardingInit', 'tlId', tlId);
|
|
138
|
-
const localVarPath = `/{tl_id}/onboarding/did`
|
|
139
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
134
|
+
didOnboardingInit: (didOnboardingPayload_1, ...args_1) => __awaiter(this, [didOnboardingPayload_1, ...args_1], void 0, function* (didOnboardingPayload, options = {}) {
|
|
135
|
+
const localVarPath = `/onboarding`;
|
|
140
136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
137
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
142
138
|
let baseOptions;
|
|
@@ -158,18 +154,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
158
154
|
}),
|
|
159
155
|
/**
|
|
160
156
|
*
|
|
161
|
-
* @param {string}
|
|
162
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
157
|
+
* @param {string} verifierState Verifier state
|
|
163
158
|
* @param {*} [options] Override http request option.
|
|
164
159
|
* @throws {RequiredError}
|
|
165
160
|
*/
|
|
166
|
-
didOnboardingStatus: (
|
|
167
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
168
|
-
(0, common_1.assertParamExists)('didOnboardingStatus', 'tlId', tlId);
|
|
161
|
+
didOnboardingStatus: (verifierState_1, ...args_1) => __awaiter(this, [verifierState_1, ...args_1], void 0, function* (verifierState, options = {}) {
|
|
169
162
|
// verify required parameter 'verifierState' is not null or undefined
|
|
170
163
|
(0, common_1.assertParamExists)('didOnboardingStatus', 'verifierState', verifierState);
|
|
171
|
-
const localVarPath = `/{
|
|
172
|
-
.replace(`{${"
|
|
164
|
+
const localVarPath = `/onboarding/{verifier_state}`
|
|
165
|
+
.replace(`{${"verifier_state"}}`, encodeURIComponent(String(verifierState)));
|
|
173
166
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
167
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
168
|
let baseOptions;
|
|
@@ -179,9 +172,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
179
172
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
180
173
|
const localVarHeaderParameter = {};
|
|
181
174
|
const localVarQueryParameter = {};
|
|
182
|
-
if (verifierState !== undefined) {
|
|
183
|
-
localVarQueryParameter['verifier_state'] = verifierState;
|
|
184
|
-
}
|
|
185
175
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
177
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -492,15 +482,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
492
482
|
},
|
|
493
483
|
/**
|
|
494
484
|
* Initiates the onboarding process to the DID registry.
|
|
495
|
-
* @param {string} tlId Trust List Identifier
|
|
496
485
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
497
486
|
* @param {*} [options] Override http request option.
|
|
498
487
|
* @throws {RequiredError}
|
|
499
488
|
*/
|
|
500
|
-
didOnboardingInit(
|
|
489
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
501
490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
502
491
|
var _a, _b, _c;
|
|
503
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(
|
|
492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(didOnboardingPayload, options);
|
|
504
493
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
505
494
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didOnboardingInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
506
495
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -508,15 +497,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
508
497
|
},
|
|
509
498
|
/**
|
|
510
499
|
*
|
|
511
|
-
* @param {string}
|
|
512
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
500
|
+
* @param {string} verifierState Verifier state
|
|
513
501
|
* @param {*} [options] Override http request option.
|
|
514
502
|
* @throws {RequiredError}
|
|
515
503
|
*/
|
|
516
|
-
didOnboardingStatus(
|
|
504
|
+
didOnboardingStatus(verifierState, options) {
|
|
517
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
518
506
|
var _a, _b, _c;
|
|
519
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(
|
|
507
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(verifierState, options);
|
|
520
508
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
521
509
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didOnboardingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
522
510
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -678,23 +666,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
678
666
|
},
|
|
679
667
|
/**
|
|
680
668
|
* Initiates the onboarding process to the DID registry.
|
|
681
|
-
* @param {string} tlId Trust List Identifier
|
|
682
669
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
683
670
|
* @param {*} [options] Override http request option.
|
|
684
671
|
* @throws {RequiredError}
|
|
685
672
|
*/
|
|
686
|
-
didOnboardingInit(
|
|
687
|
-
return localVarFp.didOnboardingInit(
|
|
673
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
674
|
+
return localVarFp.didOnboardingInit(didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
688
675
|
},
|
|
689
676
|
/**
|
|
690
677
|
*
|
|
691
|
-
* @param {string}
|
|
692
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
678
|
+
* @param {string} verifierState Verifier state
|
|
693
679
|
* @param {*} [options] Override http request option.
|
|
694
680
|
* @throws {RequiredError}
|
|
695
681
|
*/
|
|
696
|
-
didOnboardingStatus(
|
|
697
|
-
return localVarFp.didOnboardingStatus(
|
|
682
|
+
didOnboardingStatus(verifierState, options) {
|
|
683
|
+
return localVarFp.didOnboardingStatus(verifierState, options).then((request) => request(axios, basePath));
|
|
698
684
|
},
|
|
699
685
|
/**
|
|
700
686
|
* Adds DID Verification method.
|
|
@@ -806,25 +792,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
806
792
|
}
|
|
807
793
|
/**
|
|
808
794
|
* Initiates the onboarding process to the DID registry.
|
|
809
|
-
* @param {string} tlId Trust List Identifier
|
|
810
795
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
811
796
|
* @param {*} [options] Override http request option.
|
|
812
797
|
* @throws {RequiredError}
|
|
813
798
|
* @memberof DefaultApi
|
|
814
799
|
*/
|
|
815
|
-
didOnboardingInit(
|
|
816
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(
|
|
800
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
801
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
817
802
|
}
|
|
818
803
|
/**
|
|
819
804
|
*
|
|
820
|
-
* @param {string}
|
|
821
|
-
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
805
|
+
* @param {string} verifierState Verifier state
|
|
822
806
|
* @param {*} [options] Override http request option.
|
|
823
807
|
* @throws {RequiredError}
|
|
824
808
|
* @memberof DefaultApi
|
|
825
809
|
*/
|
|
826
|
-
didOnboardingStatus(
|
|
827
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(
|
|
810
|
+
didOnboardingStatus(verifierState, options) {
|
|
811
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
828
812
|
}
|
|
829
813
|
/**
|
|
830
814
|
* Adds DID Verification method.
|