@idunion/tl-sdk 0.0.2 → 0.0.4
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 +49 -54
- package/api.js +74 -95
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -748,25 +748,32 @@ export interface Tl {
|
|
|
748
748
|
* @type {string}
|
|
749
749
|
* @memberof Tl
|
|
750
750
|
*/
|
|
751
|
-
'id'
|
|
751
|
+
'id': string;
|
|
752
752
|
/**
|
|
753
753
|
* Trust List human-readable name
|
|
754
754
|
* @type {string}
|
|
755
755
|
* @memberof Tl
|
|
756
756
|
*/
|
|
757
|
-
'name'
|
|
757
|
+
'name': string;
|
|
758
758
|
/**
|
|
759
759
|
*
|
|
760
760
|
* @type {string}
|
|
761
761
|
* @memberof Tl
|
|
762
762
|
*/
|
|
763
|
-
'
|
|
763
|
+
'ownerId': string;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @export
|
|
768
|
+
* @interface TlList
|
|
769
|
+
*/
|
|
770
|
+
export interface TlList {
|
|
764
771
|
/**
|
|
765
772
|
*
|
|
766
|
-
* @type {
|
|
767
|
-
* @memberof
|
|
773
|
+
* @type {Array<Tl>}
|
|
774
|
+
* @memberof TlList
|
|
768
775
|
*/
|
|
769
|
-
'
|
|
776
|
+
'items'?: Array<Tl>;
|
|
770
777
|
}
|
|
771
778
|
/**
|
|
772
779
|
* Trust List create payload
|
|
@@ -779,13 +786,13 @@ export interface TlPayload {
|
|
|
779
786
|
* @type {string}
|
|
780
787
|
* @memberof TlPayload
|
|
781
788
|
*/
|
|
782
|
-
'name'
|
|
789
|
+
'name': string;
|
|
783
790
|
/**
|
|
784
791
|
*
|
|
785
|
-
* @type {
|
|
792
|
+
* @type {string}
|
|
786
793
|
* @memberof TlPayload
|
|
787
794
|
*/
|
|
788
|
-
'
|
|
795
|
+
'suggestedId'?: string;
|
|
789
796
|
}
|
|
790
797
|
/**
|
|
791
798
|
* Record defined by a schema
|
|
@@ -877,13 +884,6 @@ export interface VpResponse {
|
|
|
877
884
|
* @export
|
|
878
885
|
*/
|
|
879
886
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
880
|
-
/**
|
|
881
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
882
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
883
|
-
* @param {*} [options] Override http request option.
|
|
884
|
-
* @throws {RequiredError}
|
|
885
|
-
*/
|
|
886
|
-
credentialGet: (credentialId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
887
887
|
/**
|
|
888
888
|
* Creates a new DID Document.
|
|
889
889
|
* @param {string} tlId
|
|
@@ -902,20 +902,18 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
902
902
|
didGet: (tlId: string, did: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
903
903
|
/**
|
|
904
904
|
* Initiates the onboarding process to the DID registry.
|
|
905
|
-
* @param {string} tlId
|
|
906
905
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
907
906
|
* @param {*} [options] Override http request option.
|
|
908
907
|
* @throws {RequiredError}
|
|
909
908
|
*/
|
|
910
|
-
didOnboardingInit: (
|
|
909
|
+
didOnboardingInit: (didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
911
910
|
/**
|
|
912
911
|
*
|
|
913
|
-
* @param {string} tlId
|
|
914
912
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
915
913
|
* @param {*} [options] Override http request option.
|
|
916
914
|
* @throws {RequiredError}
|
|
917
915
|
*/
|
|
918
|
-
didOnboardingStatus: (
|
|
916
|
+
didOnboardingStatus: (verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
919
917
|
/**
|
|
920
918
|
* Adds DID Verification method.
|
|
921
919
|
* @param {string} tlId Trust List Identifier
|
|
@@ -952,6 +950,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
952
950
|
* @throws {RequiredError}
|
|
953
951
|
*/
|
|
954
952
|
tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
953
|
+
/**
|
|
954
|
+
* Gets Trust Lists for a specific owner
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
tlList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
955
959
|
/**
|
|
956
960
|
* Updates a Trust List based on the specified payload.
|
|
957
961
|
* @param {string} tlId
|
|
@@ -998,13 +1002,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
998
1002
|
* @export
|
|
999
1003
|
*/
|
|
1000
1004
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
1001
|
-
/**
|
|
1002
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1003
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
1004
|
-
* @param {*} [options] Override http request option.
|
|
1005
|
-
* @throws {RequiredError}
|
|
1006
|
-
*/
|
|
1007
|
-
credentialGet(credentialId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
|
|
1008
1005
|
/**
|
|
1009
1006
|
* Creates a new DID Document.
|
|
1010
1007
|
* @param {string} tlId
|
|
@@ -1023,20 +1020,18 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1023
1020
|
didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
|
|
1024
1021
|
/**
|
|
1025
1022
|
* Initiates the onboarding process to the DID registry.
|
|
1026
|
-
* @param {string} tlId
|
|
1027
1023
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1028
1024
|
* @param {*} [options] Override http request option.
|
|
1029
1025
|
* @throws {RequiredError}
|
|
1030
1026
|
*/
|
|
1031
|
-
didOnboardingInit(
|
|
1027
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
1032
1028
|
/**
|
|
1033
1029
|
*
|
|
1034
|
-
* @param {string} tlId
|
|
1035
1030
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1036
1031
|
* @param {*} [options] Override http request option.
|
|
1037
1032
|
* @throws {RequiredError}
|
|
1038
1033
|
*/
|
|
1039
|
-
didOnboardingStatus(
|
|
1034
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
1040
1035
|
/**
|
|
1041
1036
|
* Adds DID Verification method.
|
|
1042
1037
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1073,6 +1068,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1073
1068
|
* @throws {RequiredError}
|
|
1074
1069
|
*/
|
|
1075
1070
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Gets Trust Lists for a specific owner
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
|
|
1076
1077
|
/**
|
|
1077
1078
|
* Updates a Trust List based on the specified payload.
|
|
1078
1079
|
* @param {string} tlId
|
|
@@ -1119,13 +1120,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1119
1120
|
* @export
|
|
1120
1121
|
*/
|
|
1121
1122
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1122
|
-
/**
|
|
1123
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1124
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
1125
|
-
* @param {*} [options] Override http request option.
|
|
1126
|
-
* @throws {RequiredError}
|
|
1127
|
-
*/
|
|
1128
|
-
credentialGet(credentialId: string, options?: RawAxiosRequestConfig): AxiosPromise<CredentialWrapper>;
|
|
1129
1123
|
/**
|
|
1130
1124
|
* Creates a new DID Document.
|
|
1131
1125
|
* @param {string} tlId
|
|
@@ -1144,20 +1138,18 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1144
1138
|
didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
|
|
1145
1139
|
/**
|
|
1146
1140
|
* Initiates the onboarding process to the DID registry.
|
|
1147
|
-
* @param {string} tlId
|
|
1148
1141
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1149
1142
|
* @param {*} [options] Override http request option.
|
|
1150
1143
|
* @throws {RequiredError}
|
|
1151
1144
|
*/
|
|
1152
|
-
didOnboardingInit(
|
|
1145
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1153
1146
|
/**
|
|
1154
1147
|
*
|
|
1155
|
-
* @param {string} tlId
|
|
1156
1148
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1157
1149
|
* @param {*} [options] Override http request option.
|
|
1158
1150
|
* @throws {RequiredError}
|
|
1159
1151
|
*/
|
|
1160
|
-
didOnboardingStatus(
|
|
1152
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1161
1153
|
/**
|
|
1162
1154
|
* Adds DID Verification method.
|
|
1163
1155
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1194,6 +1186,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1194
1186
|
* @throws {RequiredError}
|
|
1195
1187
|
*/
|
|
1196
1188
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1189
|
+
/**
|
|
1190
|
+
* Gets Trust Lists for a specific owner
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
|
|
1197
1195
|
/**
|
|
1198
1196
|
* Updates a Trust List based on the specified payload.
|
|
1199
1197
|
* @param {string} tlId
|
|
@@ -1242,14 +1240,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1242
1240
|
* @extends {BaseAPI}
|
|
1243
1241
|
*/
|
|
1244
1242
|
export declare class DefaultApi extends BaseAPI {
|
|
1245
|
-
/**
|
|
1246
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1247
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
1248
|
-
* @param {*} [options] Override http request option.
|
|
1249
|
-
* @throws {RequiredError}
|
|
1250
|
-
* @memberof DefaultApi
|
|
1251
|
-
*/
|
|
1252
|
-
credentialGet(credentialId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
|
|
1253
1243
|
/**
|
|
1254
1244
|
* Creates a new DID Document.
|
|
1255
1245
|
* @param {string} tlId
|
|
@@ -1270,22 +1260,20 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1270
1260
|
didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
|
|
1271
1261
|
/**
|
|
1272
1262
|
* Initiates the onboarding process to the DID registry.
|
|
1273
|
-
* @param {string} tlId
|
|
1274
1263
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1275
1264
|
* @param {*} [options] Override http request option.
|
|
1276
1265
|
* @throws {RequiredError}
|
|
1277
1266
|
* @memberof DefaultApi
|
|
1278
1267
|
*/
|
|
1279
|
-
didOnboardingInit(
|
|
1268
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1280
1269
|
/**
|
|
1281
1270
|
*
|
|
1282
|
-
* @param {string} tlId
|
|
1283
1271
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1284
1272
|
* @param {*} [options] Override http request option.
|
|
1285
1273
|
* @throws {RequiredError}
|
|
1286
1274
|
* @memberof DefaultApi
|
|
1287
1275
|
*/
|
|
1288
|
-
didOnboardingStatus(
|
|
1276
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1289
1277
|
/**
|
|
1290
1278
|
* Adds DID Verification method.
|
|
1291
1279
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1327,6 +1315,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1327
1315
|
* @memberof DefaultApi
|
|
1328
1316
|
*/
|
|
1329
1317
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1318
|
+
/**
|
|
1319
|
+
* Gets Trust Lists for a specific owner
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
* @memberof DefaultApi
|
|
1323
|
+
*/
|
|
1324
|
+
tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
|
|
1330
1325
|
/**
|
|
1331
1326
|
* Updates a Trust List based on the specified payload.
|
|
1332
1327
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -59,37 +59,6 @@ exports.HealthStatusStatusEnum = {
|
|
|
59
59
|
*/
|
|
60
60
|
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
61
61
|
return {
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
64
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
65
|
-
* @param {*} [options] Override http request option.
|
|
66
|
-
* @throws {RequiredError}
|
|
67
|
-
*/
|
|
68
|
-
credentialGet: (credentialId_1, ...args_1) => __awaiter(this, [credentialId_1, ...args_1], void 0, function* (credentialId, options = {}) {
|
|
69
|
-
// verify required parameter 'credentialId' is not null or undefined
|
|
70
|
-
(0, common_1.assertParamExists)('credentialGet', 'credentialId', credentialId);
|
|
71
|
-
const localVarPath = `/credentials/{credential_id}`
|
|
72
|
-
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
73
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
75
|
-
let baseOptions;
|
|
76
|
-
if (configuration) {
|
|
77
|
-
baseOptions = configuration.baseOptions;
|
|
78
|
-
}
|
|
79
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
80
|
-
const localVarHeaderParameter = {};
|
|
81
|
-
const localVarQueryParameter = {};
|
|
82
|
-
// authentication accessToken required
|
|
83
|
-
// http bearer authentication required
|
|
84
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
85
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
86
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
87
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
88
|
-
return {
|
|
89
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
90
|
-
options: localVarRequestOptions,
|
|
91
|
-
};
|
|
92
|
-
}),
|
|
93
62
|
/**
|
|
94
63
|
* Creates a new DID Document.
|
|
95
64
|
* @param {string} tlId
|
|
@@ -158,16 +127,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
158
127
|
}),
|
|
159
128
|
/**
|
|
160
129
|
* Initiates the onboarding process to the DID registry.
|
|
161
|
-
* @param {string} tlId
|
|
162
130
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
163
131
|
* @param {*} [options] Override http request option.
|
|
164
132
|
* @throws {RequiredError}
|
|
165
133
|
*/
|
|
166
|
-
didOnboardingInit: (
|
|
167
|
-
|
|
168
|
-
(0, common_1.assertParamExists)('didOnboardingInit', 'tlId', tlId);
|
|
169
|
-
const localVarPath = `/{tl_id}/dids/onboarding`
|
|
170
|
-
.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/did`;
|
|
171
136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
137
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
173
138
|
let baseOptions;
|
|
@@ -189,18 +154,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
189
154
|
}),
|
|
190
155
|
/**
|
|
191
156
|
*
|
|
192
|
-
* @param {string} tlId
|
|
193
157
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
194
158
|
* @param {*} [options] Override http request option.
|
|
195
159
|
* @throws {RequiredError}
|
|
196
160
|
*/
|
|
197
|
-
didOnboardingStatus: (
|
|
198
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
199
|
-
(0, common_1.assertParamExists)('didOnboardingStatus', 'tlId', tlId);
|
|
161
|
+
didOnboardingStatus: (verifierState_1, ...args_1) => __awaiter(this, [verifierState_1, ...args_1], void 0, function* (verifierState, options = {}) {
|
|
200
162
|
// verify required parameter 'verifierState' is not null or undefined
|
|
201
163
|
(0, common_1.assertParamExists)('didOnboardingStatus', 'verifierState', verifierState);
|
|
202
|
-
const localVarPath = `/
|
|
203
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
164
|
+
const localVarPath = `/onboarding/did`;
|
|
204
165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
205
166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
206
167
|
let baseOptions;
|
|
@@ -375,6 +336,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
375
336
|
options: localVarRequestOptions,
|
|
376
337
|
};
|
|
377
338
|
}),
|
|
339
|
+
/**
|
|
340
|
+
* Gets Trust Lists for a specific owner
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
tlList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
345
|
+
const localVarPath = `/`;
|
|
346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
347
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
348
|
+
let baseOptions;
|
|
349
|
+
if (configuration) {
|
|
350
|
+
baseOptions = configuration.baseOptions;
|
|
351
|
+
}
|
|
352
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
353
|
+
const localVarHeaderParameter = {};
|
|
354
|
+
const localVarQueryParameter = {};
|
|
355
|
+
// authentication accessToken required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
358
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
360
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
361
|
+
return {
|
|
362
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
};
|
|
365
|
+
}),
|
|
378
366
|
/**
|
|
379
367
|
* Updates a Trust List based on the specified payload.
|
|
380
368
|
* @param {string} tlId
|
|
@@ -558,21 +546,6 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
|
558
546
|
const DefaultApiFp = function (configuration) {
|
|
559
547
|
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
560
548
|
return {
|
|
561
|
-
/**
|
|
562
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
563
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
564
|
-
* @param {*} [options] Override http request option.
|
|
565
|
-
* @throws {RequiredError}
|
|
566
|
-
*/
|
|
567
|
-
credentialGet(credentialId, options) {
|
|
568
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
-
var _a, _b, _c;
|
|
570
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, options);
|
|
571
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
572
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
573
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
574
|
-
});
|
|
575
|
-
},
|
|
576
549
|
/**
|
|
577
550
|
* Creates a new DID Document.
|
|
578
551
|
* @param {string} tlId
|
|
@@ -607,15 +580,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
607
580
|
},
|
|
608
581
|
/**
|
|
609
582
|
* Initiates the onboarding process to the DID registry.
|
|
610
|
-
* @param {string} tlId
|
|
611
583
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
612
584
|
* @param {*} [options] Override http request option.
|
|
613
585
|
* @throws {RequiredError}
|
|
614
586
|
*/
|
|
615
|
-
didOnboardingInit(
|
|
587
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
616
588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
617
589
|
var _a, _b, _c;
|
|
618
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(
|
|
590
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(didOnboardingPayload, options);
|
|
619
591
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
620
592
|
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;
|
|
621
593
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -623,15 +595,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
623
595
|
},
|
|
624
596
|
/**
|
|
625
597
|
*
|
|
626
|
-
* @param {string} tlId
|
|
627
598
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
628
599
|
* @param {*} [options] Override http request option.
|
|
629
600
|
* @throws {RequiredError}
|
|
630
601
|
*/
|
|
631
|
-
didOnboardingStatus(
|
|
602
|
+
didOnboardingStatus(verifierState, options) {
|
|
632
603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
633
604
|
var _a, _b, _c;
|
|
634
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(
|
|
605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(verifierState, options);
|
|
635
606
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
636
607
|
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;
|
|
637
608
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -713,6 +684,20 @@ const DefaultApiFp = function (configuration) {
|
|
|
713
684
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
714
685
|
});
|
|
715
686
|
},
|
|
687
|
+
/**
|
|
688
|
+
* Gets Trust Lists for a specific owner
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
tlList(options) {
|
|
693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
+
var _a, _b, _c;
|
|
695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(options);
|
|
696
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
697
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
698
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
699
|
+
});
|
|
700
|
+
},
|
|
716
701
|
/**
|
|
717
702
|
* Updates a Trust List based on the specified payload.
|
|
718
703
|
* @param {string} tlId
|
|
@@ -803,15 +788,6 @@ exports.DefaultApiFp = DefaultApiFp;
|
|
|
803
788
|
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
804
789
|
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
805
790
|
return {
|
|
806
|
-
/**
|
|
807
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
808
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
credentialGet(credentialId, options) {
|
|
813
|
-
return localVarFp.credentialGet(credentialId, options).then((request) => request(axios, basePath));
|
|
814
|
-
},
|
|
815
791
|
/**
|
|
816
792
|
* Creates a new DID Document.
|
|
817
793
|
* @param {string} tlId
|
|
@@ -834,23 +810,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
834
810
|
},
|
|
835
811
|
/**
|
|
836
812
|
* Initiates the onboarding process to the DID registry.
|
|
837
|
-
* @param {string} tlId
|
|
838
813
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
839
814
|
* @param {*} [options] Override http request option.
|
|
840
815
|
* @throws {RequiredError}
|
|
841
816
|
*/
|
|
842
|
-
didOnboardingInit(
|
|
843
|
-
return localVarFp.didOnboardingInit(
|
|
817
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
818
|
+
return localVarFp.didOnboardingInit(didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
844
819
|
},
|
|
845
820
|
/**
|
|
846
821
|
*
|
|
847
|
-
* @param {string} tlId
|
|
848
822
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
849
823
|
* @param {*} [options] Override http request option.
|
|
850
824
|
* @throws {RequiredError}
|
|
851
825
|
*/
|
|
852
|
-
didOnboardingStatus(
|
|
853
|
-
return localVarFp.didOnboardingStatus(
|
|
826
|
+
didOnboardingStatus(verifierState, options) {
|
|
827
|
+
return localVarFp.didOnboardingStatus(verifierState, options).then((request) => request(axios, basePath));
|
|
854
828
|
},
|
|
855
829
|
/**
|
|
856
830
|
* Adds DID Verification method.
|
|
@@ -898,6 +872,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
898
872
|
tlGet(tlId, options) {
|
|
899
873
|
return localVarFp.tlGet(tlId, options).then((request) => request(axios, basePath));
|
|
900
874
|
},
|
|
875
|
+
/**
|
|
876
|
+
* Gets Trust Lists for a specific owner
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
tlList(options) {
|
|
881
|
+
return localVarFp.tlList(options).then((request) => request(axios, basePath));
|
|
882
|
+
},
|
|
901
883
|
/**
|
|
902
884
|
* Updates a Trust List based on the specified payload.
|
|
903
885
|
* @param {string} tlId
|
|
@@ -958,16 +940,6 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
958
940
|
* @extends {BaseAPI}
|
|
959
941
|
*/
|
|
960
942
|
class DefaultApi extends base_1.BaseAPI {
|
|
961
|
-
/**
|
|
962
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
963
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
964
|
-
* @param {*} [options] Override http request option.
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
* @memberof DefaultApi
|
|
967
|
-
*/
|
|
968
|
-
credentialGet(credentialId, options) {
|
|
969
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, options).then((request) => request(this.axios, this.basePath));
|
|
970
|
-
}
|
|
971
943
|
/**
|
|
972
944
|
* Creates a new DID Document.
|
|
973
945
|
* @param {string} tlId
|
|
@@ -992,25 +964,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
992
964
|
}
|
|
993
965
|
/**
|
|
994
966
|
* Initiates the onboarding process to the DID registry.
|
|
995
|
-
* @param {string} tlId
|
|
996
967
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
997
968
|
* @param {*} [options] Override http request option.
|
|
998
969
|
* @throws {RequiredError}
|
|
999
970
|
* @memberof DefaultApi
|
|
1000
971
|
*/
|
|
1001
|
-
didOnboardingInit(
|
|
1002
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(
|
|
972
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
973
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1003
974
|
}
|
|
1004
975
|
/**
|
|
1005
976
|
*
|
|
1006
|
-
* @param {string} tlId
|
|
1007
977
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1008
978
|
* @param {*} [options] Override http request option.
|
|
1009
979
|
* @throws {RequiredError}
|
|
1010
980
|
* @memberof DefaultApi
|
|
1011
981
|
*/
|
|
1012
|
-
didOnboardingStatus(
|
|
1013
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(
|
|
982
|
+
didOnboardingStatus(verifierState, options) {
|
|
983
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
1014
984
|
}
|
|
1015
985
|
/**
|
|
1016
986
|
* Adds DID Verification method.
|
|
@@ -1063,6 +1033,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1063
1033
|
tlGet(tlId, options) {
|
|
1064
1034
|
return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1065
1035
|
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Gets Trust Lists for a specific owner
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
* @memberof DefaultApi
|
|
1041
|
+
*/
|
|
1042
|
+
tlList(options) {
|
|
1043
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlList(options).then((request) => request(this.axios, this.basePath));
|
|
1044
|
+
}
|
|
1066
1045
|
/**
|
|
1067
1046
|
* Updates a Trust List based on the specified payload.
|
|
1068
1047
|
* @param {string} tlId
|