@idunion/tl-sdk 0.0.13 → 0.0.14
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 +30 -10
- package/api.js +30 -16
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -761,7 +761,13 @@ export interface Tl {
|
|
|
761
761
|
* @type {string}
|
|
762
762
|
* @memberof Tl
|
|
763
763
|
*/
|
|
764
|
-
'
|
|
764
|
+
'governanceWalletId'?: string;
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @type {string}
|
|
768
|
+
* @memberof Tl
|
|
769
|
+
*/
|
|
770
|
+
'verifierId'?: string;
|
|
765
771
|
}
|
|
766
772
|
/**
|
|
767
773
|
*
|
|
@@ -794,12 +800,18 @@ export interface TlPayload {
|
|
|
794
800
|
* @memberof TlPayload
|
|
795
801
|
*/
|
|
796
802
|
'suggestedId'?: string;
|
|
803
|
+
/**
|
|
804
|
+
* The Wallet used by the Trust List for VC interactions
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof TlPayload
|
|
807
|
+
*/
|
|
808
|
+
'governanceWalletId'?: string;
|
|
797
809
|
/**
|
|
798
810
|
* The Verifier used to verify onboarding credentials
|
|
799
811
|
* @type {string}
|
|
800
812
|
* @memberof TlPayload
|
|
801
813
|
*/
|
|
802
|
-
'verifierId'
|
|
814
|
+
'verifierId'?: string;
|
|
803
815
|
}
|
|
804
816
|
/**
|
|
805
817
|
* Record defined by a schema
|
|
@@ -909,18 +921,20 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
909
921
|
didGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
910
922
|
/**
|
|
911
923
|
* Initiates the onboarding process to the DID registry.
|
|
924
|
+
* @param {string} tlId Trust List Identifier
|
|
912
925
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
913
926
|
* @param {*} [options] Override http request option.
|
|
914
927
|
* @throws {RequiredError}
|
|
915
928
|
*/
|
|
916
|
-
didOnboardingInit: (didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
929
|
+
didOnboardingInit: (tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
917
930
|
/**
|
|
918
931
|
*
|
|
932
|
+
* @param {string} tlId Trust List Identifier
|
|
919
933
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
920
934
|
* @param {*} [options] Override http request option.
|
|
921
935
|
* @throws {RequiredError}
|
|
922
936
|
*/
|
|
923
|
-
didOnboardingStatus: (verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
937
|
+
didOnboardingStatus: (tlId: string, verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
924
938
|
/**
|
|
925
939
|
* Adds DID Verification method.
|
|
926
940
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1027,18 +1041,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1027
1041
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
|
|
1028
1042
|
/**
|
|
1029
1043
|
* Initiates the onboarding process to the DID registry.
|
|
1044
|
+
* @param {string} tlId Trust List Identifier
|
|
1030
1045
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1031
1046
|
* @param {*} [options] Override http request option.
|
|
1032
1047
|
* @throws {RequiredError}
|
|
1033
1048
|
*/
|
|
1034
|
-
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
1049
|
+
didOnboardingInit(tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
1035
1050
|
/**
|
|
1036
1051
|
*
|
|
1052
|
+
* @param {string} tlId Trust List Identifier
|
|
1037
1053
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1038
1054
|
* @param {*} [options] Override http request option.
|
|
1039
1055
|
* @throws {RequiredError}
|
|
1040
1056
|
*/
|
|
1041
|
-
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
1057
|
+
didOnboardingStatus(tlId: string, verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
1042
1058
|
/**
|
|
1043
1059
|
* Adds DID Verification method.
|
|
1044
1060
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1145,18 +1161,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1145
1161
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
|
|
1146
1162
|
/**
|
|
1147
1163
|
* Initiates the onboarding process to the DID registry.
|
|
1164
|
+
* @param {string} tlId Trust List Identifier
|
|
1148
1165
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1149
1166
|
* @param {*} [options] Override http request option.
|
|
1150
1167
|
* @throws {RequiredError}
|
|
1151
1168
|
*/
|
|
1152
|
-
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1169
|
+
didOnboardingInit(tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1153
1170
|
/**
|
|
1154
1171
|
*
|
|
1172
|
+
* @param {string} tlId Trust List Identifier
|
|
1155
1173
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1156
1174
|
* @param {*} [options] Override http request option.
|
|
1157
1175
|
* @throws {RequiredError}
|
|
1158
1176
|
*/
|
|
1159
|
-
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1177
|
+
didOnboardingStatus(tlId: string, verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1160
1178
|
/**
|
|
1161
1179
|
* Adds DID Verification method.
|
|
1162
1180
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1267,20 +1285,22 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1267
1285
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
|
|
1268
1286
|
/**
|
|
1269
1287
|
* Initiates the onboarding process to the DID registry.
|
|
1288
|
+
* @param {string} tlId Trust List Identifier
|
|
1270
1289
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1271
1290
|
* @param {*} [options] Override http request option.
|
|
1272
1291
|
* @throws {RequiredError}
|
|
1273
1292
|
* @memberof DefaultApi
|
|
1274
1293
|
*/
|
|
1275
|
-
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1294
|
+
didOnboardingInit(tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1276
1295
|
/**
|
|
1277
1296
|
*
|
|
1297
|
+
* @param {string} tlId Trust List Identifier
|
|
1278
1298
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1279
1299
|
* @param {*} [options] Override http request option.
|
|
1280
1300
|
* @throws {RequiredError}
|
|
1281
1301
|
* @memberof DefaultApi
|
|
1282
1302
|
*/
|
|
1283
|
-
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1303
|
+
didOnboardingStatus(tlId: string, verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1284
1304
|
/**
|
|
1285
1305
|
* Adds DID Verification method.
|
|
1286
1306
|
* @param {string} tlId Trust List Identifier
|
package/api.js
CHANGED
|
@@ -127,12 +127,16 @@ 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
|
|
130
131
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
131
132
|
* @param {*} [options] Override http request option.
|
|
132
133
|
* @throws {RequiredError}
|
|
133
134
|
*/
|
|
134
|
-
didOnboardingInit: (didOnboardingPayload_1, ...args_1) => __awaiter(this, [didOnboardingPayload_1, ...args_1], void 0, function* (didOnboardingPayload, options = {}) {
|
|
135
|
-
|
|
135
|
+
didOnboardingInit: (tlId_1, didOnboardingPayload_1, ...args_1) => __awaiter(this, [tlId_1, didOnboardingPayload_1, ...args_1], void 0, function* (tlId, didOnboardingPayload, options = {}) {
|
|
136
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('didOnboardingInit', 'tlId', tlId);
|
|
138
|
+
const localVarPath = `/{tl_id}/onboarding/did`
|
|
139
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
136
140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
141
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
138
142
|
let baseOptions;
|
|
@@ -154,14 +158,18 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
154
158
|
}),
|
|
155
159
|
/**
|
|
156
160
|
*
|
|
161
|
+
* @param {string} tlId Trust List Identifier
|
|
157
162
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
158
163
|
* @param {*} [options] Override http request option.
|
|
159
164
|
* @throws {RequiredError}
|
|
160
165
|
*/
|
|
161
|
-
didOnboardingStatus: (verifierState_1, ...args_1) => __awaiter(this, [verifierState_1, ...args_1], void 0, function* (verifierState, options = {}) {
|
|
166
|
+
didOnboardingStatus: (tlId_1, verifierState_1, ...args_1) => __awaiter(this, [tlId_1, verifierState_1, ...args_1], void 0, function* (tlId, verifierState, options = {}) {
|
|
167
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('didOnboardingStatus', 'tlId', tlId);
|
|
162
169
|
// verify required parameter 'verifierState' is not null or undefined
|
|
163
170
|
(0, common_1.assertParamExists)('didOnboardingStatus', 'verifierState', verifierState);
|
|
164
|
-
const localVarPath = `/onboarding/did
|
|
171
|
+
const localVarPath = `/{tl_id}/onboarding/did`
|
|
172
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
165
173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
166
174
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
175
|
let baseOptions;
|
|
@@ -580,14 +588,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
580
588
|
},
|
|
581
589
|
/**
|
|
582
590
|
* Initiates the onboarding process to the DID registry.
|
|
591
|
+
* @param {string} tlId Trust List Identifier
|
|
583
592
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
584
593
|
* @param {*} [options] Override http request option.
|
|
585
594
|
* @throws {RequiredError}
|
|
586
595
|
*/
|
|
587
|
-
didOnboardingInit(didOnboardingPayload, options) {
|
|
596
|
+
didOnboardingInit(tlId, didOnboardingPayload, options) {
|
|
588
597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
589
598
|
var _a, _b, _c;
|
|
590
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(didOnboardingPayload, options);
|
|
599
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(tlId, didOnboardingPayload, options);
|
|
591
600
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
592
601
|
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;
|
|
593
602
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -595,14 +604,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
595
604
|
},
|
|
596
605
|
/**
|
|
597
606
|
*
|
|
607
|
+
* @param {string} tlId Trust List Identifier
|
|
598
608
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
599
609
|
* @param {*} [options] Override http request option.
|
|
600
610
|
* @throws {RequiredError}
|
|
601
611
|
*/
|
|
602
|
-
didOnboardingStatus(verifierState, options) {
|
|
612
|
+
didOnboardingStatus(tlId, verifierState, options) {
|
|
603
613
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
614
|
var _a, _b, _c;
|
|
605
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(verifierState, options);
|
|
615
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(tlId, verifierState, options);
|
|
606
616
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
607
617
|
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;
|
|
608
618
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -810,21 +820,23 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
810
820
|
},
|
|
811
821
|
/**
|
|
812
822
|
* Initiates the onboarding process to the DID registry.
|
|
823
|
+
* @param {string} tlId Trust List Identifier
|
|
813
824
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
814
825
|
* @param {*} [options] Override http request option.
|
|
815
826
|
* @throws {RequiredError}
|
|
816
827
|
*/
|
|
817
|
-
didOnboardingInit(didOnboardingPayload, options) {
|
|
818
|
-
return localVarFp.didOnboardingInit(didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
828
|
+
didOnboardingInit(tlId, didOnboardingPayload, options) {
|
|
829
|
+
return localVarFp.didOnboardingInit(tlId, didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
819
830
|
},
|
|
820
831
|
/**
|
|
821
832
|
*
|
|
833
|
+
* @param {string} tlId Trust List Identifier
|
|
822
834
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
823
835
|
* @param {*} [options] Override http request option.
|
|
824
836
|
* @throws {RequiredError}
|
|
825
837
|
*/
|
|
826
|
-
didOnboardingStatus(verifierState, options) {
|
|
827
|
-
return localVarFp.didOnboardingStatus(verifierState, options).then((request) => request(axios, basePath));
|
|
838
|
+
didOnboardingStatus(tlId, verifierState, options) {
|
|
839
|
+
return localVarFp.didOnboardingStatus(tlId, verifierState, options).then((request) => request(axios, basePath));
|
|
828
840
|
},
|
|
829
841
|
/**
|
|
830
842
|
* Adds DID Verification method.
|
|
@@ -964,23 +976,25 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
964
976
|
}
|
|
965
977
|
/**
|
|
966
978
|
* Initiates the onboarding process to the DID registry.
|
|
979
|
+
* @param {string} tlId Trust List Identifier
|
|
967
980
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
968
981
|
* @param {*} [options] Override http request option.
|
|
969
982
|
* @throws {RequiredError}
|
|
970
983
|
* @memberof DefaultApi
|
|
971
984
|
*/
|
|
972
|
-
didOnboardingInit(didOnboardingPayload, options) {
|
|
973
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
985
|
+
didOnboardingInit(tlId, didOnboardingPayload, options) {
|
|
986
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(tlId, didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
974
987
|
}
|
|
975
988
|
/**
|
|
976
989
|
*
|
|
990
|
+
* @param {string} tlId Trust List Identifier
|
|
977
991
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
978
992
|
* @param {*} [options] Override http request option.
|
|
979
993
|
* @throws {RequiredError}
|
|
980
994
|
* @memberof DefaultApi
|
|
981
995
|
*/
|
|
982
|
-
didOnboardingStatus(verifierState, options) {
|
|
983
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
996
|
+
didOnboardingStatus(tlId, verifierState, options) {
|
|
997
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(tlId, verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
984
998
|
}
|
|
985
999
|
/**
|
|
986
1000
|
* Adds DID Verification method.
|