@idunion/tl-sdk 0.0.2

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