@trinsic/api 2.2.0 → 2.3.0-alpha2

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 (166) hide show
  1. package/.openapi-generator/FILES +23 -0
  2. package/dist/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
  3. package/dist/apis/EnvironmentRedirectUrisApi.js +145 -0
  4. package/dist/apis/VerificationProfilesApi.d.ts +117 -0
  5. package/dist/apis/VerificationProfilesApi.js +183 -0
  6. package/dist/apis/index.d.ts +2 -0
  7. package/dist/apis/index.js +2 -0
  8. package/dist/esm/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
  9. package/dist/esm/apis/EnvironmentRedirectUrisApi.js +141 -0
  10. package/dist/esm/apis/VerificationProfilesApi.d.ts +117 -0
  11. package/dist/esm/apis/VerificationProfilesApi.js +179 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +2 -0
  14. package/dist/esm/models/AddRedirectUriResponse.d.ts +32 -0
  15. package/dist/esm/models/AddRedirectUriResponse.js +43 -0
  16. package/dist/esm/models/AttachmentAccessKeys.d.ts +6 -0
  17. package/dist/esm/models/AttachmentAccessKeys.js +2 -0
  18. package/dist/esm/models/ContractField.d.ts +7 -0
  19. package/dist/esm/models/ContractField.js +4 -0
  20. package/dist/esm/models/ContractIdentifierField.d.ts +45 -0
  21. package/dist/esm/models/ContractIdentifierField.js +52 -0
  22. package/dist/esm/models/CreateVerificationProfileResponse.d.ts +32 -0
  23. package/dist/esm/models/CreateVerificationProfileResponse.js +43 -0
  24. package/dist/esm/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
  25. package/dist/esm/models/EnvironmentRedirectUrisAddRequest.js +43 -0
  26. package/dist/esm/models/FaydaProviderOutput.d.ts +35 -0
  27. package/dist/esm/models/FaydaProviderOutput.js +41 -0
  28. package/dist/esm/models/Identifier.d.ts +44 -0
  29. package/dist/esm/models/Identifier.js +51 -0
  30. package/dist/esm/models/IdentityData.d.ts +14 -0
  31. package/dist/esm/models/IdentityData.js +8 -0
  32. package/dist/esm/models/KenyaNidBiometric2Input.d.ts +47 -0
  33. package/dist/esm/models/KenyaNidBiometric2Input.js +45 -0
  34. package/dist/esm/models/KenyaNidInput.d.ts +1 -1
  35. package/dist/esm/models/KenyaNidLookup2Input.d.ts +32 -0
  36. package/dist/esm/models/KenyaNidLookup2Input.js +41 -0
  37. package/dist/esm/models/KenyaNidMatch2Input.d.ts +63 -0
  38. package/dist/esm/models/KenyaNidMatch2Input.js +52 -0
  39. package/dist/esm/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
  40. package/dist/esm/models/ListEnvironmentRedirectUrisResponse.js +48 -0
  41. package/dist/esm/models/ListVerificationProfilesResponse.d.ts +39 -0
  42. package/dist/esm/models/ListVerificationProfilesResponse.js +48 -0
  43. package/dist/esm/models/MexicoCurpProviderOutput.d.ts +44 -0
  44. package/dist/esm/models/MexicoCurpProviderOutput.js +41 -0
  45. package/dist/esm/models/NigeriaNinInput.d.ts +1 -1
  46. package/dist/esm/models/PhilippinesDigitalNidProviderOutput.d.ts +32 -0
  47. package/dist/esm/models/PhilippinesDigitalNidProviderOutput.js +43 -0
  48. package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.d.ts +32 -0
  49. package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.js +43 -0
  50. package/dist/esm/models/ProviderContract.d.ts +7 -0
  51. package/dist/esm/models/ProviderContract.js +3 -0
  52. package/dist/esm/models/ProviderInput.d.ts +28 -0
  53. package/dist/esm/models/ProviderInput.js +12 -0
  54. package/dist/esm/models/ProviderOutput.d.ts +61 -0
  55. package/dist/esm/models/ProviderOutput.js +54 -0
  56. package/dist/esm/models/RedirectUriResponse.d.ts +38 -0
  57. package/dist/esm/models/RedirectUriResponse.js +47 -0
  58. package/dist/esm/models/SexV1.d.ts +27 -0
  59. package/dist/esm/models/SexV1.js +45 -0
  60. package/dist/esm/models/SouthAfricaNidInput.d.ts +1 -1
  61. package/dist/esm/models/SouthAfricaNidLookup2Input.d.ts +32 -0
  62. package/dist/esm/models/SouthAfricaNidLookup2Input.js +41 -0
  63. package/dist/esm/models/SpidBillingInformation.d.ts +48 -0
  64. package/dist/esm/models/SpidBillingInformation.js +51 -0
  65. package/dist/esm/models/SpidInput.d.ts +11 -0
  66. package/dist/esm/models/SpidInput.js +2 -0
  67. package/dist/esm/models/SpidProviderOutput.d.ts +124 -0
  68. package/dist/esm/models/SpidProviderOutput.js +72 -0
  69. package/dist/esm/models/VerificationProfileResponse.d.ts +62 -0
  70. package/dist/esm/models/VerificationProfileResponse.js +63 -0
  71. package/dist/esm/models/index.d.ts +21 -0
  72. package/dist/esm/models/index.js +21 -0
  73. package/dist/models/AddRedirectUriResponse.d.ts +32 -0
  74. package/dist/models/AddRedirectUriResponse.js +50 -0
  75. package/dist/models/AttachmentAccessKeys.d.ts +6 -0
  76. package/dist/models/AttachmentAccessKeys.js +2 -0
  77. package/dist/models/ContractField.d.ts +7 -0
  78. package/dist/models/ContractField.js +4 -0
  79. package/dist/models/ContractIdentifierField.d.ts +45 -0
  80. package/dist/models/ContractIdentifierField.js +59 -0
  81. package/dist/models/CreateVerificationProfileResponse.d.ts +32 -0
  82. package/dist/models/CreateVerificationProfileResponse.js +50 -0
  83. package/dist/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
  84. package/dist/models/EnvironmentRedirectUrisAddRequest.js +50 -0
  85. package/dist/models/FaydaProviderOutput.d.ts +35 -0
  86. package/dist/models/FaydaProviderOutput.js +48 -0
  87. package/dist/models/Identifier.d.ts +44 -0
  88. package/dist/models/Identifier.js +58 -0
  89. package/dist/models/IdentityData.d.ts +14 -0
  90. package/dist/models/IdentityData.js +8 -0
  91. package/dist/models/KenyaNidBiometric2Input.d.ts +47 -0
  92. package/dist/models/KenyaNidBiometric2Input.js +52 -0
  93. package/dist/models/KenyaNidInput.d.ts +1 -1
  94. package/dist/models/KenyaNidLookup2Input.d.ts +32 -0
  95. package/dist/models/KenyaNidLookup2Input.js +48 -0
  96. package/dist/models/KenyaNidMatch2Input.d.ts +63 -0
  97. package/dist/models/KenyaNidMatch2Input.js +59 -0
  98. package/dist/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
  99. package/dist/models/ListEnvironmentRedirectUrisResponse.js +55 -0
  100. package/dist/models/ListVerificationProfilesResponse.d.ts +39 -0
  101. package/dist/models/ListVerificationProfilesResponse.js +55 -0
  102. package/dist/models/MexicoCurpProviderOutput.d.ts +44 -0
  103. package/dist/models/MexicoCurpProviderOutput.js +48 -0
  104. package/dist/models/NigeriaNinInput.d.ts +1 -1
  105. package/dist/models/PhilippinesDigitalNidProviderOutput.d.ts +32 -0
  106. package/dist/models/PhilippinesDigitalNidProviderOutput.js +50 -0
  107. package/dist/models/PhilippinesPhysicalNidProviderOutput.d.ts +32 -0
  108. package/dist/models/PhilippinesPhysicalNidProviderOutput.js +50 -0
  109. package/dist/models/ProviderContract.d.ts +7 -0
  110. package/dist/models/ProviderContract.js +3 -0
  111. package/dist/models/ProviderInput.d.ts +28 -0
  112. package/dist/models/ProviderInput.js +12 -0
  113. package/dist/models/ProviderOutput.d.ts +61 -0
  114. package/dist/models/ProviderOutput.js +61 -0
  115. package/dist/models/RedirectUriResponse.d.ts +38 -0
  116. package/dist/models/RedirectUriResponse.js +54 -0
  117. package/dist/models/SexV1.d.ts +27 -0
  118. package/dist/models/SexV1.js +53 -0
  119. package/dist/models/SouthAfricaNidInput.d.ts +1 -1
  120. package/dist/models/SouthAfricaNidLookup2Input.d.ts +32 -0
  121. package/dist/models/SouthAfricaNidLookup2Input.js +48 -0
  122. package/dist/models/SpidBillingInformation.d.ts +48 -0
  123. package/dist/models/SpidBillingInformation.js +58 -0
  124. package/dist/models/SpidInput.d.ts +11 -0
  125. package/dist/models/SpidInput.js +2 -0
  126. package/dist/models/SpidProviderOutput.d.ts +124 -0
  127. package/dist/models/SpidProviderOutput.js +79 -0
  128. package/dist/models/VerificationProfileResponse.d.ts +62 -0
  129. package/dist/models/VerificationProfileResponse.js +70 -0
  130. package/dist/models/index.d.ts +21 -0
  131. package/dist/models/index.js +21 -0
  132. package/package.json +1 -1
  133. package/src/apis/EnvironmentRedirectUrisApi.ts +235 -0
  134. package/src/apis/VerificationProfilesApi.ts +294 -0
  135. package/src/apis/index.ts +2 -0
  136. package/src/models/AddRedirectUriResponse.ts +66 -0
  137. package/src/models/AttachmentAccessKeys.ts +8 -0
  138. package/src/models/ContractField.ts +10 -0
  139. package/src/models/ContractIdentifierField.ts +94 -0
  140. package/src/models/CreateVerificationProfileResponse.ts +66 -0
  141. package/src/models/EnvironmentRedirectUrisAddRequest.ts +66 -0
  142. package/src/models/FaydaProviderOutput.ts +68 -0
  143. package/src/models/Identifier.ts +84 -0
  144. package/src/models/IdentityData.ts +31 -0
  145. package/src/models/KenyaNidBiometric2Input.ts +84 -0
  146. package/src/models/KenyaNidInput.ts +1 -1
  147. package/src/models/KenyaNidLookup2Input.ts +65 -0
  148. package/src/models/KenyaNidMatch2Input.ts +115 -0
  149. package/src/models/ListEnvironmentRedirectUrisResponse.ts +83 -0
  150. package/src/models/ListVerificationProfilesResponse.ts +83 -0
  151. package/src/models/MexicoCurpProviderOutput.ts +77 -0
  152. package/src/models/NigeriaNinInput.ts +1 -1
  153. package/src/models/PhilippinesDigitalNidProviderOutput.ts +66 -0
  154. package/src/models/PhilippinesPhysicalNidProviderOutput.ts +66 -0
  155. package/src/models/ProviderContract.ts +15 -0
  156. package/src/models/ProviderInput.ts +60 -0
  157. package/src/models/ProviderOutput.ts +133 -0
  158. package/src/models/RedirectUriResponse.ts +75 -0
  159. package/src/models/SexV1.ts +55 -0
  160. package/src/models/SouthAfricaNidInput.ts +1 -1
  161. package/src/models/SouthAfricaNidLookup2Input.ts +65 -0
  162. package/src/models/SpidBillingInformation.ts +88 -0
  163. package/src/models/SpidInput.ts +13 -0
  164. package/src/models/SpidProviderOutput.ts +192 -0
  165. package/src/models/VerificationProfileResponse.ts +111 -0
  166. package/src/models/index.ts +21 -0
@@ -0,0 +1,133 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { FaydaProviderOutput } from './FaydaProviderOutput';
17
+ import {
18
+ FaydaProviderOutputFromJSON,
19
+ FaydaProviderOutputFromJSONTyped,
20
+ FaydaProviderOutputToJSON,
21
+ FaydaProviderOutputToJSONTyped,
22
+ } from './FaydaProviderOutput';
23
+ import type { MexicoCurpProviderOutput } from './MexicoCurpProviderOutput';
24
+ import {
25
+ MexicoCurpProviderOutputFromJSON,
26
+ MexicoCurpProviderOutputFromJSONTyped,
27
+ MexicoCurpProviderOutputToJSON,
28
+ MexicoCurpProviderOutputToJSONTyped,
29
+ } from './MexicoCurpProviderOutput';
30
+ import type { PhilippinesPhysicalNidProviderOutput } from './PhilippinesPhysicalNidProviderOutput';
31
+ import {
32
+ PhilippinesPhysicalNidProviderOutputFromJSON,
33
+ PhilippinesPhysicalNidProviderOutputFromJSONTyped,
34
+ PhilippinesPhysicalNidProviderOutputToJSON,
35
+ PhilippinesPhysicalNidProviderOutputToJSONTyped,
36
+ } from './PhilippinesPhysicalNidProviderOutput';
37
+ import type { PhilippinesDigitalNidProviderOutput } from './PhilippinesDigitalNidProviderOutput';
38
+ import {
39
+ PhilippinesDigitalNidProviderOutputFromJSON,
40
+ PhilippinesDigitalNidProviderOutputFromJSONTyped,
41
+ PhilippinesDigitalNidProviderOutputToJSON,
42
+ PhilippinesDigitalNidProviderOutputToJSONTyped,
43
+ } from './PhilippinesDigitalNidProviderOutput';
44
+ import type { SpidProviderOutput } from './SpidProviderOutput';
45
+ import {
46
+ SpidProviderOutputFromJSON,
47
+ SpidProviderOutputFromJSONTyped,
48
+ SpidProviderOutputToJSON,
49
+ SpidProviderOutputToJSONTyped,
50
+ } from './SpidProviderOutput';
51
+
52
+ /**
53
+ *
54
+ * @export
55
+ * @interface ProviderOutput
56
+ */
57
+ export interface ProviderOutput {
58
+ /**
59
+ *
60
+ * @type {SpidProviderOutput}
61
+ * @memberof ProviderOutput
62
+ */
63
+ italySpid?: SpidProviderOutput | null;
64
+ /**
65
+ *
66
+ * @type {MexicoCurpProviderOutput}
67
+ * @memberof ProviderOutput
68
+ */
69
+ mexicoCurpLookup?: MexicoCurpProviderOutput | null;
70
+ /**
71
+ *
72
+ * @type {FaydaProviderOutput}
73
+ * @memberof ProviderOutput
74
+ */
75
+ ethiopiaFayda?: FaydaProviderOutput | null;
76
+ /**
77
+ *
78
+ * @type {PhilippinesPhysicalNidProviderOutput}
79
+ * @memberof ProviderOutput
80
+ */
81
+ philippinesPhysicalNationalIdQr?: PhilippinesPhysicalNidProviderOutput | null;
82
+ /**
83
+ *
84
+ * @type {PhilippinesDigitalNidProviderOutput}
85
+ * @memberof ProviderOutput
86
+ */
87
+ philippinesDigitalNationalIdQr?: PhilippinesDigitalNidProviderOutput | null;
88
+ }
89
+
90
+ /**
91
+ * Check if a given object implements the ProviderOutput interface.
92
+ */
93
+ export function instanceOfProviderOutput(value: object): value is ProviderOutput {
94
+ return true;
95
+ }
96
+
97
+ export function ProviderOutputFromJSON(json: any): ProviderOutput {
98
+ return ProviderOutputFromJSONTyped(json, false);
99
+ }
100
+
101
+ export function ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderOutput {
102
+ if (json == null) {
103
+ return json;
104
+ }
105
+ return {
106
+
107
+ 'italySpid': json['italy-spid'] == null ? undefined : SpidProviderOutputFromJSON(json['italy-spid']),
108
+ 'mexicoCurpLookup': json['mexico-curp-lookup'] == null ? undefined : MexicoCurpProviderOutputFromJSON(json['mexico-curp-lookup']),
109
+ 'ethiopiaFayda': json['ethiopia-fayda'] == null ? undefined : FaydaProviderOutputFromJSON(json['ethiopia-fayda']),
110
+ 'philippinesPhysicalNationalIdQr': json['philippines-physical-national-id-qr'] == null ? undefined : PhilippinesPhysicalNidProviderOutputFromJSON(json['philippines-physical-national-id-qr']),
111
+ 'philippinesDigitalNationalIdQr': json['philippines-digital-national-id-qr'] == null ? undefined : PhilippinesDigitalNidProviderOutputFromJSON(json['philippines-digital-national-id-qr']),
112
+ };
113
+ }
114
+
115
+ export function ProviderOutputToJSON(json: any): ProviderOutput {
116
+ return ProviderOutputToJSONTyped(json, false);
117
+ }
118
+
119
+ export function ProviderOutputToJSONTyped(value?: ProviderOutput | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'italy-spid': SpidProviderOutputToJSON(value['italySpid']),
127
+ 'mexico-curp-lookup': MexicoCurpProviderOutputToJSON(value['mexicoCurpLookup']),
128
+ 'ethiopia-fayda': FaydaProviderOutputToJSON(value['ethiopiaFayda']),
129
+ 'philippines-physical-national-id-qr': PhilippinesPhysicalNidProviderOutputToJSON(value['philippinesPhysicalNationalIdQr']),
130
+ 'philippines-digital-national-id-qr': PhilippinesDigitalNidProviderOutputToJSON(value['philippinesDigitalNationalIdQr']),
131
+ };
132
+ }
133
+
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RedirectUriResponse
20
+ */
21
+ export interface RedirectUriResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RedirectUriResponse
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RedirectUriResponse
32
+ */
33
+ uri: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RedirectUriResponse interface.
38
+ */
39
+ export function instanceOfRedirectUriResponse(value: object): value is RedirectUriResponse {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('uri' in value) || value['uri'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function RedirectUriResponseFromJSON(json: any): RedirectUriResponse {
46
+ return RedirectUriResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function RedirectUriResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectUriResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'uri': json['uri'],
57
+ };
58
+ }
59
+
60
+ export function RedirectUriResponseToJSON(json: any): RedirectUriResponse {
61
+ return RedirectUriResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function RedirectUriResponseToJSONTyped(value?: RedirectUriResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'uri': value['uri'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,55 @@
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
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const SexV1 = {
21
+ Unknown: 'Unknown',
22
+ NotApplicable: 'NotApplicable',
23
+ Male: 'Male',
24
+ Female: 'Female'
25
+ } as const;
26
+ export type SexV1 = typeof SexV1[keyof typeof SexV1];
27
+
28
+
29
+ export function instanceOfSexV1(value: any): boolean {
30
+ for (const key in SexV1) {
31
+ if (Object.prototype.hasOwnProperty.call(SexV1, key)) {
32
+ if (SexV1[key as keyof typeof SexV1] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function SexV1FromJSON(json: any): SexV1 {
41
+ return SexV1FromJSONTyped(json, false);
42
+ }
43
+
44
+ export function SexV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): SexV1 {
45
+ return json as SexV1;
46
+ }
47
+
48
+ export function SexV1ToJSON(value?: SexV1 | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function SexV1ToJSONTyped(value: any, ignoreDiscriminator: boolean): SexV1 {
53
+ return value as SexV1;
54
+ }
55
+
@@ -38,7 +38,7 @@ export interface SouthAfricaNidInput {
38
38
  */
39
39
  gender: string;
40
40
  /**
41
- * The user's South African National ID number
41
+ * The user's National ID number
42
42
  * @type {string}
43
43
  * @memberof SouthAfricaNidInput
44
44
  */
@@ -0,0 +1,65 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SouthAfricaNidLookup2Input
20
+ */
21
+ export interface SouthAfricaNidLookup2Input {
22
+ /**
23
+ * The user's National ID number
24
+ * @type {string}
25
+ * @memberof SouthAfricaNidLookup2Input
26
+ */
27
+ idNumber?: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SouthAfricaNidLookup2Input interface.
32
+ */
33
+ export function instanceOfSouthAfricaNidLookup2Input(value: object): value is SouthAfricaNidLookup2Input {
34
+ return true;
35
+ }
36
+
37
+ export function SouthAfricaNidLookup2InputFromJSON(json: any): SouthAfricaNidLookup2Input {
38
+ return SouthAfricaNidLookup2InputFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function SouthAfricaNidLookup2InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SouthAfricaNidLookup2Input {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'idNumber': json['idNumber'] == null ? undefined : json['idNumber'],
48
+ };
49
+ }
50
+
51
+ export function SouthAfricaNidLookup2InputToJSON(json: any): SouthAfricaNidLookup2Input {
52
+ return SouthAfricaNidLookup2InputToJSONTyped(json, false);
53
+ }
54
+
55
+ export function SouthAfricaNidLookup2InputToJSONTyped(value?: SouthAfricaNidLookup2Input | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'idNumber': value['idNumber'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,88 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Billing information for a SPID Verification.
18
+ * @export
19
+ * @interface SpidBillingInformation
20
+ */
21
+ export interface SpidBillingInformation {
22
+ /**
23
+ * Whether this SPID verification has resulted in a billable event.
24
+ * @type {boolean}
25
+ * @memberof SpidBillingInformation
26
+ */
27
+ isBillable: boolean;
28
+ /**
29
+ * The billable verification type for this SPID verification.
30
+ *
31
+ * Possible values: "Authentication" | "Registration"
32
+ * @type {string}
33
+ * @memberof SpidBillingInformation
34
+ */
35
+ verificationType: string;
36
+ /**
37
+ * The billable verification level for this SPID verification.
38
+ *
39
+ * Possible values: 1 | 2 | 3
40
+ * @type {number}
41
+ * @memberof SpidBillingInformation
42
+ */
43
+ verificationLevel: number;
44
+ }
45
+
46
+ /**
47
+ * Check if a given object implements the SpidBillingInformation interface.
48
+ */
49
+ export function instanceOfSpidBillingInformation(value: object): value is SpidBillingInformation {
50
+ if (!('isBillable' in value) || value['isBillable'] === undefined) return false;
51
+ if (!('verificationType' in value) || value['verificationType'] === undefined) return false;
52
+ if (!('verificationLevel' in value) || value['verificationLevel'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function SpidBillingInformationFromJSON(json: any): SpidBillingInformation {
57
+ return SpidBillingInformationFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function SpidBillingInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidBillingInformation {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'isBillable': json['isBillable'],
67
+ 'verificationType': json['verificationType'],
68
+ 'verificationLevel': json['verificationLevel'],
69
+ };
70
+ }
71
+
72
+ export function SpidBillingInformationToJSON(json: any): SpidBillingInformation {
73
+ return SpidBillingInformationToJSONTyped(json, false);
74
+ }
75
+
76
+ export function SpidBillingInformationToJSONTyped(value?: SpidBillingInformation | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'isBillable': value['isBillable'],
84
+ 'verificationType': value['verificationType'],
85
+ 'verificationLevel': value['verificationLevel'],
86
+ };
87
+ }
88
+
@@ -27,6 +27,17 @@ export interface SpidInput {
27
27
  * @memberof SpidInput
28
28
  */
29
29
  subProviderId?: string | null;
30
+ /**
31
+ * Only applicable if period-based billing is enabled for your Verification Profile. Contact Trinsic to enable this.
32
+ *
33
+ * A secret UTF-8 string between 32 and 64 characters in length, used to enable privacy-preserving tracking of unique user verifications during a billing period.
34
+ *
35
+ * WARNING: This value must NOT change during the course of a billing period for a given Verification Profile, or double-billing may occur.
36
+ * If multiple Verification Profiles are configured to use the same Trinsic-managed SPID Service Provider, the same Billing Tracking Secret must be provided across all such Verification Profiles.
37
+ * @type {string}
38
+ * @memberof SpidInput
39
+ */
40
+ billingTrackingSecret?: string | null;
30
41
  }
31
42
 
32
43
  /**
@@ -47,6 +58,7 @@ export function SpidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean):
47
58
  return {
48
59
 
49
60
  'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
61
+ 'billingTrackingSecret': json['billingTrackingSecret'] == null ? undefined : json['billingTrackingSecret'],
50
62
  };
51
63
  }
52
64
 
@@ -62,6 +74,7 @@ export function SpidInputToJSONTyped(value?: SpidInput | null, ignoreDiscriminat
62
74
  return {
63
75
 
64
76
  'subProviderId': value['subProviderId'],
77
+ 'billingTrackingSecret': value['billingTrackingSecret'],
65
78
  };
66
79
  }
67
80
 
@@ -0,0 +1,192 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { SpidBillingInformation } from './SpidBillingInformation';
17
+ import {
18
+ SpidBillingInformationFromJSON,
19
+ SpidBillingInformationFromJSONTyped,
20
+ SpidBillingInformationToJSON,
21
+ SpidBillingInformationToJSONTyped,
22
+ } from './SpidBillingInformation';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SpidProviderOutput
28
+ */
29
+ export interface SpidProviderOutput {
30
+ /**
31
+ * Information about the billable status of this SPID Verification.
32
+ *
33
+ * Present only if your account has period-based billing enabled for SPID. Contact Trinsic to enable this.
34
+ * @type {SpidBillingInformation}
35
+ * @memberof SpidProviderOutput
36
+ */
37
+ billingInformation?: SpidBillingInformation | null;
38
+ /**
39
+ * The SPID Entity ID of the Identity Provider which issued the SPID identity.
40
+ *
41
+ * This is an HTTPS URI which uniquely identifies the IdP within the SPID federation.
42
+ *
43
+ * A normalized / simplified representation of this value is present in the `originatingSubProviderId` field in Trinsic's normalized data model.
44
+ * @type {string}
45
+ * @memberof SpidProviderOutput
46
+ */
47
+ identityProviderEntityId: string;
48
+ /**
49
+ * The identifier of the user's SPID credential.
50
+ *
51
+ * This uniquely identifies the credential within the SPID federation.
52
+ * @type {string}
53
+ * @memberof SpidProviderOutput
54
+ */
55
+ spidCode: string;
56
+ /**
57
+ * Expiration date of the user's SPID credential.
58
+ *
59
+ * This is not the same as the expiration date of the underlying identity document (such as a passport) which was
60
+ * used to create the SPID identity.
61
+ * @type {Date}
62
+ * @memberof SpidProviderOutput
63
+ */
64
+ spidCredentialExpirationDate?: Date | null;
65
+ /**
66
+ * The user's place of birth.
67
+ * @type {string}
68
+ * @memberof SpidProviderOutput
69
+ */
70
+ placeOfBirth?: string | null;
71
+ /**
72
+ * The user's county of birth.
73
+ * @type {string}
74
+ * @memberof SpidProviderOutput
75
+ */
76
+ countyOfBirth?: string | null;
77
+ /**
78
+ * The raw, space-separated string value for the "IdCard" field from the SPID identity.
79
+ *
80
+ * Trinsic additionally parses this field and uses it to populate the `Document` object in the normalized data model.
81
+ * @type {string}
82
+ * @memberof SpidProviderOutput
83
+ */
84
+ rawIdCard?: string | null;
85
+ /**
86
+ * The email address of the user.
87
+ * @type {string}
88
+ * @memberof SpidProviderOutput
89
+ */
90
+ email?: string | null;
91
+ /**
92
+ * The digital address of the user.
93
+ * @type {string}
94
+ * @memberof SpidProviderOutput
95
+ */
96
+ digitalAddress?: string | null;
97
+ /**
98
+ * Fiscal tax number for the subject.
99
+ * @type {string}
100
+ * @memberof SpidProviderOutput
101
+ */
102
+ fiscalNumber?: string | null;
103
+ /**
104
+ * VAT number for the subject.
105
+ * @type {string}
106
+ * @memberof SpidProviderOutput
107
+ */
108
+ ivaCode?: string | null;
109
+ /**
110
+ * The name of the company which the user is associated with.
111
+ * @type {string}
112
+ * @memberof SpidProviderOutput
113
+ */
114
+ companyName?: string | null;
115
+ /**
116
+ * The fiscal tax number of the company which the user is associated with.
117
+ * @type {string}
118
+ * @memberof SpidProviderOutput
119
+ */
120
+ companyFiscalNumber?: string | null;
121
+ /**
122
+ * The registered office address of the company which the user is associated with.
123
+ * @type {string}
124
+ * @memberof SpidProviderOutput
125
+ */
126
+ registeredOffice?: string | null;
127
+ }
128
+
129
+ /**
130
+ * Check if a given object implements the SpidProviderOutput interface.
131
+ */
132
+ export function instanceOfSpidProviderOutput(value: object): value is SpidProviderOutput {
133
+ if (!('identityProviderEntityId' in value) || value['identityProviderEntityId'] === undefined) return false;
134
+ if (!('spidCode' in value) || value['spidCode'] === undefined) return false;
135
+ return true;
136
+ }
137
+
138
+ export function SpidProviderOutputFromJSON(json: any): SpidProviderOutput {
139
+ return SpidProviderOutputFromJSONTyped(json, false);
140
+ }
141
+
142
+ export function SpidProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidProviderOutput {
143
+ if (json == null) {
144
+ return json;
145
+ }
146
+ return {
147
+
148
+ 'billingInformation': json['billingInformation'] == null ? undefined : SpidBillingInformationFromJSON(json['billingInformation']),
149
+ 'identityProviderEntityId': json['identityProviderEntityId'],
150
+ 'spidCode': json['spidCode'],
151
+ 'spidCredentialExpirationDate': json['spidCredentialExpirationDate'] == null ? undefined : (new Date(json['spidCredentialExpirationDate'])),
152
+ 'placeOfBirth': json['placeOfBirth'] == null ? undefined : json['placeOfBirth'],
153
+ 'countyOfBirth': json['countyOfBirth'] == null ? undefined : json['countyOfBirth'],
154
+ 'rawIdCard': json['rawIdCard'] == null ? undefined : json['rawIdCard'],
155
+ 'email': json['email'] == null ? undefined : json['email'],
156
+ 'digitalAddress': json['digitalAddress'] == null ? undefined : json['digitalAddress'],
157
+ 'fiscalNumber': json['fiscalNumber'] == null ? undefined : json['fiscalNumber'],
158
+ 'ivaCode': json['ivaCode'] == null ? undefined : json['ivaCode'],
159
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
160
+ 'companyFiscalNumber': json['companyFiscalNumber'] == null ? undefined : json['companyFiscalNumber'],
161
+ 'registeredOffice': json['registeredOffice'] == null ? undefined : json['registeredOffice'],
162
+ };
163
+ }
164
+
165
+ export function SpidProviderOutputToJSON(json: any): SpidProviderOutput {
166
+ return SpidProviderOutputToJSONTyped(json, false);
167
+ }
168
+
169
+ export function SpidProviderOutputToJSONTyped(value?: SpidProviderOutput | null, ignoreDiscriminator: boolean = false): any {
170
+ if (value == null) {
171
+ return value;
172
+ }
173
+
174
+ return {
175
+
176
+ 'billingInformation': SpidBillingInformationToJSON(value['billingInformation']),
177
+ 'identityProviderEntityId': value['identityProviderEntityId'],
178
+ 'spidCode': value['spidCode'],
179
+ 'spidCredentialExpirationDate': value['spidCredentialExpirationDate'] == null ? undefined : ((value['spidCredentialExpirationDate'] as any).toISOString().substring(0,10)),
180
+ 'placeOfBirth': value['placeOfBirth'],
181
+ 'countyOfBirth': value['countyOfBirth'],
182
+ 'rawIdCard': value['rawIdCard'],
183
+ 'email': value['email'],
184
+ 'digitalAddress': value['digitalAddress'],
185
+ 'fiscalNumber': value['fiscalNumber'],
186
+ 'ivaCode': value['ivaCode'],
187
+ 'companyName': value['companyName'],
188
+ 'companyFiscalNumber': value['companyFiscalNumber'],
189
+ 'registeredOffice': value['registeredOffice'],
190
+ };
191
+ }
192
+