@trinsic/api 2.1.1-alpha2 → 2.2.0-alpha1

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.
Files changed (157) hide show
  1. package/.openapi-generator/FILES +16 -2
  2. package/dist/apis/MdlApi.d.ts +80 -0
  3. package/dist/apis/MdlApi.js +105 -0
  4. package/dist/apis/NetworkApi.d.ts +14 -15
  5. package/dist/apis/NetworkApi.js +13 -11
  6. package/dist/apis/SessionsApi.d.ts +53 -22
  7. package/dist/apis/SessionsApi.js +57 -15
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/esm/apis/MdlApi.d.ts +80 -0
  11. package/dist/esm/apis/MdlApi.js +101 -0
  12. package/dist/esm/apis/NetworkApi.d.ts +14 -15
  13. package/dist/esm/apis/NetworkApi.js +13 -11
  14. package/dist/esm/apis/SessionsApi.d.ts +53 -22
  15. package/dist/esm/apis/SessionsApi.js +58 -16
  16. package/dist/esm/apis/index.d.ts +1 -0
  17. package/dist/esm/apis/index.js +1 -0
  18. package/dist/esm/models/AppleWalletInput.d.ts +35 -0
  19. package/dist/esm/models/AppleWalletInput.js +42 -0
  20. package/dist/esm/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
  21. package/dist/esm/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +12 -8
  22. package/dist/esm/models/CreateDirectProviderSessionResponse.d.ts +46 -0
  23. package/dist/esm/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +8 -8
  24. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +7 -1
  25. package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -0
  26. package/dist/esm/models/CreateMdlExchangeRequest.d.ts +102 -0
  27. package/dist/esm/models/CreateMdlExchangeRequest.js +66 -0
  28. package/dist/esm/models/CreateMdlExchangeResponse.d.ts +48 -0
  29. package/dist/esm/models/CreateMdlExchangeResponse.js +51 -0
  30. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +7 -1
  31. package/dist/esm/models/CreateWidgetSessionRequest.js +4 -0
  32. package/dist/esm/models/ExternalMdlFieldData.d.ts +39 -0
  33. package/dist/esm/models/ExternalMdlFieldData.js +48 -0
  34. package/dist/esm/models/FinalizeMdlExchangeRequest.d.ts +50 -0
  35. package/dist/esm/models/FinalizeMdlExchangeRequest.js +55 -0
  36. package/dist/esm/models/FinalizeMdlExchangeResponse.d.ts +55 -0
  37. package/dist/esm/models/FinalizeMdlExchangeResponse.js +54 -0
  38. package/dist/esm/models/GetAttachmentRequest.d.ts +6 -0
  39. package/dist/esm/models/GetAttachmentRequest.js +4 -0
  40. package/dist/esm/models/GoogleWalletInput.d.ts +35 -0
  41. package/dist/esm/models/GoogleWalletInput.js +42 -0
  42. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  43. package/dist/esm/models/IntegrationCapability.js +2 -1
  44. package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
  45. package/dist/esm/models/IntegrationLaunchMethod.js +2 -1
  46. package/dist/esm/models/IntegrationStep.d.ts +1 -1
  47. package/dist/esm/models/MdlCertificateData.d.ts +58 -0
  48. package/dist/esm/models/MdlCertificateData.js +59 -0
  49. package/dist/esm/models/MdlExchangeMechanism.d.ts +25 -0
  50. package/dist/esm/models/MdlExchangeMechanism.js +43 -0
  51. package/dist/esm/models/MdlFieldDataType.d.ts +28 -0
  52. package/dist/esm/models/MdlFieldDataType.js +46 -0
  53. package/dist/esm/models/MdlIdentityData.d.ts +50 -0
  54. package/dist/esm/models/MdlIdentityData.js +52 -0
  55. package/dist/esm/models/ProviderContract.d.ts +18 -8
  56. package/dist/esm/models/ProviderContract.js +4 -0
  57. package/dist/esm/models/ProviderInput.d.ts +14 -0
  58. package/dist/esm/models/ProviderInput.js +6 -0
  59. package/dist/esm/models/RecommendRequest.d.ts +6 -0
  60. package/dist/esm/models/RecommendRequest.js +4 -0
  61. package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
  62. package/dist/esm/models/ResultCollectionMethod.js +2 -1
  63. package/dist/esm/models/SessionErrorCode.d.ts +2 -0
  64. package/dist/esm/models/SessionErrorCode.js +3 -1
  65. package/dist/esm/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
  66. package/dist/esm/models/SubmitNativeChallengeResponseRequest.js +47 -0
  67. package/dist/esm/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
  68. package/dist/esm/models/SubmitNativeChallengeResponseResponse.js +44 -0
  69. package/dist/esm/models/index.d.ts +15 -2
  70. package/dist/esm/models/index.js +15 -2
  71. package/dist/models/AppleWalletInput.d.ts +35 -0
  72. package/dist/models/AppleWalletInput.js +49 -0
  73. package/dist/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
  74. package/dist/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +17 -13
  75. package/dist/models/CreateDirectProviderSessionResponse.d.ts +46 -0
  76. package/dist/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +13 -13
  77. package/dist/models/CreateHostedProviderSessionRequest.d.ts +7 -1
  78. package/dist/models/CreateHostedProviderSessionRequest.js +4 -0
  79. package/dist/models/CreateMdlExchangeRequest.d.ts +102 -0
  80. package/dist/models/CreateMdlExchangeRequest.js +73 -0
  81. package/dist/models/CreateMdlExchangeResponse.d.ts +48 -0
  82. package/dist/models/CreateMdlExchangeResponse.js +58 -0
  83. package/dist/models/CreateWidgetSessionRequest.d.ts +7 -1
  84. package/dist/models/CreateWidgetSessionRequest.js +4 -0
  85. package/dist/models/ExternalMdlFieldData.d.ts +39 -0
  86. package/dist/models/ExternalMdlFieldData.js +55 -0
  87. package/dist/models/FinalizeMdlExchangeRequest.d.ts +50 -0
  88. package/dist/models/FinalizeMdlExchangeRequest.js +62 -0
  89. package/dist/models/FinalizeMdlExchangeResponse.d.ts +55 -0
  90. package/dist/models/FinalizeMdlExchangeResponse.js +61 -0
  91. package/dist/models/GetAttachmentRequest.d.ts +6 -0
  92. package/dist/models/GetAttachmentRequest.js +4 -0
  93. package/dist/models/GoogleWalletInput.d.ts +35 -0
  94. package/dist/models/GoogleWalletInput.js +49 -0
  95. package/dist/models/IntegrationCapability.d.ts +1 -0
  96. package/dist/models/IntegrationCapability.js +2 -1
  97. package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
  98. package/dist/models/IntegrationLaunchMethod.js +2 -1
  99. package/dist/models/IntegrationStep.d.ts +1 -1
  100. package/dist/models/MdlCertificateData.d.ts +58 -0
  101. package/dist/models/MdlCertificateData.js +66 -0
  102. package/dist/models/MdlExchangeMechanism.d.ts +25 -0
  103. package/dist/models/MdlExchangeMechanism.js +51 -0
  104. package/dist/models/MdlFieldDataType.d.ts +28 -0
  105. package/dist/models/MdlFieldDataType.js +54 -0
  106. package/dist/models/MdlIdentityData.d.ts +50 -0
  107. package/dist/models/MdlIdentityData.js +59 -0
  108. package/dist/models/ProviderContract.d.ts +18 -8
  109. package/dist/models/ProviderContract.js +4 -0
  110. package/dist/models/ProviderInput.d.ts +14 -0
  111. package/dist/models/ProviderInput.js +6 -0
  112. package/dist/models/RecommendRequest.d.ts +6 -0
  113. package/dist/models/RecommendRequest.js +4 -0
  114. package/dist/models/ResultCollectionMethod.d.ts +1 -0
  115. package/dist/models/ResultCollectionMethod.js +2 -1
  116. package/dist/models/SessionErrorCode.d.ts +2 -0
  117. package/dist/models/SessionErrorCode.js +3 -1
  118. package/dist/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
  119. package/dist/models/SubmitNativeChallengeResponseRequest.js +54 -0
  120. package/dist/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
  121. package/dist/models/SubmitNativeChallengeResponseResponse.js +51 -0
  122. package/dist/models/index.d.ts +15 -2
  123. package/dist/models/index.js +15 -2
  124. package/package.json +1 -1
  125. package/src/apis/MdlApi.ts +169 -0
  126. package/src/apis/NetworkApi.ts +33 -19
  127. package/src/apis/SessionsApi.ts +116 -33
  128. package/src/apis/index.ts +1 -0
  129. package/src/models/AppleWalletInput.ts +77 -0
  130. package/src/models/{CreateAdvancedProviderSessionRequest.ts → CreateDirectProviderSessionRequest.ts} +25 -16
  131. package/src/models/{CreateAdvancedProviderSessionResponse.ts → CreateDirectProviderSessionResponse.ts} +13 -13
  132. package/src/models/CreateHostedProviderSessionRequest.ts +10 -1
  133. package/src/models/CreateMdlExchangeRequest.ts +159 -0
  134. package/src/models/CreateMdlExchangeResponse.ts +88 -0
  135. package/src/models/CreateWidgetSessionRequest.ts +10 -1
  136. package/src/models/ExternalMdlFieldData.ts +85 -0
  137. package/src/models/FinalizeMdlExchangeRequest.ts +93 -0
  138. package/src/models/FinalizeMdlExchangeResponse.ts +115 -0
  139. package/src/models/GetAttachmentRequest.ts +9 -0
  140. package/src/models/GoogleWalletInput.ts +77 -0
  141. package/src/models/IntegrationCapability.ts +2 -1
  142. package/src/models/IntegrationLaunchMethod.ts +2 -1
  143. package/src/models/IntegrationStep.ts +1 -1
  144. package/src/models/MdlCertificateData.ts +104 -0
  145. package/src/models/MdlExchangeMechanism.ts +53 -0
  146. package/src/models/MdlFieldDataType.ts +56 -0
  147. package/src/models/MdlIdentityData.ts +99 -0
  148. package/src/models/ProviderContract.ts +21 -8
  149. package/src/models/ProviderInput.ts +30 -0
  150. package/src/models/RecommendRequest.ts +9 -0
  151. package/src/models/ResultCollectionMethod.ts +2 -1
  152. package/src/models/SessionErrorCode.ts +3 -1
  153. package/src/models/SubmitNativeChallengeResponseRequest.ts +75 -0
  154. package/src/models/SubmitNativeChallengeResponseResponse.ts +74 -0
  155. package/src/models/index.ts +15 -2
  156. package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
  157. package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
@@ -21,6 +21,12 @@ export interface GetAttachmentRequest {
21
21
  * @memberof GetAttachmentRequest
22
22
  */
23
23
  attachmentAccessKey: string;
24
+ /**
25
+ * The ID of the Acceptance Session for which the Attachment is being requested.
26
+ * @type {string}
27
+ * @memberof GetAttachmentRequest
28
+ */
29
+ sessionId: string;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the GetAttachmentRequest interface.
@@ -17,6 +17,8 @@
17
17
  export function instanceOfGetAttachmentRequest(value) {
18
18
  if (!('attachmentAccessKey' in value) || value['attachmentAccessKey'] === undefined)
19
19
  return false;
20
+ if (!('sessionId' in value) || value['sessionId'] === undefined)
21
+ return false;
20
22
  return true;
21
23
  }
22
24
  export function GetAttachmentRequestFromJSON(json) {
@@ -28,6 +30,7 @@ export function GetAttachmentRequestFromJSONTyped(json, ignoreDiscriminator) {
28
30
  }
29
31
  return {
30
32
  'attachmentAccessKey': json['attachmentAccessKey'],
33
+ 'sessionId': json['sessionId'],
31
34
  };
32
35
  }
33
36
  export function GetAttachmentRequestToJSON(json) {
@@ -39,5 +42,6 @@ export function GetAttachmentRequestToJSONTyped(value, ignoreDiscriminator = fal
39
42
  }
40
43
  return {
41
44
  'attachmentAccessKey': value['attachmentAccessKey'],
45
+ 'sessionId': value['sessionId'],
42
46
  };
43
47
  }
@@ -0,0 +1,35 @@
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 type { MdlExchangeMechanism } from './MdlExchangeMechanism';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GoogleWalletInput
17
+ */
18
+ export interface GoogleWalletInput {
19
+ /**
20
+ * The exchange mechanism to use for this Google Wallet verification.
21
+ *
22
+ * Use `DigitalCredentialsApi` for Digital Credentials API on web, or `NativeApp` for a native Android app.
23
+ * @type {MdlExchangeMechanism}
24
+ * @memberof GoogleWalletInput
25
+ */
26
+ exchangeMechanism?: MdlExchangeMechanism | null;
27
+ }
28
+ /**
29
+ * Check if a given object implements the GoogleWalletInput interface.
30
+ */
31
+ export declare function instanceOfGoogleWalletInput(value: object): value is GoogleWalletInput;
32
+ export declare function GoogleWalletInputFromJSON(json: any): GoogleWalletInput;
33
+ export declare function GoogleWalletInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleWalletInput;
34
+ export declare function GoogleWalletInputToJSON(json: any): GoogleWalletInput;
35
+ export declare function GoogleWalletInputToJSONTyped(value?: GoogleWalletInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,42 @@
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
+ import { MdlExchangeMechanismFromJSON, MdlExchangeMechanismToJSON, } from './MdlExchangeMechanism';
15
+ /**
16
+ * Check if a given object implements the GoogleWalletInput interface.
17
+ */
18
+ export function instanceOfGoogleWalletInput(value) {
19
+ return true;
20
+ }
21
+ export function GoogleWalletInputFromJSON(json) {
22
+ return GoogleWalletInputFromJSONTyped(json, false);
23
+ }
24
+ export function GoogleWalletInputFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'exchangeMechanism': json['exchangeMechanism'] == null ? undefined : MdlExchangeMechanismFromJSON(json['exchangeMechanism']),
30
+ };
31
+ }
32
+ export function GoogleWalletInputToJSON(json) {
33
+ return GoogleWalletInputToJSONTyped(json, false);
34
+ }
35
+ export function GoogleWalletInputToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'exchangeMechanism': MdlExchangeMechanismToJSON(value['exchangeMechanism']),
41
+ };
42
+ }
@@ -21,6 +21,7 @@ export declare const IntegrationCapability: {
21
21
  readonly CaptureRedirect: "CaptureRedirect";
22
22
  readonly PollResult: "PollResult";
23
23
  readonly PollAfterRedirect: "PollAfterRedirect";
24
+ readonly NativeChallenge: "NativeChallenge";
24
25
  };
25
26
  export type IntegrationCapability = typeof IntegrationCapability[keyof typeof IntegrationCapability];
26
27
  export declare function instanceOfIntegrationCapability(value: any): boolean;
@@ -22,7 +22,8 @@ export const IntegrationCapability = {
22
22
  RefreshStepContent: 'RefreshStepContent',
23
23
  CaptureRedirect: 'CaptureRedirect',
24
24
  PollResult: 'PollResult',
25
- PollAfterRedirect: 'PollAfterRedirect'
25
+ PollAfterRedirect: 'PollAfterRedirect',
26
+ NativeChallenge: 'NativeChallenge'
26
27
  };
27
28
  export function instanceOfIntegrationCapability(value) {
28
29
  for (const key in IntegrationCapability) {
@@ -18,6 +18,7 @@ export declare const IntegrationLaunchMethod: {
18
18
  readonly None: "None";
19
19
  readonly DeeplinkToMobile: "DeeplinkToMobile";
20
20
  readonly ShowContent: "ShowContent";
21
+ readonly PerformNativeChallenge: "PerformNativeChallenge";
21
22
  };
22
23
  export type IntegrationLaunchMethod = typeof IntegrationLaunchMethod[keyof typeof IntegrationLaunchMethod];
23
24
  export declare function instanceOfIntegrationLaunchMethod(value: any): boolean;
@@ -19,7 +19,8 @@ export const IntegrationLaunchMethod = {
19
19
  LaunchBrowser: 'LaunchBrowser',
20
20
  None: 'None',
21
21
  DeeplinkToMobile: 'DeeplinkToMobile',
22
- ShowContent: 'ShowContent'
22
+ ShowContent: 'ShowContent',
23
+ PerformNativeChallenge: 'PerformNativeChallenge'
23
24
  };
24
25
  export function instanceOfIntegrationLaunchMethod(value) {
25
26
  for (const key in IntegrationLaunchMethod) {
@@ -12,7 +12,7 @@
12
12
  import type { StepRefreshInfo } from './StepRefreshInfo';
13
13
  import type { IntegrationLaunchMethod } from './IntegrationLaunchMethod';
14
14
  /**
15
- * A step to perform in the process of executing an Advanced Provider Session
15
+ * A step to perform in the process of executing an Direct Provider Session
16
16
  * @export
17
17
  * @interface IntegrationStep
18
18
  */
@@ -0,0 +1,58 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface MdlCertificateData
16
+ */
17
+ export interface MdlCertificateData {
18
+ /**
19
+ * The serial number of the certificate
20
+ * @type {string}
21
+ * @memberof MdlCertificateData
22
+ */
23
+ serialNumber: string;
24
+ /**
25
+ * The common name (CN) of the certificate
26
+ * @type {string}
27
+ * @memberof MdlCertificateData
28
+ */
29
+ commonName: string;
30
+ /**
31
+ * The state or province name (ST) of the certificate.
32
+ *
33
+ * May be an empty string for certificates which are not state-specific (e.g., Google Wallet's ID Pass certificates).
34
+ * @type {string}
35
+ * @memberof MdlCertificateData
36
+ */
37
+ stateOrProvinceName: string;
38
+ /**
39
+ * The date before which this certificate is not valid.
40
+ * @type {Date}
41
+ * @memberof MdlCertificateData
42
+ */
43
+ notBefore: Date;
44
+ /**
45
+ * The date after which this certificate is not valid.
46
+ * @type {Date}
47
+ * @memberof MdlCertificateData
48
+ */
49
+ notAfter: Date;
50
+ }
51
+ /**
52
+ * Check if a given object implements the MdlCertificateData interface.
53
+ */
54
+ export declare function instanceOfMdlCertificateData(value: object): value is MdlCertificateData;
55
+ export declare function MdlCertificateDataFromJSON(json: any): MdlCertificateData;
56
+ export declare function MdlCertificateDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlCertificateData;
57
+ export declare function MdlCertificateDataToJSON(json: any): MdlCertificateData;
58
+ export declare function MdlCertificateDataToJSONTyped(value?: MdlCertificateData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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
+ /**
15
+ * Check if a given object implements the MdlCertificateData interface.
16
+ */
17
+ export function instanceOfMdlCertificateData(value) {
18
+ if (!('serialNumber' in value) || value['serialNumber'] === undefined)
19
+ return false;
20
+ if (!('commonName' in value) || value['commonName'] === undefined)
21
+ return false;
22
+ if (!('stateOrProvinceName' in value) || value['stateOrProvinceName'] === undefined)
23
+ return false;
24
+ if (!('notBefore' in value) || value['notBefore'] === undefined)
25
+ return false;
26
+ if (!('notAfter' in value) || value['notAfter'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function MdlCertificateDataFromJSON(json) {
31
+ return MdlCertificateDataFromJSONTyped(json, false);
32
+ }
33
+ export function MdlCertificateDataFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'serialNumber': json['serialNumber'],
39
+ 'commonName': json['commonName'],
40
+ 'stateOrProvinceName': json['stateOrProvinceName'],
41
+ 'notBefore': (new Date(json['notBefore'])),
42
+ 'notAfter': (new Date(json['notAfter'])),
43
+ };
44
+ }
45
+ export function MdlCertificateDataToJSON(json) {
46
+ return MdlCertificateDataToJSONTyped(json, false);
47
+ }
48
+ export function MdlCertificateDataToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'serialNumber': value['serialNumber'],
54
+ 'commonName': value['commonName'],
55
+ 'stateOrProvinceName': value['stateOrProvinceName'],
56
+ 'notBefore': ((value['notBefore']).toISOString()),
57
+ 'notAfter': ((value['notAfter']).toISOString()),
58
+ };
59
+ }
@@ -0,0 +1,25 @@
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
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const MdlExchangeMechanism: {
17
+ readonly NativeApp: "NativeApp";
18
+ readonly DigitalCredentialsApi: "DigitalCredentialsApi";
19
+ };
20
+ export type MdlExchangeMechanism = typeof MdlExchangeMechanism[keyof typeof MdlExchangeMechanism];
21
+ export declare function instanceOfMdlExchangeMechanism(value: any): boolean;
22
+ export declare function MdlExchangeMechanismFromJSON(json: any): MdlExchangeMechanism;
23
+ export declare function MdlExchangeMechanismFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlExchangeMechanism;
24
+ export declare function MdlExchangeMechanismToJSON(value?: MdlExchangeMechanism | null): any;
25
+ export declare function MdlExchangeMechanismToJSONTyped(value: any, ignoreDiscriminator: boolean): MdlExchangeMechanism;
@@ -0,0 +1,43 @@
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
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const MdlExchangeMechanism = {
19
+ NativeApp: 'NativeApp',
20
+ DigitalCredentialsApi: 'DigitalCredentialsApi'
21
+ };
22
+ export function instanceOfMdlExchangeMechanism(value) {
23
+ for (const key in MdlExchangeMechanism) {
24
+ if (Object.prototype.hasOwnProperty.call(MdlExchangeMechanism, key)) {
25
+ if (MdlExchangeMechanism[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function MdlExchangeMechanismFromJSON(json) {
33
+ return MdlExchangeMechanismFromJSONTyped(json, false);
34
+ }
35
+ export function MdlExchangeMechanismFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function MdlExchangeMechanismToJSON(value) {
39
+ return value;
40
+ }
41
+ export function MdlExchangeMechanismToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -0,0 +1,28 @@
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
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const MdlFieldDataType: {
17
+ readonly String: "String";
18
+ readonly Boolean: "Boolean";
19
+ readonly Number: "Number";
20
+ readonly Base64Url: "Base64Url";
21
+ readonly EncodedCbor: "EncodedCbor";
22
+ };
23
+ export type MdlFieldDataType = typeof MdlFieldDataType[keyof typeof MdlFieldDataType];
24
+ export declare function instanceOfMdlFieldDataType(value: any): boolean;
25
+ export declare function MdlFieldDataTypeFromJSON(json: any): MdlFieldDataType;
26
+ export declare function MdlFieldDataTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlFieldDataType;
27
+ export declare function MdlFieldDataTypeToJSON(value?: MdlFieldDataType | null): any;
28
+ export declare function MdlFieldDataTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): MdlFieldDataType;
@@ -0,0 +1,46 @@
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
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const MdlFieldDataType = {
19
+ String: 'String',
20
+ Boolean: 'Boolean',
21
+ Number: 'Number',
22
+ Base64Url: 'Base64Url',
23
+ EncodedCbor: 'EncodedCbor'
24
+ };
25
+ export function instanceOfMdlFieldDataType(value) {
26
+ for (const key in MdlFieldDataType) {
27
+ if (Object.prototype.hasOwnProperty.call(MdlFieldDataType, key)) {
28
+ if (MdlFieldDataType[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ export function MdlFieldDataTypeFromJSON(json) {
36
+ return MdlFieldDataTypeFromJSONTyped(json, false);
37
+ }
38
+ export function MdlFieldDataTypeFromJSONTyped(json, ignoreDiscriminator) {
39
+ return json;
40
+ }
41
+ export function MdlFieldDataTypeToJSON(value) {
42
+ return value;
43
+ }
44
+ export function MdlFieldDataTypeToJSONTyped(value, ignoreDiscriminator) {
45
+ return value;
46
+ }
@@ -0,0 +1,50 @@
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 type { MdlCertificateData } from './MdlCertificateData';
13
+ import type { ExternalMdlFieldData } from './ExternalMdlFieldData';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MdlIdentityData
18
+ */
19
+ export interface MdlIdentityData {
20
+ /**
21
+ * Information about the IACA Root Certificate which signed the Issuer Certificate for this mDL.
22
+ * @type {MdlCertificateData}
23
+ * @memberof MdlIdentityData
24
+ */
25
+ iacaRootCertificate: MdlCertificateData;
26
+ /**
27
+ * Information about the Document Signer Certificate which signed the mDL presented by the user.
28
+ * @type {MdlCertificateData}
29
+ * @memberof MdlIdentityData
30
+ */
31
+ documentSignerCertificate: MdlCertificateData;
32
+ /**
33
+ * The namespaces, and fields within those namespaces, which were present in the processed mDL.
34
+ * @type {{ [key: string]: { [key: string]: ExternalMdlFieldData; }; }}
35
+ * @memberof MdlIdentityData
36
+ */
37
+ nameSpaces: {
38
+ [key: string]: {
39
+ [key: string]: ExternalMdlFieldData;
40
+ };
41
+ };
42
+ }
43
+ /**
44
+ * Check if a given object implements the MdlIdentityData interface.
45
+ */
46
+ export declare function instanceOfMdlIdentityData(value: object): value is MdlIdentityData;
47
+ export declare function MdlIdentityDataFromJSON(json: any): MdlIdentityData;
48
+ export declare function MdlIdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlIdentityData;
49
+ export declare function MdlIdentityDataToJSON(json: any): MdlIdentityData;
50
+ export declare function MdlIdentityDataToJSONTyped(value?: MdlIdentityData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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
+ import { MdlCertificateDataFromJSON, MdlCertificateDataToJSON, } from './MdlCertificateData';
15
+ /**
16
+ * Check if a given object implements the MdlIdentityData interface.
17
+ */
18
+ export function instanceOfMdlIdentityData(value) {
19
+ if (!('iacaRootCertificate' in value) || value['iacaRootCertificate'] === undefined)
20
+ return false;
21
+ if (!('documentSignerCertificate' in value) || value['documentSignerCertificate'] === undefined)
22
+ return false;
23
+ if (!('nameSpaces' in value) || value['nameSpaces'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function MdlIdentityDataFromJSON(json) {
28
+ return MdlIdentityDataFromJSONTyped(json, false);
29
+ }
30
+ export function MdlIdentityDataFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'iacaRootCertificate': MdlCertificateDataFromJSON(json['iacaRootCertificate']),
36
+ 'documentSignerCertificate': MdlCertificateDataFromJSON(json['documentSignerCertificate']),
37
+ 'nameSpaces': json['nameSpaces'],
38
+ };
39
+ }
40
+ export function MdlIdentityDataToJSON(json) {
41
+ return MdlIdentityDataToJSONTyped(json, false);
42
+ }
43
+ export function MdlIdentityDataToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'iacaRootCertificate': MdlCertificateDataToJSON(value['iacaRootCertificate']),
49
+ 'documentSignerCertificate': MdlCertificateDataToJSON(value['documentSignerCertificate']),
50
+ 'nameSpaces': value['nameSpaces'],
51
+ };
52
+ }
@@ -78,17 +78,17 @@ export interface ProviderContract {
78
78
  */
79
79
  regions: Array<string>;
80
80
  /**
81
- * Relevant only to Advanced Provider Sessions.
81
+ * Relevant only to Direct Provider Sessions.
82
82
  *
83
- * The `LaunchMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
83
+ * The `LaunchMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
84
84
  * @type {IntegrationLaunchMethod}
85
85
  * @memberof ProviderContract
86
86
  */
87
87
  launchMethod: IntegrationLaunchMethod;
88
88
  /**
89
- * Relevant only to Advanced Provider Sessions.
89
+ * Relevant only to Direct Provider Sessions.
90
90
  *
91
- * The `CollectionMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
91
+ * The `CollectionMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
92
92
  * @type {ResultCollectionMethod}
93
93
  * @memberof ProviderContract
94
94
  */
@@ -104,7 +104,7 @@ export interface ProviderContract {
104
104
  */
105
105
  resultsMayBeDelayedAfterRedirect: boolean;
106
106
  /**
107
- * Relevant only to Advanced Provider Sessions.
107
+ * Relevant only to Direct Provider Sessions.
108
108
  *
109
109
  * Whether the Provider requires the `RefreshStepContent` capability.
110
110
  *
@@ -115,7 +115,7 @@ export interface ProviderContract {
115
115
  */
116
116
  hasRefreshableContent: boolean;
117
117
  /**
118
- * Relevant to Hosted Provider Sessions and Advanced Provider Sessions.
118
+ * Relevant to Hosted Provider Sessions and Direct Provider Sessions.
119
119
  *
120
120
  * If `true`, this Provider requires provider-specific input on Session creation.
121
121
  * If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
@@ -132,14 +132,24 @@ export interface ProviderContract {
132
132
  */
133
133
  hasTrinsicInterface: boolean;
134
134
  /**
135
- * Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API.
135
+ * Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API.
136
136
  *
137
- * If `false`, the Provider may still be launched through Advanced Provider Sessions;
137
+ * If `false`, the Provider may still be launched through Direct Provider Sessions;
138
138
  * however, it will necessarily require a Trinsic-hosted UI to function.
139
139
  * @type {boolean}
140
140
  * @memberof ProviderContract
141
+ * @deprecated
141
142
  */
142
143
  supportsAdvancedProviderSessions: boolean;
144
+ /**
145
+ * Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API.
146
+ *
147
+ * If `false`, the Provider may still be launched through Direct Provider Sessions;
148
+ * however, it will necessarily require a Trinsic-hosted UI to function.
149
+ * @type {boolean}
150
+ * @memberof ProviderContract
151
+ */
152
+ supportsDirectProviderSessions: boolean;
143
153
  /**
144
154
  * Information about the fields that this Provider will return in verification results.
145
155
  * @type {Array<ContractField>}
@@ -50,6 +50,8 @@ export function instanceOfProviderContract(value) {
50
50
  return false;
51
51
  if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
52
52
  return false;
53
+ if (!('supportsDirectProviderSessions' in value) || value['supportsDirectProviderSessions'] === undefined)
54
+ return false;
53
55
  if (!('health' in value) || value['health'] === undefined)
54
56
  return false;
55
57
  return true;
@@ -77,6 +79,7 @@ export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
77
79
  'requiresInput': json['requiresInput'],
78
80
  'hasTrinsicInterface': json['hasTrinsicInterface'],
79
81
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
82
+ 'supportsDirectProviderSessions': json['supportsDirectProviderSessions'],
80
83
  'availableFields': json['availableFields'] == null ? undefined : (json['availableFields'].map(ContractFieldFromJSON)),
81
84
  'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
82
85
  'health': ProviderHealthFromJSON(json['health']),
@@ -105,6 +108,7 @@ export function ProviderContractToJSONTyped(value, ignoreDiscriminator = false)
105
108
  'requiresInput': value['requiresInput'],
106
109
  'hasTrinsicInterface': value['hasTrinsicInterface'],
107
110
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
111
+ 'supportsDirectProviderSessions': value['supportsDirectProviderSessions'],
108
112
  'availableFields': value['availableFields'] == null ? undefined : (value['availableFields'].map(ContractFieldToJSON)),
109
113
  'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
110
114
  'health': ProviderHealthToJSON(value['health']),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AppleWalletInput } from './AppleWalletInput';
12
13
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
13
14
  import type { MexicoCurpInput } from './MexicoCurpInput';
14
15
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
@@ -24,6 +25,7 @@ import type { NigeriaNinInput } from './NigeriaNinInput';
24
25
  import type { SmartIdInput } from './SmartIdInput';
25
26
  import type { IndonesiaDukcapilMatchInput } from './IndonesiaDukcapilMatchInput';
26
27
  import type { MobileIdInput } from './MobileIdInput';
28
+ import type { GoogleWalletInput } from './GoogleWalletInput';
27
29
  import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
28
30
  import type { IndonesiaNikInput } from './IndonesiaNikInput';
29
31
  import type { IdinInput } from './IdinInput';
@@ -129,6 +131,18 @@ export interface ProviderInput {
129
131
  * @memberof ProviderInput
130
132
  */
131
133
  spid?: SpidInput | null;
134
+ /**
135
+ * Input for the `google-wallet` provider
136
+ * @type {GoogleWalletInput}
137
+ * @memberof ProviderInput
138
+ */
139
+ googleWallet?: GoogleWalletInput | null;
140
+ /**
141
+ * Input for the `apple-wallet` provider
142
+ * @type {AppleWalletInput}
143
+ * @memberof ProviderInput
144
+ */
145
+ appleWallet?: AppleWalletInput | null;
132
146
  /**
133
147
  * *TEST MODE ONLY.*
134
148
  *