@trinsic/api 0.2.4

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 (177) hide show
  1. package/.openapi-generator/FILES +41 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AttachmentsApi.d.ts +50 -0
  6. package/dist/apis/AttachmentsApi.js +66 -0
  7. package/dist/apis/NetworkApi.d.ts +70 -0
  8. package/dist/apis/NetworkApi.js +100 -0
  9. package/dist/apis/SessionsApi.d.ts +178 -0
  10. package/dist/apis/SessionsApi.js +252 -0
  11. package/dist/apis/index.d.ts +3 -0
  12. package/dist/apis/index.js +21 -0
  13. package/dist/esm/apis/AttachmentsApi.d.ts +50 -0
  14. package/dist/esm/apis/AttachmentsApi.js +62 -0
  15. package/dist/esm/apis/NetworkApi.d.ts +70 -0
  16. package/dist/esm/apis/NetworkApi.js +96 -0
  17. package/dist/esm/apis/SessionsApi.d.ts +178 -0
  18. package/dist/esm/apis/SessionsApi.js +248 -0
  19. package/dist/esm/apis/index.d.ts +3 -0
  20. package/dist/esm/apis/index.js +5 -0
  21. package/dist/esm/index.d.ts +3 -0
  22. package/dist/esm/index.js +5 -0
  23. package/dist/esm/models/Address.d.ts +73 -0
  24. package/dist/esm/models/Address.js +52 -0
  25. package/dist/esm/models/Attachments.d.ts +51 -0
  26. package/dist/esm/models/Attachments.js +44 -0
  27. package/dist/esm/models/CancelSessionResponse.d.ts +32 -0
  28. package/dist/esm/models/CancelSessionResponse.js +41 -0
  29. package/dist/esm/models/CreateSessionRequest.d.ts +52 -0
  30. package/dist/esm/models/CreateSessionRequest.js +43 -0
  31. package/dist/esm/models/CreateSessionResponse.d.ts +45 -0
  32. package/dist/esm/models/CreateSessionResponse.js +43 -0
  33. package/dist/esm/models/DisclosedFields.d.ts +97 -0
  34. package/dist/esm/models/DisclosedFields.js +84 -0
  35. package/dist/esm/models/DisclosedFieldsRequest.d.ts +97 -0
  36. package/dist/esm/models/DisclosedFieldsRequest.js +60 -0
  37. package/dist/esm/models/DocumentData.d.ts +61 -0
  38. package/dist/esm/models/DocumentData.js +48 -0
  39. package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.d.ts +31 -0
  40. package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.js +40 -0
  41. package/dist/esm/models/ExchangeResultsKeyRequest.d.ts +31 -0
  42. package/dist/esm/models/ExchangeResultsKeyRequest.js +40 -0
  43. package/dist/esm/models/ExchangeResultsKeyResponse.d.ts +39 -0
  44. package/dist/esm/models/ExchangeResultsKeyResponse.js +44 -0
  45. package/dist/esm/models/FailureMessage.d.ts +31 -0
  46. package/dist/esm/models/FailureMessage.js +40 -0
  47. package/dist/esm/models/GetSessionResponse.d.ts +32 -0
  48. package/dist/esm/models/GetSessionResponse.js +41 -0
  49. package/dist/esm/models/IdentityData.d.ts +52 -0
  50. package/dist/esm/models/IdentityData.js +47 -0
  51. package/dist/esm/models/IdentityLookupResponse.d.ts +31 -0
  52. package/dist/esm/models/IdentityLookupResponse.js +40 -0
  53. package/dist/esm/models/ListProvidersResponse.d.ts +32 -0
  54. package/dist/esm/models/ListProvidersResponse.js +41 -0
  55. package/dist/esm/models/ListSessionsResponse.d.ts +44 -0
  56. package/dist/esm/models/ListSessionsResponse.js +49 -0
  57. package/dist/esm/models/OrderDirection.d.ts +24 -0
  58. package/dist/esm/models/OrderDirection.js +40 -0
  59. package/dist/esm/models/PersonData.d.ts +82 -0
  60. package/dist/esm/models/PersonData.js +55 -0
  61. package/dist/esm/models/ProviderInfo.d.ts +43 -0
  62. package/dist/esm/models/ProviderInfo.js +48 -0
  63. package/dist/esm/models/Session.d.ts +71 -0
  64. package/dist/esm/models/Session.js +66 -0
  65. package/dist/esm/models/SessionFailCode.d.ts +29 -0
  66. package/dist/esm/models/SessionFailCode.js +45 -0
  67. package/dist/esm/models/SessionOrdering.d.ts +25 -0
  68. package/dist/esm/models/SessionOrdering.js +41 -0
  69. package/dist/esm/models/SessionState.d.ts +28 -0
  70. package/dist/esm/models/SessionState.js +44 -0
  71. package/dist/esm/models/ValidationResult.d.ts +37 -0
  72. package/dist/esm/models/ValidationResult.js +41 -0
  73. package/dist/esm/models/Verification.d.ts +38 -0
  74. package/dist/esm/models/Verification.js +41 -0
  75. package/dist/esm/models/VerificationFailCode.d.ts +27 -0
  76. package/dist/esm/models/VerificationFailCode.js +43 -0
  77. package/dist/esm/models/index.d.ts +27 -0
  78. package/dist/esm/models/index.js +29 -0
  79. package/dist/esm/runtime.d.ts +181 -0
  80. package/dist/esm/runtime.js +326 -0
  81. package/dist/index.d.ts +3 -0
  82. package/dist/index.js +21 -0
  83. package/dist/models/Address.d.ts +73 -0
  84. package/dist/models/Address.js +58 -0
  85. package/dist/models/Attachments.d.ts +51 -0
  86. package/dist/models/Attachments.js +50 -0
  87. package/dist/models/CancelSessionResponse.d.ts +32 -0
  88. package/dist/models/CancelSessionResponse.js +47 -0
  89. package/dist/models/CreateSessionRequest.d.ts +52 -0
  90. package/dist/models/CreateSessionRequest.js +49 -0
  91. package/dist/models/CreateSessionResponse.d.ts +45 -0
  92. package/dist/models/CreateSessionResponse.js +49 -0
  93. package/dist/models/DisclosedFields.d.ts +97 -0
  94. package/dist/models/DisclosedFields.js +90 -0
  95. package/dist/models/DisclosedFieldsRequest.d.ts +97 -0
  96. package/dist/models/DisclosedFieldsRequest.js +66 -0
  97. package/dist/models/DocumentData.d.ts +61 -0
  98. package/dist/models/DocumentData.js +54 -0
  99. package/dist/models/ExchangeAttachmentAccessKeyRequest.d.ts +31 -0
  100. package/dist/models/ExchangeAttachmentAccessKeyRequest.js +46 -0
  101. package/dist/models/ExchangeResultsKeyRequest.d.ts +31 -0
  102. package/dist/models/ExchangeResultsKeyRequest.js +46 -0
  103. package/dist/models/ExchangeResultsKeyResponse.d.ts +39 -0
  104. package/dist/models/ExchangeResultsKeyResponse.js +50 -0
  105. package/dist/models/FailureMessage.d.ts +31 -0
  106. package/dist/models/FailureMessage.js +46 -0
  107. package/dist/models/GetSessionResponse.d.ts +32 -0
  108. package/dist/models/GetSessionResponse.js +47 -0
  109. package/dist/models/IdentityData.d.ts +52 -0
  110. package/dist/models/IdentityData.js +53 -0
  111. package/dist/models/IdentityLookupResponse.d.ts +31 -0
  112. package/dist/models/IdentityLookupResponse.js +46 -0
  113. package/dist/models/ListProvidersResponse.d.ts +32 -0
  114. package/dist/models/ListProvidersResponse.js +47 -0
  115. package/dist/models/ListSessionsResponse.d.ts +44 -0
  116. package/dist/models/ListSessionsResponse.js +55 -0
  117. package/dist/models/OrderDirection.d.ts +24 -0
  118. package/dist/models/OrderDirection.js +47 -0
  119. package/dist/models/PersonData.d.ts +82 -0
  120. package/dist/models/PersonData.js +61 -0
  121. package/dist/models/ProviderInfo.d.ts +43 -0
  122. package/dist/models/ProviderInfo.js +54 -0
  123. package/dist/models/Session.d.ts +71 -0
  124. package/dist/models/Session.js +72 -0
  125. package/dist/models/SessionFailCode.d.ts +29 -0
  126. package/dist/models/SessionFailCode.js +52 -0
  127. package/dist/models/SessionOrdering.d.ts +25 -0
  128. package/dist/models/SessionOrdering.js +48 -0
  129. package/dist/models/SessionState.d.ts +28 -0
  130. package/dist/models/SessionState.js +51 -0
  131. package/dist/models/ValidationResult.d.ts +37 -0
  132. package/dist/models/ValidationResult.js +47 -0
  133. package/dist/models/Verification.d.ts +38 -0
  134. package/dist/models/Verification.js +47 -0
  135. package/dist/models/VerificationFailCode.d.ts +27 -0
  136. package/dist/models/VerificationFailCode.js +50 -0
  137. package/dist/models/index.d.ts +27 -0
  138. package/dist/models/index.js +45 -0
  139. package/dist/runtime.d.ts +181 -0
  140. package/dist/runtime.js +341 -0
  141. package/package.json +21 -0
  142. package/src/apis/AttachmentsApi.ts +100 -0
  143. package/src/apis/NetworkApi.ts +156 -0
  144. package/src/apis/SessionsApi.ts +444 -0
  145. package/src/apis/index.ts +5 -0
  146. package/src/index.ts +5 -0
  147. package/src/models/Address.ts +116 -0
  148. package/src/models/Attachments.ts +86 -0
  149. package/src/models/CancelSessionResponse.ts +68 -0
  150. package/src/models/CreateSessionRequest.ts +91 -0
  151. package/src/models/CreateSessionResponse.ts +83 -0
  152. package/src/models/DisclosedFields.ts +160 -0
  153. package/src/models/DisclosedFieldsRequest.ts +148 -0
  154. package/src/models/DocumentData.ts +100 -0
  155. package/src/models/ExchangeAttachmentAccessKeyRequest.ts +61 -0
  156. package/src/models/ExchangeResultsKeyRequest.ts +61 -0
  157. package/src/models/ExchangeResultsKeyResponse.ts +82 -0
  158. package/src/models/FailureMessage.ts +61 -0
  159. package/src/models/GetSessionResponse.ts +68 -0
  160. package/src/models/IdentityData.ts +103 -0
  161. package/src/models/IdentityLookupResponse.ts +61 -0
  162. package/src/models/ListProvidersResponse.ts +68 -0
  163. package/src/models/ListSessionsResponse.ts +86 -0
  164. package/src/models/OrderDirection.ts +49 -0
  165. package/src/models/PersonData.ts +133 -0
  166. package/src/models/ProviderInfo.ts +79 -0
  167. package/src/models/Session.ts +139 -0
  168. package/src/models/SessionFailCode.ts +54 -0
  169. package/src/models/SessionOrdering.ts +50 -0
  170. package/src/models/SessionState.ts +53 -0
  171. package/src/models/ValidationResult.ts +68 -0
  172. package/src/models/Verification.ts +75 -0
  173. package/src/models/VerificationFailCode.ts +52 -0
  174. package/src/models/index.ts +29 -0
  175. package/src/runtime.ts +426 -0
  176. package/tsconfig.esm.json +7 -0
  177. package/tsconfig.json +16 -0
@@ -0,0 +1,133 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 { Address } from './Address';
17
+ import {
18
+ AddressFromJSON,
19
+ AddressFromJSONTyped,
20
+ AddressToJSON,
21
+ } from './Address';
22
+
23
+ /**
24
+ * Identity information for the individual being verified
25
+ * @export
26
+ * @interface PersonData
27
+ */
28
+ export interface PersonData {
29
+ /**
30
+ * Given (first) name of the individual
31
+ * @type {string}
32
+ * @memberof PersonData
33
+ */
34
+ givenName?: string;
35
+ /**
36
+ * Family (last) name of the individual
37
+ * @type {string}
38
+ * @memberof PersonData
39
+ */
40
+ familyName?: string;
41
+ /**
42
+ * Middle name of the individual
43
+ * @type {string}
44
+ * @memberof PersonData
45
+ */
46
+ middleName?: string;
47
+ /**
48
+ * The individual's full name as a single string.
49
+ *
50
+ * Useful for names which do not fit into a "first middle last" structure.
51
+ * @type {string}
52
+ * @memberof PersonData
53
+ */
54
+ fullName?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof PersonData
59
+ */
60
+ nationality?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof PersonData
65
+ */
66
+ gender?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof PersonData
71
+ */
72
+ phoneNumber?: string;
73
+ /**
74
+ * Address information for an individual
75
+ * @type {Address}
76
+ * @memberof PersonData
77
+ */
78
+ address?: Address;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof PersonData
83
+ */
84
+ dateOfBirth?: string;
85
+ }
86
+
87
+ /**
88
+ * Check if a given object implements the PersonData interface.
89
+ */
90
+ export function instanceOfPersonData(value: object): value is PersonData {
91
+ return true;
92
+ }
93
+
94
+ export function PersonDataFromJSON(json: any): PersonData {
95
+ return PersonDataFromJSONTyped(json, false);
96
+ }
97
+
98
+ export function PersonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonData {
99
+ if (json == null) {
100
+ return json;
101
+ }
102
+ return {
103
+
104
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
105
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
106
+ 'middleName': json['middleName'] == null ? undefined : json['middleName'],
107
+ 'fullName': json['fullName'] == null ? undefined : json['fullName'],
108
+ 'nationality': json['nationality'] == null ? undefined : json['nationality'],
109
+ 'gender': json['gender'] == null ? undefined : json['gender'],
110
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
111
+ 'address': json['address'] == null ? undefined : AddressFromJSON(json['address']),
112
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : json['dateOfBirth'],
113
+ };
114
+ }
115
+
116
+ export function PersonDataToJSON(value?: PersonData | null): any {
117
+ if (value == null) {
118
+ return value;
119
+ }
120
+ return {
121
+
122
+ 'givenName': value['givenName'],
123
+ 'familyName': value['familyName'],
124
+ 'middleName': value['middleName'],
125
+ 'fullName': value['fullName'],
126
+ 'nationality': value['nationality'],
127
+ 'gender': value['gender'],
128
+ 'phoneNumber': value['phoneNumber'],
129
+ 'address': AddressToJSON(value['address']),
130
+ 'dateOfBirth': value['dateOfBirth'],
131
+ };
132
+ }
133
+
@@ -0,0 +1,79 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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
+ * A provider that can be specified when creating a `Session`
18
+ * @export
19
+ * @interface ProviderInfo
20
+ */
21
+ export interface ProviderInfo {
22
+ /**
23
+ * The ID of the provider
24
+ * @type {string}
25
+ * @memberof ProviderInfo
26
+ */
27
+ id: string;
28
+ /**
29
+ * The friendly, human-readable name of the provider
30
+ * @type {string}
31
+ * @memberof ProviderInfo
32
+ */
33
+ name: string;
34
+ /**
35
+ * A URL pointing to the provider's logo
36
+ * @type {string}
37
+ * @memberof ProviderInfo
38
+ */
39
+ logoUrl: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ProviderInfo interface.
44
+ */
45
+ export function instanceOfProviderInfo(value: object): value is ProviderInfo {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ProviderInfoFromJSON(json: any): ProviderInfo {
53
+ return ProviderInfoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInfo {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'logoUrl': json['logoUrl'],
65
+ };
66
+ }
67
+
68
+ export function ProviderInfoToJSON(value?: ProviderInfo | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'id': value['id'],
75
+ 'name': value['name'],
76
+ 'logoUrl': value['logoUrl'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,139 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 { SessionState } from './SessionState';
17
+ import {
18
+ SessionStateFromJSON,
19
+ SessionStateFromJSONTyped,
20
+ SessionStateToJSON,
21
+ } from './SessionState';
22
+ import type { DisclosedFields } from './DisclosedFields';
23
+ import {
24
+ DisclosedFieldsFromJSON,
25
+ DisclosedFieldsFromJSONTyped,
26
+ DisclosedFieldsToJSON,
27
+ } from './DisclosedFields';
28
+ import type { SessionFailCode } from './SessionFailCode';
29
+ import {
30
+ SessionFailCodeFromJSON,
31
+ SessionFailCodeFromJSONTyped,
32
+ SessionFailCodeToJSON,
33
+ } from './SessionFailCode';
34
+ import type { Verification } from './Verification';
35
+ import {
36
+ VerificationFromJSON,
37
+ VerificationFromJSONTyped,
38
+ VerificationToJSON,
39
+ } from './Verification';
40
+
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface Session
45
+ */
46
+ export interface Session {
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof Session
51
+ */
52
+ id: string;
53
+ /**
54
+ * The state of the session
55
+ * @type {SessionState}
56
+ * @memberof Session
57
+ */
58
+ state: SessionState;
59
+ /**
60
+ * If the session is in state `IdvFailed`, this field contains the reason for failure.
61
+ * @type {SessionFailCode}
62
+ * @memberof Session
63
+ */
64
+ failCode?: SessionFailCode;
65
+ /**
66
+ * The underlying verification for this Session
67
+ * @type {Verification}
68
+ * @memberof Session
69
+ */
70
+ verification: Verification;
71
+ /**
72
+ * The fields that were requested to be disclosed when the Session was created
73
+ * @type {DisclosedFields}
74
+ * @memberof Session
75
+ */
76
+ disclosedFields: DisclosedFields;
77
+ /**
78
+ * The unix timestamp, in seconds, when this session was created
79
+ * @type {number}
80
+ * @memberof Session
81
+ */
82
+ created: number;
83
+ /**
84
+ * The unix timestamp, in seconds, when this session's state last changed
85
+ * @type {number}
86
+ * @memberof Session
87
+ */
88
+ updated: number;
89
+ }
90
+
91
+ /**
92
+ * Check if a given object implements the Session interface.
93
+ */
94
+ export function instanceOfSession(value: object): value is Session {
95
+ if (!('id' in value) || value['id'] === undefined) return false;
96
+ if (!('state' in value) || value['state'] === undefined) return false;
97
+ if (!('verification' in value) || value['verification'] === undefined) return false;
98
+ if (!('disclosedFields' in value) || value['disclosedFields'] === undefined) return false;
99
+ if (!('created' in value) || value['created'] === undefined) return false;
100
+ if (!('updated' in value) || value['updated'] === undefined) return false;
101
+ return true;
102
+ }
103
+
104
+ export function SessionFromJSON(json: any): Session {
105
+ return SessionFromJSONTyped(json, false);
106
+ }
107
+
108
+ export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session {
109
+ if (json == null) {
110
+ return json;
111
+ }
112
+ return {
113
+
114
+ 'id': json['id'],
115
+ 'state': SessionStateFromJSON(json['state']),
116
+ 'failCode': json['failCode'] == null ? undefined : SessionFailCodeFromJSON(json['failCode']),
117
+ 'verification': VerificationFromJSON(json['verification']),
118
+ 'disclosedFields': DisclosedFieldsFromJSON(json['disclosedFields']),
119
+ 'created': json['created'],
120
+ 'updated': json['updated'],
121
+ };
122
+ }
123
+
124
+ export function SessionToJSON(value?: Session | null): any {
125
+ if (value == null) {
126
+ return value;
127
+ }
128
+ return {
129
+
130
+ 'id': value['id'],
131
+ 'state': SessionStateToJSON(value['state']),
132
+ 'failCode': SessionFailCodeToJSON(value['failCode']),
133
+ 'verification': VerificationToJSON(value['verification']),
134
+ 'disclosedFields': DisclosedFieldsToJSON(value['disclosedFields']),
135
+ 'created': value['created'],
136
+ 'updated': value['updated'],
137
+ };
138
+ }
139
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 SessionFailCode = {
21
+ SessionFailNone: 'SessionFailNone',
22
+ SessionFailInternal: 'SessionFailInternal',
23
+ SessionFailVerificationFailed: 'SessionFailVerificationFailed',
24
+ SessionFailAuthentication: 'SessionFailAuthentication',
25
+ SessionFailExpired: 'SessionFailExpired',
26
+ SessionFailUserCanceled: 'SessionFailUserCanceled',
27
+ SessionFailRpCanceled: 'SessionFailRpCanceled'
28
+ } as const;
29
+ export type SessionFailCode = typeof SessionFailCode[keyof typeof SessionFailCode];
30
+
31
+
32
+ export function instanceOfSessionFailCode(value: any): boolean {
33
+ for (const key in SessionFailCode) {
34
+ if (Object.prototype.hasOwnProperty.call(SessionFailCode, key)) {
35
+ if ((SessionFailCode as Record<string, SessionFailCode>)[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function SessionFailCodeFromJSON(json: any): SessionFailCode {
44
+ return SessionFailCodeFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function SessionFailCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionFailCode {
48
+ return json as SessionFailCode;
49
+ }
50
+
51
+ export function SessionFailCodeToJSON(value?: SessionFailCode | null): any {
52
+ return value as any;
53
+ }
54
+
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 SessionOrdering = {
21
+ Created: 'Created',
22
+ Updated: 'Updated',
23
+ State: 'State'
24
+ } as const;
25
+ export type SessionOrdering = typeof SessionOrdering[keyof typeof SessionOrdering];
26
+
27
+
28
+ export function instanceOfSessionOrdering(value: any): boolean {
29
+ for (const key in SessionOrdering) {
30
+ if (Object.prototype.hasOwnProperty.call(SessionOrdering, key)) {
31
+ if ((SessionOrdering as Record<string, SessionOrdering>)[key] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function SessionOrderingFromJSON(json: any): SessionOrdering {
40
+ return SessionOrderingFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function SessionOrderingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionOrdering {
44
+ return json as SessionOrdering;
45
+ }
46
+
47
+ export function SessionOrderingToJSON(value?: SessionOrdering | null): any {
48
+ return value as any;
49
+ }
50
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 SessionState = {
21
+ IdvCreated: 'IdvCreated',
22
+ IdvInitiated: 'IdvInitiated',
23
+ IdvAuthenticating: 'IdvAuthenticating',
24
+ IdvInProgress: 'IdvInProgress',
25
+ IdvSuccess: 'IdvSuccess',
26
+ IdvFailed: 'IdvFailed'
27
+ } as const;
28
+ export type SessionState = typeof SessionState[keyof typeof SessionState];
29
+
30
+
31
+ export function instanceOfSessionState(value: any): boolean {
32
+ for (const key in SessionState) {
33
+ if (Object.prototype.hasOwnProperty.call(SessionState, key)) {
34
+ if ((SessionState as Record<string, SessionState>)[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+
42
+ export function SessionStateFromJSON(json: any): SessionState {
43
+ return SessionStateFromJSONTyped(json, false);
44
+ }
45
+
46
+ export function SessionStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionState {
47
+ return json as SessionState;
48
+ }
49
+
50
+ export function SessionStateToJSON(value?: SessionState | null): any {
51
+ return value as any;
52
+ }
53
+
@@ -0,0 +1,68 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 ValidationResult
20
+ */
21
+ export interface ValidationResult {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof ValidationResult
26
+ */
27
+ readonly memberNames: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ValidationResult
32
+ */
33
+ errorMessage?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ValidationResult interface.
38
+ */
39
+ export function instanceOfValidationResult(value: object): value is ValidationResult {
40
+ if (!('memberNames' in value) || value['memberNames'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ValidationResultFromJSON(json: any): ValidationResult {
45
+ return ValidationResultFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ValidationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResult {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'memberNames': json['memberNames'],
55
+ 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
56
+ };
57
+ }
58
+
59
+ export function ValidationResultToJSON(value?: Omit<ValidationResult, 'memberNames'> | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'errorMessage': value['errorMessage'],
66
+ };
67
+ }
68
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Connect 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 { VerificationFailCode } from './VerificationFailCode';
17
+ import {
18
+ VerificationFailCodeFromJSON,
19
+ VerificationFailCodeFromJSONTyped,
20
+ VerificationFailCodeToJSON,
21
+ } from './VerificationFailCode';
22
+
23
+ /**
24
+ * A Verification contained within a Session
25
+ * @export
26
+ * @interface Verification
27
+ */
28
+ export interface Verification {
29
+ /**
30
+ * The identity provider that was used to perform the Verification, if any
31
+ * @type {string}
32
+ * @memberof Verification
33
+ */
34
+ provider?: string;
35
+ /**
36
+ * If the Verification is in state `VerificationFailed`, this field contains the reason for failure
37
+ * @type {VerificationFailCode}
38
+ * @memberof Verification
39
+ */
40
+ failCode?: VerificationFailCode;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the Verification interface.
45
+ */
46
+ export function instanceOfVerification(value: object): value is Verification {
47
+ return true;
48
+ }
49
+
50
+ export function VerificationFromJSON(json: any): Verification {
51
+ return VerificationFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function VerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Verification {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'provider': json['provider'] == null ? undefined : json['provider'],
61
+ 'failCode': json['failCode'] == null ? undefined : VerificationFailCodeFromJSON(json['failCode']),
62
+ };
63
+ }
64
+
65
+ export function VerificationToJSON(value?: Verification | null): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+
71
+ 'provider': value['provider'],
72
+ 'failCode': VerificationFailCodeToJSON(value['failCode']),
73
+ };
74
+ }
75
+