@triveria/wallet 0.0.1
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.js +1116 -0
- package/auth.js +27 -0
- package/base.js +68 -0
- package/client.js +31 -0
- package/common.js +161 -0
- package/configuration.js +43 -0
- package/index.js +33 -0
- package/package.json +21 -0
package/api.js
ADDED
|
@@ -0,0 +1,1116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Triveria Wallet API
|
|
6
|
+
* Triveria Wallet API allows to manage credentials inside a specific wallet and interactions between wallets as specified by the OIDC4VC specification.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.SystemImpactStatusEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("./common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("./base");
|
|
35
|
+
exports.CredentialIssuerDefinitionCredentialFormatEnum = {
|
|
36
|
+
JwtVc: 'jwt_vc'
|
|
37
|
+
};
|
|
38
|
+
exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
|
|
39
|
+
CtWalletSame: 'CtWalletSame',
|
|
40
|
+
IssuanceQueue: 'IssuanceQueue'
|
|
41
|
+
};
|
|
42
|
+
exports.CredentialMetadataStatusEnum = {
|
|
43
|
+
Draft: 'draft',
|
|
44
|
+
Valid: 'valid',
|
|
45
|
+
Invalid: 'invalid'
|
|
46
|
+
};
|
|
47
|
+
exports.DeferredStatusEnum = {
|
|
48
|
+
InProgress: 'in_progress',
|
|
49
|
+
Completed: 'completed',
|
|
50
|
+
Error: 'error'
|
|
51
|
+
};
|
|
52
|
+
exports.HealthStatusStatusEnum = {
|
|
53
|
+
Ok: 'ok',
|
|
54
|
+
Limited: 'limited',
|
|
55
|
+
Critical: 'critical'
|
|
56
|
+
};
|
|
57
|
+
exports.SystemImpactStatusEnum = {
|
|
58
|
+
Ok: 'ok',
|
|
59
|
+
Limited: 'limited',
|
|
60
|
+
Critical: 'critical'
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* DefaultApi - axios parameter creator
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
67
|
+
return {
|
|
68
|
+
/**
|
|
69
|
+
* 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.
|
|
70
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
credentialCreate: (credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const localVarPath = `/credentials`;
|
|
76
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
let baseOptions;
|
|
79
|
+
if (configuration) {
|
|
80
|
+
baseOptions = configuration.baseOptions;
|
|
81
|
+
}
|
|
82
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
84
|
+
const localVarQueryParameter = {};
|
|
85
|
+
// authentication accessToken required
|
|
86
|
+
// http bearer authentication required
|
|
87
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
88
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
89
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
90
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
92
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credential, localVarRequestOptions, configuration);
|
|
93
|
+
return {
|
|
94
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
95
|
+
options: localVarRequestOptions,
|
|
96
|
+
};
|
|
97
|
+
}),
|
|
98
|
+
/**
|
|
99
|
+
* 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.
|
|
100
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
credentialGet: (credentialId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
106
|
+
(0, common_1.assertParamExists)('credentialGet', 'credentialId', credentialId);
|
|
107
|
+
const localVarPath = `/credentials/{credential_id}`
|
|
108
|
+
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
// authentication accessToken required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
121
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
124
|
+
return {
|
|
125
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
}),
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
credentialIssue: (credentialId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('credentialIssue', 'credentialId', credentialId);
|
|
138
|
+
const localVarPath = `/credentials/{credential_id}/issue`
|
|
139
|
+
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
142
|
+
let baseOptions;
|
|
143
|
+
if (configuration) {
|
|
144
|
+
baseOptions = configuration.baseOptions;
|
|
145
|
+
}
|
|
146
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
147
|
+
const localVarHeaderParameter = {};
|
|
148
|
+
const localVarQueryParameter = {};
|
|
149
|
+
// authentication accessToken required
|
|
150
|
+
// http bearer authentication required
|
|
151
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
152
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
155
|
+
return {
|
|
156
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions,
|
|
158
|
+
};
|
|
159
|
+
}),
|
|
160
|
+
/**
|
|
161
|
+
* Retrieves a list of credentials.
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
credentialList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
const localVarPath = `/credentials`;
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
}
|
|
173
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
174
|
+
const localVarHeaderParameter = {};
|
|
175
|
+
const localVarQueryParameter = {};
|
|
176
|
+
// authentication accessToken required
|
|
177
|
+
// http bearer authentication required
|
|
178
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
179
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
+
return {
|
|
183
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
184
|
+
options: localVarRequestOptions,
|
|
185
|
+
};
|
|
186
|
+
}),
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
190
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
credentialUpdate: (credentialId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
196
|
+
(0, common_1.assertParamExists)('credentialUpdate', 'credentialId', credentialId);
|
|
197
|
+
const localVarPath = `/credentials/{credential_id}`
|
|
198
|
+
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
201
|
+
let baseOptions;
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions;
|
|
204
|
+
}
|
|
205
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
206
|
+
const localVarHeaderParameter = {};
|
|
207
|
+
const localVarQueryParameter = {};
|
|
208
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
209
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
211
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
212
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credential, localVarRequestOptions, configuration);
|
|
213
|
+
return {
|
|
214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
};
|
|
217
|
+
}),
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @param {string} deferredId Deferred token
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
deferredStatus: (deferredId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
// verify required parameter 'deferredId' is not null or undefined
|
|
226
|
+
(0, common_1.assertParamExists)('deferredStatus', 'deferredId', deferredId);
|
|
227
|
+
const localVarPath = `/deferred/{deferred_id}`
|
|
228
|
+
.replace(`{${"deferred_id"}}`, encodeURIComponent(String(deferredId)));
|
|
229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
231
|
+
let baseOptions;
|
|
232
|
+
if (configuration) {
|
|
233
|
+
baseOptions = configuration.baseOptions;
|
|
234
|
+
}
|
|
235
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
236
|
+
const localVarHeaderParameter = {};
|
|
237
|
+
const localVarQueryParameter = {};
|
|
238
|
+
// authentication accessToken required
|
|
239
|
+
// http bearer authentication required
|
|
240
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
241
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
242
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
243
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
244
|
+
return {
|
|
245
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
};
|
|
248
|
+
}),
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
getCurrentDid: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
const localVarPath = `/did`;
|
|
256
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
257
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
258
|
+
let baseOptions;
|
|
259
|
+
if (configuration) {
|
|
260
|
+
baseOptions = configuration.baseOptions;
|
|
261
|
+
}
|
|
262
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
263
|
+
const localVarHeaderParameter = {};
|
|
264
|
+
const localVarQueryParameter = {};
|
|
265
|
+
// authentication accessToken required
|
|
266
|
+
// http bearer authentication required
|
|
267
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
268
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
270
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
271
|
+
return {
|
|
272
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
273
|
+
options: localVarRequestOptions,
|
|
274
|
+
};
|
|
275
|
+
}),
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
healthCheck: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
const localVarPath = `/health`;
|
|
283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
|
+
let baseOptions;
|
|
286
|
+
if (configuration) {
|
|
287
|
+
baseOptions = configuration.baseOptions;
|
|
288
|
+
}
|
|
289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
290
|
+
const localVarHeaderParameter = {};
|
|
291
|
+
const localVarQueryParameter = {};
|
|
292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
return {
|
|
296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
}),
|
|
300
|
+
/**
|
|
301
|
+
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
302
|
+
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
holderCreateAuthOffer: (holderAuthOfferCreationReq, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
const localVarPath = `/offer/create/intime`;
|
|
308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
309
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
310
|
+
let baseOptions;
|
|
311
|
+
if (configuration) {
|
|
312
|
+
baseOptions = configuration.baseOptions;
|
|
313
|
+
}
|
|
314
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
315
|
+
const localVarHeaderParameter = {};
|
|
316
|
+
const localVarQueryParameter = {};
|
|
317
|
+
// authentication accessToken required
|
|
318
|
+
// http bearer authentication required
|
|
319
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
321
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
322
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
323
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
324
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(holderAuthOfferCreationReq, localVarRequestOptions, configuration);
|
|
325
|
+
return {
|
|
326
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
327
|
+
options: localVarRequestOptions,
|
|
328
|
+
};
|
|
329
|
+
}),
|
|
330
|
+
/**
|
|
331
|
+
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
332
|
+
* @param {string} url
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
issuerCredentialTypesList: (url, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
337
|
+
// verify required parameter 'url' is not null or undefined
|
|
338
|
+
(0, common_1.assertParamExists)('issuerCredentialTypesList', 'url', url);
|
|
339
|
+
const localVarPath = `/issuer/credential/types`;
|
|
340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
341
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
342
|
+
let baseOptions;
|
|
343
|
+
if (configuration) {
|
|
344
|
+
baseOptions = configuration.baseOptions;
|
|
345
|
+
}
|
|
346
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
347
|
+
const localVarHeaderParameter = {};
|
|
348
|
+
const localVarQueryParameter = {};
|
|
349
|
+
if (url !== undefined) {
|
|
350
|
+
localVarQueryParameter['url'] = url;
|
|
351
|
+
}
|
|
352
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
return {
|
|
356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
357
|
+
options: localVarRequestOptions,
|
|
358
|
+
};
|
|
359
|
+
}),
|
|
360
|
+
/**
|
|
361
|
+
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
362
|
+
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
oidcAcceptOffer: (vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
const localVarPath = `/offer/accept`;
|
|
368
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
369
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
370
|
+
let baseOptions;
|
|
371
|
+
if (configuration) {
|
|
372
|
+
baseOptions = configuration.baseOptions;
|
|
373
|
+
}
|
|
374
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
375
|
+
const localVarHeaderParameter = {};
|
|
376
|
+
const localVarQueryParameter = {};
|
|
377
|
+
// authentication accessToken required
|
|
378
|
+
// http bearer authentication required
|
|
379
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
380
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
381
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
382
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
384
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vcOffer, localVarRequestOptions, configuration);
|
|
385
|
+
return {
|
|
386
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
387
|
+
options: localVarRequestOptions,
|
|
388
|
+
};
|
|
389
|
+
}),
|
|
390
|
+
/**
|
|
391
|
+
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
392
|
+
* @param {string} credentialId
|
|
393
|
+
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
oidcAddCredToIssuanceQueue: (credentialId, issuanceQueueCredAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
398
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
399
|
+
(0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'credentialId', credentialId);
|
|
400
|
+
const localVarPath = `/credentials/{credential_id}/add`
|
|
401
|
+
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
403
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
404
|
+
let baseOptions;
|
|
405
|
+
if (configuration) {
|
|
406
|
+
baseOptions = configuration.baseOptions;
|
|
407
|
+
}
|
|
408
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
409
|
+
const localVarHeaderParameter = {};
|
|
410
|
+
const localVarQueryParameter = {};
|
|
411
|
+
// authentication accessToken required
|
|
412
|
+
// http bearer authentication required
|
|
413
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
414
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
418
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issuanceQueueCredAdd, localVarRequestOptions, configuration);
|
|
419
|
+
return {
|
|
420
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
421
|
+
options: localVarRequestOptions,
|
|
422
|
+
};
|
|
423
|
+
}),
|
|
424
|
+
/**
|
|
425
|
+
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
426
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
oidcInitiateDeferred: (initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
const localVarPath = `/issuer/initiate/deferred`;
|
|
432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
433
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
434
|
+
let baseOptions;
|
|
435
|
+
if (configuration) {
|
|
436
|
+
baseOptions = configuration.baseOptions;
|
|
437
|
+
}
|
|
438
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
439
|
+
const localVarHeaderParameter = {};
|
|
440
|
+
const localVarQueryParameter = {};
|
|
441
|
+
// authentication accessToken required
|
|
442
|
+
// http bearer authentication required
|
|
443
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
444
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
445
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
446
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
448
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initAuthOffer, localVarRequestOptions, configuration);
|
|
449
|
+
return {
|
|
450
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
451
|
+
options: localVarRequestOptions,
|
|
452
|
+
};
|
|
453
|
+
}),
|
|
454
|
+
/**
|
|
455
|
+
* Initiates issuing of the verifiable credential using authorized flow.
|
|
456
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
oidcInitiateIntime: (initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
461
|
+
const localVarPath = `/issuer/initiate/intime`;
|
|
462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
463
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
464
|
+
let baseOptions;
|
|
465
|
+
if (configuration) {
|
|
466
|
+
baseOptions = configuration.baseOptions;
|
|
467
|
+
}
|
|
468
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
469
|
+
const localVarHeaderParameter = {};
|
|
470
|
+
const localVarQueryParameter = {};
|
|
471
|
+
// authentication accessToken required
|
|
472
|
+
// http bearer authentication required
|
|
473
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
474
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
475
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
477
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
478
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initAuthOffer, localVarRequestOptions, configuration);
|
|
479
|
+
return {
|
|
480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
481
|
+
options: localVarRequestOptions,
|
|
482
|
+
};
|
|
483
|
+
}),
|
|
484
|
+
/**
|
|
485
|
+
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
486
|
+
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
oidcInitiatePreauth: (initPreAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
const localVarPath = `/issuer/initiate/preauth`;
|
|
492
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
493
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
494
|
+
let baseOptions;
|
|
495
|
+
if (configuration) {
|
|
496
|
+
baseOptions = configuration.baseOptions;
|
|
497
|
+
}
|
|
498
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
499
|
+
const localVarHeaderParameter = {};
|
|
500
|
+
const localVarQueryParameter = {};
|
|
501
|
+
// authentication accessToken required
|
|
502
|
+
// http bearer authentication required
|
|
503
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
504
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
505
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
508
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initPreAuthOffer, localVarRequestOptions, configuration);
|
|
509
|
+
return {
|
|
510
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
511
|
+
options: localVarRequestOptions,
|
|
512
|
+
};
|
|
513
|
+
}),
|
|
514
|
+
/**
|
|
515
|
+
* Configures and initiates a new wallet and creates a new key for the authenticated owner (if not already present).
|
|
516
|
+
* @param {WalletConfig} [walletConfig]
|
|
517
|
+
* @param {*} [options] Override http request option.
|
|
518
|
+
* @throws {RequiredError}
|
|
519
|
+
*/
|
|
520
|
+
walletConfigure: (walletConfig, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
const localVarPath = `/wallet`;
|
|
522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
523
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
524
|
+
let baseOptions;
|
|
525
|
+
if (configuration) {
|
|
526
|
+
baseOptions = configuration.baseOptions;
|
|
527
|
+
}
|
|
528
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
529
|
+
const localVarHeaderParameter = {};
|
|
530
|
+
const localVarQueryParameter = {};
|
|
531
|
+
// authentication accessToken required
|
|
532
|
+
// http bearer authentication required
|
|
533
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
534
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
535
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
538
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletConfig, localVarRequestOptions, configuration);
|
|
539
|
+
return {
|
|
540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
541
|
+
options: localVarRequestOptions,
|
|
542
|
+
};
|
|
543
|
+
}),
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
547
|
+
/**
|
|
548
|
+
* DefaultApi - functional programming interface
|
|
549
|
+
* @export
|
|
550
|
+
*/
|
|
551
|
+
const DefaultApiFp = function (configuration) {
|
|
552
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
553
|
+
return {
|
|
554
|
+
/**
|
|
555
|
+
* 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.
|
|
556
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
credentialCreate(credential, options) {
|
|
561
|
+
var _a, _b, _c;
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(credential, options);
|
|
564
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
565
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialCreate']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
566
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
567
|
+
});
|
|
568
|
+
},
|
|
569
|
+
/**
|
|
570
|
+
* 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.
|
|
571
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
*/
|
|
575
|
+
credentialGet(credentialId, options) {
|
|
576
|
+
var _a, _b, _c;
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, options);
|
|
579
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
580
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialGet']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
581
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
582
|
+
});
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
credentialIssue(credentialId, options) {
|
|
591
|
+
var _a, _b, _c;
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, options);
|
|
594
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
595
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialIssue']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
596
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
597
|
+
});
|
|
598
|
+
},
|
|
599
|
+
/**
|
|
600
|
+
* Retrieves a list of credentials.
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
credentialList(options) {
|
|
605
|
+
var _a, _b, _c;
|
|
606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(options);
|
|
608
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
609
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
610
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
611
|
+
});
|
|
612
|
+
},
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
616
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
credentialUpdate(credentialId, credential, options) {
|
|
621
|
+
var _a, _b, _c;
|
|
622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
623
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, credential, options);
|
|
624
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
625
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialUpdate']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
626
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
627
|
+
});
|
|
628
|
+
},
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {string} deferredId Deferred token
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
deferredStatus(deferredId, options) {
|
|
636
|
+
var _a, _b, _c;
|
|
637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
638
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId, options);
|
|
639
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
640
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.deferredStatus']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
641
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
642
|
+
});
|
|
643
|
+
},
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
getCurrentDid(options) {
|
|
650
|
+
var _a, _b, _c;
|
|
651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
652
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(options);
|
|
653
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
654
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getCurrentDid']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
655
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
656
|
+
});
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
healthCheck(options) {
|
|
664
|
+
var _a, _b, _c;
|
|
665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
|
|
667
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
668
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
669
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
670
|
+
});
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
674
|
+
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
|
|
679
|
+
var _a, _b, _c;
|
|
680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
681
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(holderAuthOfferCreationReq, options);
|
|
682
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
683
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderCreateAuthOffer']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
684
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
685
|
+
});
|
|
686
|
+
},
|
|
687
|
+
/**
|
|
688
|
+
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
689
|
+
* @param {string} url
|
|
690
|
+
* @param {*} [options] Override http request option.
|
|
691
|
+
* @throws {RequiredError}
|
|
692
|
+
*/
|
|
693
|
+
issuerCredentialTypesList(url, options) {
|
|
694
|
+
var _a, _b, _c;
|
|
695
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
696
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerCredentialTypesList(url, options);
|
|
697
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
698
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerCredentialTypesList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
699
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
700
|
+
});
|
|
701
|
+
},
|
|
702
|
+
/**
|
|
703
|
+
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
704
|
+
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
705
|
+
* @param {*} [options] Override http request option.
|
|
706
|
+
* @throws {RequiredError}
|
|
707
|
+
*/
|
|
708
|
+
oidcAcceptOffer(vcOffer, options) {
|
|
709
|
+
var _a, _b, _c;
|
|
710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
711
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(vcOffer, options);
|
|
712
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
713
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAcceptOffer']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
714
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
715
|
+
});
|
|
716
|
+
},
|
|
717
|
+
/**
|
|
718
|
+
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
719
|
+
* @param {string} credentialId
|
|
720
|
+
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
|
|
725
|
+
var _a, _b, _c;
|
|
726
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
727
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options);
|
|
728
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
729
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAddCredToIssuanceQueue']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
730
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
731
|
+
});
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
735
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
*/
|
|
739
|
+
oidcInitiateDeferred(initAuthOffer, options) {
|
|
740
|
+
var _a, _b, _c;
|
|
741
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
742
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(initAuthOffer, options);
|
|
743
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
744
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcInitiateDeferred']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
745
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
746
|
+
});
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
* Initiates issuing of the verifiable credential using authorized flow.
|
|
750
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
oidcInitiateIntime(initAuthOffer, options) {
|
|
755
|
+
var _a, _b, _c;
|
|
756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
757
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(initAuthOffer, options);
|
|
758
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
759
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcInitiateIntime']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
760
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
761
|
+
});
|
|
762
|
+
},
|
|
763
|
+
/**
|
|
764
|
+
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
765
|
+
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
oidcInitiatePreauth(initPreAuthOffer, options) {
|
|
770
|
+
var _a, _b, _c;
|
|
771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
772
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(initPreAuthOffer, options);
|
|
773
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
774
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcInitiatePreauth']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
775
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
776
|
+
});
|
|
777
|
+
},
|
|
778
|
+
/**
|
|
779
|
+
* Configures and initiates a new wallet and creates a new key for the authenticated owner (if not already present).
|
|
780
|
+
* @param {WalletConfig} [walletConfig]
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
walletConfigure(walletConfig, options) {
|
|
785
|
+
var _a, _b, _c;
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletConfigure(walletConfig, options);
|
|
788
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
789
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletConfigure']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
790
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
791
|
+
});
|
|
792
|
+
},
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
796
|
+
/**
|
|
797
|
+
* DefaultApi - factory interface
|
|
798
|
+
* @export
|
|
799
|
+
*/
|
|
800
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
801
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
802
|
+
return {
|
|
803
|
+
/**
|
|
804
|
+
* 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.
|
|
805
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
*/
|
|
809
|
+
credentialCreate(credential, options) {
|
|
810
|
+
return localVarFp.credentialCreate(credential, options).then((request) => request(axios, basePath));
|
|
811
|
+
},
|
|
812
|
+
/**
|
|
813
|
+
* 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.
|
|
814
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
credentialGet(credentialId, options) {
|
|
819
|
+
return localVarFp.credentialGet(credentialId, options).then((request) => request(axios, basePath));
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
824
|
+
* @param {*} [options] Override http request option.
|
|
825
|
+
* @throws {RequiredError}
|
|
826
|
+
*/
|
|
827
|
+
credentialIssue(credentialId, options) {
|
|
828
|
+
return localVarFp.credentialIssue(credentialId, options).then((request) => request(axios, basePath));
|
|
829
|
+
},
|
|
830
|
+
/**
|
|
831
|
+
* Retrieves a list of credentials.
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
credentialList(options) {
|
|
836
|
+
return localVarFp.credentialList(options).then((request) => request(axios, basePath));
|
|
837
|
+
},
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
841
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
credentialUpdate(credentialId, credential, options) {
|
|
846
|
+
return localVarFp.credentialUpdate(credentialId, credential, options).then((request) => request(axios, basePath));
|
|
847
|
+
},
|
|
848
|
+
/**
|
|
849
|
+
*
|
|
850
|
+
* @param {string} deferredId Deferred token
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
deferredStatus(deferredId, options) {
|
|
855
|
+
return localVarFp.deferredStatus(deferredId, options).then((request) => request(axios, basePath));
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @param {*} [options] Override http request option.
|
|
860
|
+
* @throws {RequiredError}
|
|
861
|
+
*/
|
|
862
|
+
getCurrentDid(options) {
|
|
863
|
+
return localVarFp.getCurrentDid(options).then((request) => request(axios, basePath));
|
|
864
|
+
},
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @param {*} [options] Override http request option.
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
*/
|
|
870
|
+
healthCheck(options) {
|
|
871
|
+
return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
|
|
872
|
+
},
|
|
873
|
+
/**
|
|
874
|
+
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
875
|
+
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
|
|
880
|
+
return localVarFp.holderCreateAuthOffer(holderAuthOfferCreationReq, options).then((request) => request(axios, basePath));
|
|
881
|
+
},
|
|
882
|
+
/**
|
|
883
|
+
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
884
|
+
* @param {string} url
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
issuerCredentialTypesList(url, options) {
|
|
889
|
+
return localVarFp.issuerCredentialTypesList(url, options).then((request) => request(axios, basePath));
|
|
890
|
+
},
|
|
891
|
+
/**
|
|
892
|
+
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
893
|
+
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
894
|
+
* @param {*} [options] Override http request option.
|
|
895
|
+
* @throws {RequiredError}
|
|
896
|
+
*/
|
|
897
|
+
oidcAcceptOffer(vcOffer, options) {
|
|
898
|
+
return localVarFp.oidcAcceptOffer(vcOffer, options).then((request) => request(axios, basePath));
|
|
899
|
+
},
|
|
900
|
+
/**
|
|
901
|
+
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
902
|
+
* @param {string} credentialId
|
|
903
|
+
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
904
|
+
* @param {*} [options] Override http request option.
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
*/
|
|
907
|
+
oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
|
|
908
|
+
return localVarFp.oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
|
|
909
|
+
},
|
|
910
|
+
/**
|
|
911
|
+
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
912
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
oidcInitiateDeferred(initAuthOffer, options) {
|
|
917
|
+
return localVarFp.oidcInitiateDeferred(initAuthOffer, options).then((request) => request(axios, basePath));
|
|
918
|
+
},
|
|
919
|
+
/**
|
|
920
|
+
* Initiates issuing of the verifiable credential using authorized flow.
|
|
921
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
922
|
+
* @param {*} [options] Override http request option.
|
|
923
|
+
* @throws {RequiredError}
|
|
924
|
+
*/
|
|
925
|
+
oidcInitiateIntime(initAuthOffer, options) {
|
|
926
|
+
return localVarFp.oidcInitiateIntime(initAuthOffer, options).then((request) => request(axios, basePath));
|
|
927
|
+
},
|
|
928
|
+
/**
|
|
929
|
+
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
930
|
+
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
oidcInitiatePreauth(initPreAuthOffer, options) {
|
|
935
|
+
return localVarFp.oidcInitiatePreauth(initPreAuthOffer, options).then((request) => request(axios, basePath));
|
|
936
|
+
},
|
|
937
|
+
/**
|
|
938
|
+
* Configures and initiates a new wallet and creates a new key for the authenticated owner (if not already present).
|
|
939
|
+
* @param {WalletConfig} [walletConfig]
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
walletConfigure(walletConfig, options) {
|
|
944
|
+
return localVarFp.walletConfigure(walletConfig, options).then((request) => request(axios, basePath));
|
|
945
|
+
},
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
949
|
+
/**
|
|
950
|
+
* DefaultApi - object-oriented interface
|
|
951
|
+
* @export
|
|
952
|
+
* @class DefaultApi
|
|
953
|
+
* @extends {BaseAPI}
|
|
954
|
+
*/
|
|
955
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
956
|
+
/**
|
|
957
|
+
* 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.
|
|
958
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
* @memberof DefaultApi
|
|
962
|
+
*/
|
|
963
|
+
credentialCreate(credential, options) {
|
|
964
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(credential, options).then((request) => request(this.axios, this.basePath));
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* 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.
|
|
968
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
* @memberof DefaultApi
|
|
972
|
+
*/
|
|
973
|
+
credentialGet(credentialId, options) {
|
|
974
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, options).then((request) => request(this.axios, this.basePath));
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
*
|
|
978
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
979
|
+
* @param {*} [options] Override http request option.
|
|
980
|
+
* @throws {RequiredError}
|
|
981
|
+
* @memberof DefaultApi
|
|
982
|
+
*/
|
|
983
|
+
credentialIssue(credentialId, options) {
|
|
984
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, options).then((request) => request(this.axios, this.basePath));
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Retrieves a list of credentials.
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
* @memberof DefaultApi
|
|
991
|
+
*/
|
|
992
|
+
credentialList(options) {
|
|
993
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialList(options).then((request) => request(this.axios, this.basePath));
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
*
|
|
997
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
998
|
+
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
* @memberof DefaultApi
|
|
1002
|
+
*/
|
|
1003
|
+
credentialUpdate(credentialId, credential, options) {
|
|
1004
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId, credential, options).then((request) => request(this.axios, this.basePath));
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
*
|
|
1008
|
+
* @param {string} deferredId Deferred token
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
* @memberof DefaultApi
|
|
1012
|
+
*/
|
|
1013
|
+
deferredStatus(deferredId, options) {
|
|
1014
|
+
return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, options).then((request) => request(this.axios, this.basePath));
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @param {*} [options] Override http request option.
|
|
1019
|
+
* @throws {RequiredError}
|
|
1020
|
+
* @memberof DefaultApi
|
|
1021
|
+
*/
|
|
1022
|
+
getCurrentDid(options) {
|
|
1023
|
+
return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(options).then((request) => request(this.axios, this.basePath));
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @param {*} [options] Override http request option.
|
|
1028
|
+
* @throws {RequiredError}
|
|
1029
|
+
* @memberof DefaultApi
|
|
1030
|
+
*/
|
|
1031
|
+
healthCheck(options) {
|
|
1032
|
+
return (0, exports.DefaultApiFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1036
|
+
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
1037
|
+
* @param {*} [options] Override http request option.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
* @memberof DefaultApi
|
|
1040
|
+
*/
|
|
1041
|
+
holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
|
|
1042
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(holderAuthOfferCreationReq, options).then((request) => request(this.axios, this.basePath));
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
1046
|
+
* @param {string} url
|
|
1047
|
+
* @param {*} [options] Override http request option.
|
|
1048
|
+
* @throws {RequiredError}
|
|
1049
|
+
* @memberof DefaultApi
|
|
1050
|
+
*/
|
|
1051
|
+
issuerCredentialTypesList(url, options) {
|
|
1052
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerCredentialTypesList(url, options).then((request) => request(this.axios, this.basePath));
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
1056
|
+
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
* @memberof DefaultApi
|
|
1060
|
+
*/
|
|
1061
|
+
oidcAcceptOffer(vcOffer, options) {
|
|
1062
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(vcOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1066
|
+
* @param {string} credentialId
|
|
1067
|
+
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
* @memberof DefaultApi
|
|
1071
|
+
*/
|
|
1072
|
+
oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
|
|
1073
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options).then((request) => request(this.axios, this.basePath));
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1077
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
* @memberof DefaultApi
|
|
1081
|
+
*/
|
|
1082
|
+
oidcInitiateDeferred(initAuthOffer, options) {
|
|
1083
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Initiates issuing of the verifiable credential using authorized flow.
|
|
1087
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
* @memberof DefaultApi
|
|
1091
|
+
*/
|
|
1092
|
+
oidcInitiateIntime(initAuthOffer, options) {
|
|
1093
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
1097
|
+
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
1098
|
+
* @param {*} [options] Override http request option.
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
* @memberof DefaultApi
|
|
1101
|
+
*/
|
|
1102
|
+
oidcInitiatePreauth(initPreAuthOffer, options) {
|
|
1103
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Configures and initiates a new wallet and creates a new key for the authenticated owner (if not already present).
|
|
1107
|
+
* @param {WalletConfig} [walletConfig]
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
* @memberof DefaultApi
|
|
1111
|
+
*/
|
|
1112
|
+
walletConfigure(walletConfig, options) {
|
|
1113
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletConfigure(walletConfig, options).then((request) => request(this.axios, this.basePath));
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
exports.DefaultApi = DefaultApi;
|