@trinsic/api 2.1.1-alpha2 → 2.2.0
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/.openapi-generator/FILES +16 -2
- package/dist/apis/MdlApi.d.ts +80 -0
- package/dist/apis/MdlApi.js +105 -0
- package/dist/apis/NetworkApi.d.ts +12 -6
- package/dist/apis/NetworkApi.js +13 -7
- package/dist/apis/SessionsApi.d.ts +57 -26
- package/dist/apis/SessionsApi.js +62 -20
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/MdlApi.d.ts +80 -0
- package/dist/esm/apis/MdlApi.js +101 -0
- package/dist/esm/apis/NetworkApi.d.ts +12 -6
- package/dist/esm/apis/NetworkApi.js +13 -7
- package/dist/esm/apis/SessionsApi.d.ts +57 -26
- package/dist/esm/apis/SessionsApi.js +63 -21
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppleWalletInput.d.ts +35 -0
- package/dist/esm/models/AppleWalletInput.js +42 -0
- package/dist/esm/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
- package/dist/esm/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +12 -8
- package/dist/esm/models/CreateDirectProviderSessionResponse.d.ts +46 -0
- package/dist/esm/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +8 -8
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +7 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -0
- package/dist/esm/models/CreateMdlExchangeRequest.d.ts +102 -0
- package/dist/esm/models/CreateMdlExchangeRequest.js +66 -0
- package/dist/esm/models/CreateMdlExchangeResponse.d.ts +48 -0
- package/dist/esm/models/CreateMdlExchangeResponse.js +51 -0
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.js +4 -0
- package/dist/esm/models/ExternalMdlFieldData.d.ts +39 -0
- package/dist/esm/models/ExternalMdlFieldData.js +48 -0
- package/dist/esm/models/FinalizeMdlExchangeRequest.d.ts +50 -0
- package/dist/esm/models/FinalizeMdlExchangeRequest.js +55 -0
- package/dist/esm/models/FinalizeMdlExchangeResponse.d.ts +55 -0
- package/dist/esm/models/FinalizeMdlExchangeResponse.js +54 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +6 -0
- package/dist/esm/models/GetAttachmentRequest.js +4 -0
- package/dist/esm/models/GoogleWalletInput.d.ts +35 -0
- package/dist/esm/models/GoogleWalletInput.js +42 -0
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +2 -1
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/esm/models/IntegrationLaunchMethod.js +2 -1
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/MdlCertificateData.d.ts +58 -0
- package/dist/esm/models/MdlCertificateData.js +59 -0
- package/dist/esm/models/MdlExchangeMechanism.d.ts +25 -0
- package/dist/esm/models/MdlExchangeMechanism.js +43 -0
- package/dist/esm/models/MdlFieldDataType.d.ts +28 -0
- package/dist/esm/models/MdlFieldDataType.js +46 -0
- package/dist/esm/models/MdlIdentityData.d.ts +50 -0
- package/dist/esm/models/MdlIdentityData.js +52 -0
- package/dist/esm/models/ProviderContract.d.ts +18 -8
- package/dist/esm/models/ProviderContract.js +4 -0
- package/dist/esm/models/ProviderInput.d.ts +14 -0
- package/dist/esm/models/ProviderInput.js +6 -0
- package/dist/esm/models/RecommendRequest.d.ts +6 -0
- package/dist/esm/models/RecommendRequest.js +4 -0
- package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/esm/models/ResultCollectionMethod.js +2 -1
- package/dist/esm/models/SessionErrorCode.d.ts +2 -0
- package/dist/esm/models/SessionErrorCode.js +3 -1
- package/dist/esm/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
- package/dist/esm/models/SubmitNativeChallengeResponseRequest.js +47 -0
- package/dist/esm/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
- package/dist/esm/models/SubmitNativeChallengeResponseResponse.js +44 -0
- package/dist/esm/models/index.d.ts +15 -2
- package/dist/esm/models/index.js +15 -2
- package/dist/models/AppleWalletInput.d.ts +35 -0
- package/dist/models/AppleWalletInput.js +49 -0
- package/dist/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
- package/dist/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +17 -13
- package/dist/models/CreateDirectProviderSessionResponse.d.ts +46 -0
- package/dist/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +13 -13
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +7 -1
- package/dist/models/CreateHostedProviderSessionRequest.js +4 -0
- package/dist/models/CreateMdlExchangeRequest.d.ts +102 -0
- package/dist/models/CreateMdlExchangeRequest.js +73 -0
- package/dist/models/CreateMdlExchangeResponse.d.ts +48 -0
- package/dist/models/CreateMdlExchangeResponse.js +58 -0
- package/dist/models/CreateWidgetSessionRequest.d.ts +7 -1
- package/dist/models/CreateWidgetSessionRequest.js +4 -0
- package/dist/models/ExternalMdlFieldData.d.ts +39 -0
- package/dist/models/ExternalMdlFieldData.js +55 -0
- package/dist/models/FinalizeMdlExchangeRequest.d.ts +50 -0
- package/dist/models/FinalizeMdlExchangeRequest.js +62 -0
- package/dist/models/FinalizeMdlExchangeResponse.d.ts +55 -0
- package/dist/models/FinalizeMdlExchangeResponse.js +61 -0
- package/dist/models/GetAttachmentRequest.d.ts +6 -0
- package/dist/models/GetAttachmentRequest.js +4 -0
- package/dist/models/GoogleWalletInput.d.ts +35 -0
- package/dist/models/GoogleWalletInput.js +49 -0
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +2 -1
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/models/IntegrationLaunchMethod.js +2 -1
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/MdlCertificateData.d.ts +58 -0
- package/dist/models/MdlCertificateData.js +66 -0
- package/dist/models/MdlExchangeMechanism.d.ts +25 -0
- package/dist/models/MdlExchangeMechanism.js +51 -0
- package/dist/models/MdlFieldDataType.d.ts +28 -0
- package/dist/models/MdlFieldDataType.js +54 -0
- package/dist/models/MdlIdentityData.d.ts +50 -0
- package/dist/models/MdlIdentityData.js +59 -0
- package/dist/models/ProviderContract.d.ts +18 -8
- package/dist/models/ProviderContract.js +4 -0
- package/dist/models/ProviderInput.d.ts +14 -0
- package/dist/models/ProviderInput.js +6 -0
- package/dist/models/RecommendRequest.d.ts +6 -0
- package/dist/models/RecommendRequest.js +4 -0
- package/dist/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/models/ResultCollectionMethod.js +2 -1
- package/dist/models/SessionErrorCode.d.ts +2 -0
- package/dist/models/SessionErrorCode.js +3 -1
- package/dist/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
- package/dist/models/SubmitNativeChallengeResponseRequest.js +54 -0
- package/dist/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
- package/dist/models/SubmitNativeChallengeResponseResponse.js +51 -0
- package/dist/models/index.d.ts +15 -2
- package/dist/models/index.js +15 -2
- package/package.json +1 -1
- package/src/apis/MdlApi.ts +169 -0
- package/src/apis/NetworkApi.ts +31 -10
- package/src/apis/SessionsApi.ts +125 -42
- package/src/apis/index.ts +1 -0
- package/src/models/AppleWalletInput.ts +77 -0
- package/src/models/{CreateAdvancedProviderSessionRequest.ts → CreateDirectProviderSessionRequest.ts} +25 -16
- package/src/models/{CreateAdvancedProviderSessionResponse.ts → CreateDirectProviderSessionResponse.ts} +13 -13
- package/src/models/CreateHostedProviderSessionRequest.ts +10 -1
- package/src/models/CreateMdlExchangeRequest.ts +159 -0
- package/src/models/CreateMdlExchangeResponse.ts +88 -0
- package/src/models/CreateWidgetSessionRequest.ts +10 -1
- package/src/models/ExternalMdlFieldData.ts +85 -0
- package/src/models/FinalizeMdlExchangeRequest.ts +93 -0
- package/src/models/FinalizeMdlExchangeResponse.ts +115 -0
- package/src/models/GetAttachmentRequest.ts +9 -0
- package/src/models/GoogleWalletInput.ts +77 -0
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/IntegrationLaunchMethod.ts +2 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/MdlCertificateData.ts +104 -0
- package/src/models/MdlExchangeMechanism.ts +53 -0
- package/src/models/MdlFieldDataType.ts +56 -0
- package/src/models/MdlIdentityData.ts +99 -0
- package/src/models/ProviderContract.ts +21 -8
- package/src/models/ProviderInput.ts +30 -0
- package/src/models/RecommendRequest.ts +9 -0
- package/src/models/ResultCollectionMethod.ts +2 -1
- package/src/models/SessionErrorCode.ts +3 -1
- package/src/models/SubmitNativeChallengeResponseRequest.ts +75 -0
- package/src/models/SubmitNativeChallengeResponseResponse.ts +74 -0
- package/src/models/index.ts +15 -2
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
package/dist/apis/SessionsApi.js
CHANGED
|
@@ -68,9 +68,9 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
|
|
71
|
-
* Create
|
|
71
|
+
* Create Direct Provider Session
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
createDirectProviderSessionRaw(requestParameters, initOverrides) {
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
const queryParameters = {};
|
|
76
76
|
const headerParameters = {};
|
|
@@ -83,22 +83,22 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
const response = yield this.request({
|
|
86
|
-
path: `/api/v1/sessions/provider/
|
|
86
|
+
path: `/api/v1/sessions/provider/direct`,
|
|
87
87
|
method: 'POST',
|
|
88
88
|
headers: headerParameters,
|
|
89
89
|
query: queryParameters,
|
|
90
|
-
body: (0, index_1.
|
|
90
|
+
body: (0, index_1.CreateDirectProviderSessionRequestToJSON)(requestParameters['createDirectProviderSessionRequest']),
|
|
91
91
|
}, initOverrides);
|
|
92
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateDirectProviderSessionResponseFromJSON)(jsonValue));
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
|
|
97
|
-
* Create
|
|
97
|
+
* Create Direct Provider Session
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
createDirectProviderSession(createDirectProviderSessionRequest, initOverrides) {
|
|
100
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
const response = yield this.
|
|
101
|
+
const response = yield this.createDirectProviderSessionRaw({ createDirectProviderSessionRequest: createDirectProviderSessionRequest }, initOverrides);
|
|
102
102
|
return yield response.value();
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -249,11 +249,14 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
* List Sessions created
|
|
252
|
+
* List Sessions created for a specific Verification Profile
|
|
253
253
|
* List Sessions
|
|
254
254
|
*/
|
|
255
255
|
listSessionsRaw(requestParameters, initOverrides) {
|
|
256
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
if (requestParameters['verificationProfileId'] == null) {
|
|
258
|
+
throw new runtime.RequiredError('verificationProfileId', 'Required parameter "verificationProfileId" was null or undefined when calling listSessions().');
|
|
259
|
+
}
|
|
257
260
|
const queryParameters = {};
|
|
258
261
|
if (requestParameters['orderBy'] != null) {
|
|
259
262
|
queryParameters['OrderBy'] = requestParameters['orderBy'];
|
|
@@ -276,7 +279,7 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
281
|
const response = yield this.request({
|
|
279
|
-
path: `/api/v1/sessions
|
|
282
|
+
path: `/api/v1/verification-profiles/{verificationProfileId}/sessions`.replace(`{${"verificationProfileId"}}`, encodeURIComponent(String(requestParameters['verificationProfileId']))),
|
|
280
283
|
method: 'GET',
|
|
281
284
|
headers: headerParameters,
|
|
282
285
|
query: queryParameters,
|
|
@@ -285,12 +288,12 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
285
288
|
});
|
|
286
289
|
}
|
|
287
290
|
/**
|
|
288
|
-
* List Sessions created
|
|
291
|
+
* List Sessions created for a specific Verification Profile
|
|
289
292
|
* List Sessions
|
|
290
293
|
*/
|
|
291
|
-
listSessions(orderBy, orderDirection, pageSize, page, initOverrides) {
|
|
294
|
+
listSessions(verificationProfileId, orderBy, orderDirection, pageSize, page, initOverrides) {
|
|
292
295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
-
const response = yield this.listSessionsRaw({ orderBy: orderBy, orderDirection: orderDirection, pageSize: pageSize, page: page }, initOverrides);
|
|
296
|
+
const response = yield this.listSessionsRaw({ verificationProfileId: verificationProfileId, orderBy: orderBy, orderDirection: orderDirection, pageSize: pageSize, page: page }, initOverrides);
|
|
294
297
|
return yield response.value();
|
|
295
298
|
});
|
|
296
299
|
}
|
|
@@ -331,13 +334,13 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
331
334
|
});
|
|
332
335
|
}
|
|
333
336
|
/**
|
|
334
|
-
* Refreshes the content of a Step for
|
|
337
|
+
* Refreshes the content of a Step for a Direct Provider Session.
|
|
335
338
|
* Refresh Step Content
|
|
336
339
|
*/
|
|
337
340
|
refreshStepContentRaw(requestParameters, initOverrides) {
|
|
338
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
-
if (requestParameters['
|
|
340
|
-
throw new runtime.RequiredError('
|
|
342
|
+
if (requestParameters['sessionId'] == null) {
|
|
343
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling refreshStepContent().');
|
|
341
344
|
}
|
|
342
345
|
const queryParameters = {};
|
|
343
346
|
const headerParameters = {};
|
|
@@ -350,7 +353,7 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
350
353
|
}
|
|
351
354
|
}
|
|
352
355
|
const response = yield this.request({
|
|
353
|
-
path: `/api/v1/sessions/{
|
|
356
|
+
path: `/api/v1/sessions/{sessionId}/step/refresh`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
354
357
|
method: 'POST',
|
|
355
358
|
headers: headerParameters,
|
|
356
359
|
query: queryParameters,
|
|
@@ -360,12 +363,51 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
360
363
|
});
|
|
361
364
|
}
|
|
362
365
|
/**
|
|
363
|
-
* Refreshes the content of a Step for
|
|
366
|
+
* Refreshes the content of a Step for a Direct Provider Session.
|
|
364
367
|
* Refresh Step Content
|
|
365
368
|
*/
|
|
366
|
-
refreshStepContent(
|
|
369
|
+
refreshStepContent(sessionId, refreshStepContentRequest, initOverrides) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
const response = yield this.refreshStepContentRaw({ sessionId: sessionId, refreshStepContentRequest: refreshStepContentRequest }, initOverrides);
|
|
372
|
+
return yield response.value();
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
|
377
|
+
* Submit Native Challenge Response
|
|
378
|
+
*/
|
|
379
|
+
submitNativeChallengeResponseRaw(requestParameters, initOverrides) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
if (requestParameters['sessionId'] == null) {
|
|
382
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling submitNativeChallengeResponse().');
|
|
383
|
+
}
|
|
384
|
+
const queryParameters = {};
|
|
385
|
+
const headerParameters = {};
|
|
386
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
387
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
388
|
+
const token = this.configuration.accessToken;
|
|
389
|
+
const tokenString = yield token("Bearer", []);
|
|
390
|
+
if (tokenString) {
|
|
391
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
const response = yield this.request({
|
|
395
|
+
path: `/api/v1/sessions/{sessionId}/native-challenge/submit`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
396
|
+
method: 'POST',
|
|
397
|
+
headers: headerParameters,
|
|
398
|
+
query: queryParameters,
|
|
399
|
+
body: (0, index_1.SubmitNativeChallengeResponseRequestToJSON)(requestParameters['submitNativeChallengeResponseRequest']),
|
|
400
|
+
}, initOverrides);
|
|
401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SubmitNativeChallengeResponseResponseFromJSON)(jsonValue));
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.
|
|
406
|
+
* Submit Native Challenge Response
|
|
407
|
+
*/
|
|
408
|
+
submitNativeChallengeResponse(sessionId, submitNativeChallengeResponseRequest, initOverrides) {
|
|
367
409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
-
const response = yield this.
|
|
410
|
+
const response = yield this.submitNativeChallengeResponseRaw({ sessionId: sessionId, submitNativeChallengeResponseRequest: submitNativeChallengeResponseRequest }, initOverrides);
|
|
369
411
|
return yield response.value();
|
|
370
412
|
});
|
|
371
413
|
}
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AttachmentsApi"), exports);
|
|
20
|
+
__exportStar(require("./MdlApi"), exports);
|
|
20
21
|
__exportStar(require("./NetworkApi"), exports);
|
|
21
22
|
__exportStar(require("./SessionsApi"), exports);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateMdlExchangeRequest, CreateMdlExchangeResponse, FinalizeMdlExchangeRequest, FinalizeMdlExchangeResponse } from '../models/index';
|
|
14
|
+
export interface CreateMdlExchangeOperationRequest {
|
|
15
|
+
createMdlExchangeRequest?: CreateMdlExchangeRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface FinalizeMdlExchangeOperationRequest {
|
|
18
|
+
finalizeMdlExchangeRequest?: FinalizeMdlExchangeRequest;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* MdlApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface MdlApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface MdlApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
29
|
+
* @summary Create mDL Exchange
|
|
30
|
+
* @param {CreateMdlExchangeRequest} [createMdlExchangeRequest]
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
* @memberof MdlApiInterface
|
|
34
|
+
*/
|
|
35
|
+
createMdlExchangeRaw(requestParameters: CreateMdlExchangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateMdlExchangeResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
38
|
+
* Create mDL Exchange
|
|
39
|
+
*/
|
|
40
|
+
createMdlExchange(createMdlExchangeRequest?: CreateMdlExchangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateMdlExchangeResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Finalizes an mDL Exchange, processing the results
|
|
43
|
+
* @summary Finalize mDL Exchange
|
|
44
|
+
* @param {FinalizeMdlExchangeRequest} [finalizeMdlExchangeRequest]
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
* @memberof MdlApiInterface
|
|
48
|
+
*/
|
|
49
|
+
finalizeMdlExchangeRaw(requestParameters: FinalizeMdlExchangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalizeMdlExchangeResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* Finalizes an mDL Exchange, processing the results
|
|
52
|
+
* Finalize mDL Exchange
|
|
53
|
+
*/
|
|
54
|
+
finalizeMdlExchange(finalizeMdlExchangeRequest?: FinalizeMdlExchangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalizeMdlExchangeResponse>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export declare class MdlApi extends runtime.BaseAPI implements MdlApiInterface {
|
|
60
|
+
/**
|
|
61
|
+
* Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
62
|
+
* Create mDL Exchange
|
|
63
|
+
*/
|
|
64
|
+
createMdlExchangeRaw(requestParameters: CreateMdlExchangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateMdlExchangeResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
67
|
+
* Create mDL Exchange
|
|
68
|
+
*/
|
|
69
|
+
createMdlExchange(createMdlExchangeRequest?: CreateMdlExchangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateMdlExchangeResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Finalizes an mDL Exchange, processing the results
|
|
72
|
+
* Finalize mDL Exchange
|
|
73
|
+
*/
|
|
74
|
+
finalizeMdlExchangeRaw(requestParameters: FinalizeMdlExchangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalizeMdlExchangeResponse>>;
|
|
75
|
+
/**
|
|
76
|
+
* Finalizes an mDL Exchange, processing the results
|
|
77
|
+
* Finalize mDL Exchange
|
|
78
|
+
*/
|
|
79
|
+
finalizeMdlExchange(finalizeMdlExchangeRequest?: FinalizeMdlExchangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalizeMdlExchangeResponse>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { CreateMdlExchangeRequestToJSON, CreateMdlExchangeResponseFromJSON, FinalizeMdlExchangeRequestToJSON, FinalizeMdlExchangeResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class MdlApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
31
|
+
* Create mDL Exchange
|
|
32
|
+
*/
|
|
33
|
+
createMdlExchangeRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const queryParameters = {};
|
|
36
|
+
const headerParameters = {};
|
|
37
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
38
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
39
|
+
const token = this.configuration.accessToken;
|
|
40
|
+
const tokenString = yield token("Bearer", []);
|
|
41
|
+
if (tokenString) {
|
|
42
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: `/api/valpha/mdl/exchanges/create`,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: CreateMdlExchangeRequestToJSON(requestParameters['createMdlExchangeRequest']),
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateMdlExchangeResponseFromJSON(jsonValue));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
57
|
+
* Create mDL Exchange
|
|
58
|
+
*/
|
|
59
|
+
createMdlExchange(createMdlExchangeRequest, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.createMdlExchangeRaw({ createMdlExchangeRequest: createMdlExchangeRequest }, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Finalizes an mDL Exchange, processing the results
|
|
67
|
+
* Finalize mDL Exchange
|
|
68
|
+
*/
|
|
69
|
+
finalizeMdlExchangeRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
+
const token = this.configuration.accessToken;
|
|
76
|
+
const tokenString = yield token("Bearer", []);
|
|
77
|
+
if (tokenString) {
|
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const response = yield this.request({
|
|
82
|
+
path: `/api/valpha/mdl/exchanges/finalize`,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
body: FinalizeMdlExchangeRequestToJSON(requestParameters['finalizeMdlExchangeRequest']),
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalizeMdlExchangeResponseFromJSON(jsonValue));
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Finalizes an mDL Exchange, processing the results
|
|
93
|
+
* Finalize mDL Exchange
|
|
94
|
+
*/
|
|
95
|
+
finalizeMdlExchange(finalizeMdlExchangeRequest, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const response = yield this.finalizeMdlExchangeRaw({ finalizeMdlExchangeRequest: finalizeMdlExchangeRequest }, initOverrides);
|
|
98
|
+
return yield response.value();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ListProviderContractsResponse, ListProvidersResponse, RecommendRequest, RecommendResponse } from '../models/index';
|
|
14
|
+
export interface ListProviderContractsRequest {
|
|
15
|
+
verificationProfileId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface ListProvidersRequest {
|
|
18
|
+
verificationProfileId: string;
|
|
15
19
|
health?: string;
|
|
16
20
|
}
|
|
17
21
|
export interface RecommendProvidersRequest {
|
|
@@ -27,19 +31,21 @@ export interface NetworkApiInterface {
|
|
|
27
31
|
/**
|
|
28
32
|
* List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
29
33
|
* @summary List Provider Contracts
|
|
34
|
+
* @param {string} verificationProfileId
|
|
30
35
|
* @param {*} [options] Override http request option.
|
|
31
36
|
* @throws {RequiredError}
|
|
32
37
|
* @memberof NetworkApiInterface
|
|
33
38
|
*/
|
|
34
|
-
listProviderContractsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>>;
|
|
39
|
+
listProviderContractsRaw(requestParameters: ListProviderContractsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>>;
|
|
35
40
|
/**
|
|
36
41
|
* List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
37
42
|
* List Provider Contracts
|
|
38
43
|
*/
|
|
39
|
-
listProviderContracts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
|
|
44
|
+
listProviderContracts(verificationProfileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
|
|
40
45
|
/**
|
|
41
46
|
* List all identity providers available for use
|
|
42
47
|
* @summary List Providers
|
|
48
|
+
* @param {string} verificationProfileId
|
|
43
49
|
* @param {string} [health] Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
|
44
50
|
* @param {*} [options] Override http request option.
|
|
45
51
|
* @throws {RequiredError}
|
|
@@ -50,7 +56,7 @@ export interface NetworkApiInterface {
|
|
|
50
56
|
* List all identity providers available for use
|
|
51
57
|
* List Providers
|
|
52
58
|
*/
|
|
53
|
-
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
59
|
+
listProviders(verificationProfileId: string, health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
54
60
|
/**
|
|
55
61
|
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
56
62
|
* @summary Recommend Providers
|
|
@@ -74,12 +80,12 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
|
|
|
74
80
|
* List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
75
81
|
* List Provider Contracts
|
|
76
82
|
*/
|
|
77
|
-
listProviderContractsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>>;
|
|
83
|
+
listProviderContractsRaw(requestParameters: ListProviderContractsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>>;
|
|
78
84
|
/**
|
|
79
85
|
* List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
80
86
|
* List Provider Contracts
|
|
81
87
|
*/
|
|
82
|
-
listProviderContracts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
|
|
88
|
+
listProviderContracts(verificationProfileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
|
|
83
89
|
/**
|
|
84
90
|
* List all identity providers available for use
|
|
85
91
|
* List Providers
|
|
@@ -89,7 +95,7 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
|
|
|
89
95
|
* List all identity providers available for use
|
|
90
96
|
* List Providers
|
|
91
97
|
*/
|
|
92
|
-
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
98
|
+
listProviders(verificationProfileId: string, health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
93
99
|
/**
|
|
94
100
|
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
95
101
|
* Recommend Providers
|
|
@@ -30,8 +30,11 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
30
30
|
* List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
31
31
|
* List Provider Contracts
|
|
32
32
|
*/
|
|
33
|
-
listProviderContractsRaw(initOverrides) {
|
|
33
|
+
listProviderContractsRaw(requestParameters, initOverrides) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['verificationProfileId'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('verificationProfileId', 'Required parameter "verificationProfileId" was null or undefined when calling listProviderContracts().');
|
|
37
|
+
}
|
|
35
38
|
const queryParameters = {};
|
|
36
39
|
const headerParameters = {};
|
|
37
40
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -42,7 +45,7 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
47
|
const response = yield this.request({
|
|
45
|
-
path: `/api/v1/network/providers/contracts`,
|
|
48
|
+
path: `/api/v1/network/{verificationProfileId}/providers/contracts`.replace(`{${"verificationProfileId"}}`, encodeURIComponent(String(requestParameters['verificationProfileId']))),
|
|
46
49
|
method: 'GET',
|
|
47
50
|
headers: headerParameters,
|
|
48
51
|
query: queryParameters,
|
|
@@ -54,9 +57,9 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
54
57
|
* List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
55
58
|
* List Provider Contracts
|
|
56
59
|
*/
|
|
57
|
-
listProviderContracts(initOverrides) {
|
|
60
|
+
listProviderContracts(verificationProfileId, initOverrides) {
|
|
58
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
const response = yield this.listProviderContractsRaw(initOverrides);
|
|
62
|
+
const response = yield this.listProviderContractsRaw({ verificationProfileId: verificationProfileId }, initOverrides);
|
|
60
63
|
return yield response.value();
|
|
61
64
|
});
|
|
62
65
|
}
|
|
@@ -66,6 +69,9 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
66
69
|
*/
|
|
67
70
|
listProvidersRaw(requestParameters, initOverrides) {
|
|
68
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (requestParameters['verificationProfileId'] == null) {
|
|
73
|
+
throw new runtime.RequiredError('verificationProfileId', 'Required parameter "verificationProfileId" was null or undefined when calling listProviders().');
|
|
74
|
+
}
|
|
69
75
|
const queryParameters = {};
|
|
70
76
|
if (requestParameters['health'] != null) {
|
|
71
77
|
queryParameters['health'] = requestParameters['health'];
|
|
@@ -79,7 +85,7 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
79
85
|
}
|
|
80
86
|
}
|
|
81
87
|
const response = yield this.request({
|
|
82
|
-
path: `/api/v1/network/providers`,
|
|
88
|
+
path: `/api/v1/network/{verificationProfileId}/providers`.replace(`{${"verificationProfileId"}}`, encodeURIComponent(String(requestParameters['verificationProfileId']))),
|
|
83
89
|
method: 'GET',
|
|
84
90
|
headers: headerParameters,
|
|
85
91
|
query: queryParameters,
|
|
@@ -91,9 +97,9 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
91
97
|
* List all identity providers available for use
|
|
92
98
|
* List Providers
|
|
93
99
|
*/
|
|
94
|
-
listProviders(health, initOverrides) {
|
|
100
|
+
listProviders(verificationProfileId, health, initOverrides) {
|
|
95
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
const response = yield this.listProvidersRaw({ health: health }, initOverrides);
|
|
102
|
+
const response = yield this.listProvidersRaw({ verificationProfileId: verificationProfileId, health: health }, initOverrides);
|
|
97
103
|
return yield response.value();
|
|
98
104
|
});
|
|
99
105
|
}
|