@triveria/wallet 0.0.44 → 0.0.45
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 +119 -3
- package/api.js +148 -2
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -147,6 +147,25 @@ export interface Credential {
|
|
|
147
147
|
*/
|
|
148
148
|
'proof'?: Proof;
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @export
|
|
153
|
+
* @interface CredentialImport
|
|
154
|
+
*/
|
|
155
|
+
export interface CredentialImport {
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof CredentialImport
|
|
160
|
+
*/
|
|
161
|
+
'credential': string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof CredentialImport
|
|
166
|
+
*/
|
|
167
|
+
'name': string;
|
|
168
|
+
}
|
|
150
169
|
/**
|
|
151
170
|
*
|
|
152
171
|
* @export
|
|
@@ -246,6 +265,37 @@ export interface CredentialPayload {
|
|
|
246
265
|
*/
|
|
247
266
|
'name': string;
|
|
248
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @export
|
|
271
|
+
* @interface CredentialRequest
|
|
272
|
+
*/
|
|
273
|
+
export interface CredentialRequest {
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @type {Array<string>}
|
|
277
|
+
* @memberof CredentialRequest
|
|
278
|
+
*/
|
|
279
|
+
'types': Array<string>;
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
* @type {string}
|
|
283
|
+
* @memberof CredentialRequest
|
|
284
|
+
*/
|
|
285
|
+
'url': string;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @type {string}
|
|
289
|
+
* @memberof CredentialRequest
|
|
290
|
+
*/
|
|
291
|
+
'state'?: string;
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @type {boolean}
|
|
295
|
+
* @memberof CredentialRequest
|
|
296
|
+
*/
|
|
297
|
+
'legalEntity': boolean;
|
|
298
|
+
}
|
|
249
299
|
/**
|
|
250
300
|
* @type CredentialSchema
|
|
251
301
|
* One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s) https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema
|
|
@@ -1099,6 +1149,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1099
1149
|
* @throws {RequiredError}
|
|
1100
1150
|
*/
|
|
1101
1151
|
credentialGet: (credentialId: string, walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Import pre-signed credential into wallet
|
|
1154
|
+
* @param {string} walletId
|
|
1155
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
*/
|
|
1159
|
+
credentialImport: (walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1102
1160
|
/**
|
|
1103
1161
|
*
|
|
1104
1162
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1114,6 +1172,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1114
1172
|
* @throws {RequiredError}
|
|
1115
1173
|
*/
|
|
1116
1174
|
credentialList: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1175
|
+
/**
|
|
1176
|
+
* TBD
|
|
1177
|
+
* @param {string} walletId
|
|
1178
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
credentialRequest: (walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1117
1183
|
/**
|
|
1118
1184
|
*
|
|
1119
1185
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1278,7 +1344,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1278
1344
|
* @param {*} [options] Override http request option.
|
|
1279
1345
|
* @throws {RequiredError}
|
|
1280
1346
|
*/
|
|
1281
|
-
accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1347
|
+
accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1282
1348
|
/**
|
|
1283
1349
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
1284
1350
|
* @param {string} walletId
|
|
@@ -1295,6 +1361,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1295
1361
|
* @throws {RequiredError}
|
|
1296
1362
|
*/
|
|
1297
1363
|
credentialGet(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Import pre-signed credential into wallet
|
|
1366
|
+
* @param {string} walletId
|
|
1367
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1368
|
+
* @param {*} [options] Override http request option.
|
|
1369
|
+
* @throws {RequiredError}
|
|
1370
|
+
*/
|
|
1371
|
+
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
|
|
1298
1372
|
/**
|
|
1299
1373
|
*
|
|
1300
1374
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1310,6 +1384,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1310
1384
|
* @throws {RequiredError}
|
|
1311
1385
|
*/
|
|
1312
1386
|
credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
|
|
1387
|
+
/**
|
|
1388
|
+
* TBD
|
|
1389
|
+
* @param {string} walletId
|
|
1390
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
*/
|
|
1394
|
+
credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
1313
1395
|
/**
|
|
1314
1396
|
*
|
|
1315
1397
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1474,7 +1556,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1474
1556
|
* @param {*} [options] Override http request option.
|
|
1475
1557
|
* @throws {RequiredError}
|
|
1476
1558
|
*/
|
|
1477
|
-
accreditAsTrustedIssuer(walletId: string, options?: any): AxiosPromise<
|
|
1559
|
+
accreditAsTrustedIssuer(walletId: string, options?: any): AxiosPromise<void>;
|
|
1478
1560
|
/**
|
|
1479
1561
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
1480
1562
|
* @param {string} walletId
|
|
@@ -1491,6 +1573,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1491
1573
|
* @throws {RequiredError}
|
|
1492
1574
|
*/
|
|
1493
1575
|
credentialGet(credentialId: string, walletId: string, options?: any): AxiosPromise<CredentialWrapper>;
|
|
1576
|
+
/**
|
|
1577
|
+
* Import pre-signed credential into wallet
|
|
1578
|
+
* @param {string} walletId
|
|
1579
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: any): AxiosPromise<Credential>;
|
|
1494
1584
|
/**
|
|
1495
1585
|
*
|
|
1496
1586
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1506,6 +1596,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1506
1596
|
* @throws {RequiredError}
|
|
1507
1597
|
*/
|
|
1508
1598
|
credentialList(walletId: string, options?: any): AxiosPromise<CredentialList>;
|
|
1599
|
+
/**
|
|
1600
|
+
* TBD
|
|
1601
|
+
* @param {string} walletId
|
|
1602
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1603
|
+
* @param {*} [options] Override http request option.
|
|
1604
|
+
* @throws {RequiredError}
|
|
1605
|
+
*/
|
|
1606
|
+
credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: any): AxiosPromise<Array<string>>;
|
|
1509
1607
|
/**
|
|
1510
1608
|
*
|
|
1511
1609
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1673,7 +1771,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1673
1771
|
* @throws {RequiredError}
|
|
1674
1772
|
* @memberof DefaultApi
|
|
1675
1773
|
*/
|
|
1676
|
-
accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1774
|
+
accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1677
1775
|
/**
|
|
1678
1776
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
1679
1777
|
* @param {string} walletId
|
|
@@ -1692,6 +1790,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1692
1790
|
* @memberof DefaultApi
|
|
1693
1791
|
*/
|
|
1694
1792
|
credentialGet(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Import pre-signed credential into wallet
|
|
1795
|
+
* @param {string} walletId
|
|
1796
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1797
|
+
* @param {*} [options] Override http request option.
|
|
1798
|
+
* @throws {RequiredError}
|
|
1799
|
+
* @memberof DefaultApi
|
|
1800
|
+
*/
|
|
1801
|
+
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
|
|
1695
1802
|
/**
|
|
1696
1803
|
*
|
|
1697
1804
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1709,6 +1816,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1709
1816
|
* @memberof DefaultApi
|
|
1710
1817
|
*/
|
|
1711
1818
|
credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
|
|
1819
|
+
/**
|
|
1820
|
+
* TBD
|
|
1821
|
+
* @param {string} walletId
|
|
1822
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1823
|
+
* @param {*} [options] Override http request option.
|
|
1824
|
+
* @throws {RequiredError}
|
|
1825
|
+
* @memberof DefaultApi
|
|
1826
|
+
*/
|
|
1827
|
+
credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
|
|
1712
1828
|
/**
|
|
1713
1829
|
*
|
|
1714
1830
|
* @param {string} credentialId Verifiable Credential Identifier
|
package/api.js
CHANGED
|
@@ -78,7 +78,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
78
78
|
accreditAsTrustedIssuer: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
// verify required parameter 'walletId' is not null or undefined
|
|
80
80
|
(0, common_1.assertParamExists)('accreditAsTrustedIssuer', 'walletId', walletId);
|
|
81
|
-
const localVarPath = `/accredit-as-trusted-issuer`;
|
|
81
|
+
const localVarPath = `/wallets/accredit-as-trusted-issuer`;
|
|
82
82
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
83
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
84
|
let baseOptions;
|
|
@@ -175,6 +175,42 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
175
175
|
options: localVarRequestOptions,
|
|
176
176
|
};
|
|
177
177
|
}),
|
|
178
|
+
/**
|
|
179
|
+
* Import pre-signed credential into wallet
|
|
180
|
+
* @param {string} walletId
|
|
181
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
credentialImport: (walletId, credentialImport, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
187
|
+
(0, common_1.assertParamExists)('credentialImport', 'walletId', walletId);
|
|
188
|
+
const localVarPath = `/credentials/import`;
|
|
189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
191
|
+
let baseOptions;
|
|
192
|
+
if (configuration) {
|
|
193
|
+
baseOptions = configuration.baseOptions;
|
|
194
|
+
}
|
|
195
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
196
|
+
const localVarHeaderParameter = {};
|
|
197
|
+
const localVarQueryParameter = {};
|
|
198
|
+
// authentication accessToken required
|
|
199
|
+
// http bearer authentication required
|
|
200
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
201
|
+
if (walletId != null) {
|
|
202
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
203
|
+
}
|
|
204
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
208
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialImport, localVarRequestOptions, configuration);
|
|
209
|
+
return {
|
|
210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
}),
|
|
178
214
|
/**
|
|
179
215
|
*
|
|
180
216
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -245,6 +281,42 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
245
281
|
options: localVarRequestOptions,
|
|
246
282
|
};
|
|
247
283
|
}),
|
|
284
|
+
/**
|
|
285
|
+
* TBD
|
|
286
|
+
* @param {string} walletId
|
|
287
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
credentialRequest: (walletId, credentialRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
293
|
+
(0, common_1.assertParamExists)('credentialRequest', 'walletId', walletId);
|
|
294
|
+
const localVarPath = `/credentials/request`;
|
|
295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
297
|
+
let baseOptions;
|
|
298
|
+
if (configuration) {
|
|
299
|
+
baseOptions = configuration.baseOptions;
|
|
300
|
+
}
|
|
301
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
302
|
+
const localVarHeaderParameter = {};
|
|
303
|
+
const localVarQueryParameter = {};
|
|
304
|
+
// authentication accessToken required
|
|
305
|
+
// http bearer authentication required
|
|
306
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
307
|
+
if (walletId != null) {
|
|
308
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
309
|
+
}
|
|
310
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
311
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
313
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
314
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
|
|
315
|
+
return {
|
|
316
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions,
|
|
318
|
+
};
|
|
319
|
+
}),
|
|
248
320
|
/**
|
|
249
321
|
*
|
|
250
322
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -773,7 +845,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
773
845
|
onboardLegalEntity: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
774
846
|
// verify required parameter 'walletId' is not null or undefined
|
|
775
847
|
(0, common_1.assertParamExists)('onboardLegalEntity', 'walletId', walletId);
|
|
776
|
-
const localVarPath = `/onboard-legal-entity`;
|
|
848
|
+
const localVarPath = `/wallets/onboard-legal-entity`;
|
|
777
849
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
778
850
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
779
851
|
let baseOptions;
|
|
@@ -979,6 +1051,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
979
1051
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
980
1052
|
});
|
|
981
1053
|
},
|
|
1054
|
+
/**
|
|
1055
|
+
* Import pre-signed credential into wallet
|
|
1056
|
+
* @param {string} walletId
|
|
1057
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1058
|
+
* @param {*} [options] Override http request option.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
credentialImport(walletId, credentialImport, options) {
|
|
1062
|
+
var _a, _b, _c;
|
|
1063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialImport(walletId, credentialImport, options);
|
|
1065
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1066
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialImport']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1067
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1068
|
+
});
|
|
1069
|
+
},
|
|
982
1070
|
/**
|
|
983
1071
|
*
|
|
984
1072
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1010,6 +1098,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
1010
1098
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1011
1099
|
});
|
|
1012
1100
|
},
|
|
1101
|
+
/**
|
|
1102
|
+
* TBD
|
|
1103
|
+
* @param {string} walletId
|
|
1104
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
*/
|
|
1108
|
+
credentialRequest(walletId, credentialRequest, options) {
|
|
1109
|
+
var _a, _b, _c;
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRequest(walletId, credentialRequest, options);
|
|
1112
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1113
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRequest']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1114
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1115
|
+
});
|
|
1116
|
+
},
|
|
1013
1117
|
/**
|
|
1014
1118
|
*
|
|
1015
1119
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1361,6 +1465,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1361
1465
|
credentialGet(credentialId, walletId, options) {
|
|
1362
1466
|
return localVarFp.credentialGet(credentialId, walletId, options).then((request) => request(axios, basePath));
|
|
1363
1467
|
},
|
|
1468
|
+
/**
|
|
1469
|
+
* Import pre-signed credential into wallet
|
|
1470
|
+
* @param {string} walletId
|
|
1471
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1472
|
+
* @param {*} [options] Override http request option.
|
|
1473
|
+
* @throws {RequiredError}
|
|
1474
|
+
*/
|
|
1475
|
+
credentialImport(walletId, credentialImport, options) {
|
|
1476
|
+
return localVarFp.credentialImport(walletId, credentialImport, options).then((request) => request(axios, basePath));
|
|
1477
|
+
},
|
|
1364
1478
|
/**
|
|
1365
1479
|
*
|
|
1366
1480
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1380,6 +1494,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1380
1494
|
credentialList(walletId, options) {
|
|
1381
1495
|
return localVarFp.credentialList(walletId, options).then((request) => request(axios, basePath));
|
|
1382
1496
|
},
|
|
1497
|
+
/**
|
|
1498
|
+
* TBD
|
|
1499
|
+
* @param {string} walletId
|
|
1500
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
*/
|
|
1504
|
+
credentialRequest(walletId, credentialRequest, options) {
|
|
1505
|
+
return localVarFp.credentialRequest(walletId, credentialRequest, options).then((request) => request(axios, basePath));
|
|
1506
|
+
},
|
|
1383
1507
|
/**
|
|
1384
1508
|
*
|
|
1385
1509
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1614,6 +1738,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1614
1738
|
credentialGet(credentialId, walletId, options) {
|
|
1615
1739
|
return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1616
1740
|
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Import pre-signed credential into wallet
|
|
1743
|
+
* @param {string} walletId
|
|
1744
|
+
* @param {CredentialImport} [credentialImport] A Verifiable Credential payload in JSON format.
|
|
1745
|
+
* @param {*} [options] Override http request option.
|
|
1746
|
+
* @throws {RequiredError}
|
|
1747
|
+
* @memberof DefaultApi
|
|
1748
|
+
*/
|
|
1749
|
+
credentialImport(walletId, credentialImport, options) {
|
|
1750
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialImport(walletId, credentialImport, options).then((request) => request(this.axios, this.basePath));
|
|
1751
|
+
}
|
|
1617
1752
|
/**
|
|
1618
1753
|
*
|
|
1619
1754
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1635,6 +1770,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1635
1770
|
credentialList(walletId, options) {
|
|
1636
1771
|
return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1637
1772
|
}
|
|
1773
|
+
/**
|
|
1774
|
+
* TBD
|
|
1775
|
+
* @param {string} walletId
|
|
1776
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
* @memberof DefaultApi
|
|
1780
|
+
*/
|
|
1781
|
+
credentialRequest(walletId, credentialRequest, options) {
|
|
1782
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialRequest(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1783
|
+
}
|
|
1638
1784
|
/**
|
|
1639
1785
|
*
|
|
1640
1786
|
* @param {string} credentialId Verifiable Credential Identifier
|