@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,61 @@
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 ExchangeAttachmentAccessKeyRequest
20
+ */
21
+ export interface ExchangeAttachmentAccessKeyRequest {
22
+ /**
23
+ * The Attachment Access Key to exchange for the raw file contents of the related Attachment
24
+ * @type {string}
25
+ * @memberof ExchangeAttachmentAccessKeyRequest
26
+ */
27
+ attachmentAccessKey: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ExchangeAttachmentAccessKeyRequest interface.
32
+ */
33
+ export function instanceOfExchangeAttachmentAccessKeyRequest(value: object): value is ExchangeAttachmentAccessKeyRequest {
34
+ if (!('attachmentAccessKey' in value) || value['attachmentAccessKey'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ExchangeAttachmentAccessKeyRequestFromJSON(json: any): ExchangeAttachmentAccessKeyRequest {
39
+ return ExchangeAttachmentAccessKeyRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ExchangeAttachmentAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeAttachmentAccessKeyRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'attachmentAccessKey': json['attachmentAccessKey'],
49
+ };
50
+ }
51
+
52
+ export function ExchangeAttachmentAccessKeyRequestToJSON(value?: ExchangeAttachmentAccessKeyRequest | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'attachmentAccessKey': value['attachmentAccessKey'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,61 @@
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 ExchangeResultsKeyRequest
20
+ */
21
+ export interface ExchangeResultsKeyRequest {
22
+ /**
23
+ * The Results Access Key to exchange
24
+ * @type {string}
25
+ * @memberof ExchangeResultsKeyRequest
26
+ */
27
+ resultsAccessKey: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ExchangeResultsKeyRequest interface.
32
+ */
33
+ export function instanceOfExchangeResultsKeyRequest(value: object): value is ExchangeResultsKeyRequest {
34
+ if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ExchangeResultsKeyRequestFromJSON(json: any): ExchangeResultsKeyRequest {
39
+ return ExchangeResultsKeyRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ExchangeResultsKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeResultsKeyRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'resultsAccessKey': json['resultsAccessKey'],
49
+ };
50
+ }
51
+
52
+ export function ExchangeResultsKeyRequestToJSON(value?: ExchangeResultsKeyRequest | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'resultsAccessKey': value['resultsAccessKey'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,82 @@
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 { IdentityData } from './IdentityData';
17
+ import {
18
+ IdentityDataFromJSON,
19
+ IdentityDataFromJSONTyped,
20
+ IdentityDataToJSON,
21
+ } from './IdentityData';
22
+ import type { Session } from './Session';
23
+ import {
24
+ SessionFromJSON,
25
+ SessionFromJSONTyped,
26
+ SessionToJSON,
27
+ } from './Session';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface ExchangeResultsKeyResponse
33
+ */
34
+ export interface ExchangeResultsKeyResponse {
35
+ /**
36
+ *
37
+ * @type {Session}
38
+ * @memberof ExchangeResultsKeyResponse
39
+ */
40
+ session: Session;
41
+ /**
42
+ *
43
+ * @type {IdentityData}
44
+ * @memberof ExchangeResultsKeyResponse
45
+ */
46
+ identityData?: IdentityData;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the ExchangeResultsKeyResponse interface.
51
+ */
52
+ export function instanceOfExchangeResultsKeyResponse(value: object): value is ExchangeResultsKeyResponse {
53
+ if (!('session' in value) || value['session'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function ExchangeResultsKeyResponseFromJSON(json: any): ExchangeResultsKeyResponse {
58
+ return ExchangeResultsKeyResponseFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function ExchangeResultsKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeResultsKeyResponse {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'session': SessionFromJSON(json['session']),
68
+ 'identityData': json['identityData'] == null ? undefined : IdentityDataFromJSON(json['identityData']),
69
+ };
70
+ }
71
+
72
+ export function ExchangeResultsKeyResponseToJSON(value?: ExchangeResultsKeyResponse | null): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+
78
+ 'session': SessionToJSON(value['session']),
79
+ 'identityData': IdentityDataToJSON(value['identityData']),
80
+ };
81
+ }
82
+
@@ -0,0 +1,61 @@
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 FailureMessage
20
+ */
21
+ export interface FailureMessage {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof FailureMessage
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the FailureMessage interface.
32
+ */
33
+ export function instanceOfFailureMessage(value: object): value is FailureMessage {
34
+ if (!('message' in value) || value['message'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function FailureMessageFromJSON(json: any): FailureMessage {
39
+ return FailureMessageFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function FailureMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FailureMessage {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+
52
+ export function FailureMessageToJSON(value?: FailureMessage | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'message': value['message'],
59
+ };
60
+ }
61
+
@@ -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
+ import type { Session } from './Session';
17
+ import {
18
+ SessionFromJSON,
19
+ SessionFromJSONTyped,
20
+ SessionToJSON,
21
+ } from './Session';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface GetSessionResponse
27
+ */
28
+ export interface GetSessionResponse {
29
+ /**
30
+ *
31
+ * @type {Session}
32
+ * @memberof GetSessionResponse
33
+ */
34
+ session: Session;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the GetSessionResponse interface.
39
+ */
40
+ export function instanceOfGetSessionResponse(value: object): value is GetSessionResponse {
41
+ if (!('session' in value) || value['session'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetSessionResponseFromJSON(json: any): GetSessionResponse {
46
+ return GetSessionResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'session': SessionFromJSON(json['session']),
56
+ };
57
+ }
58
+
59
+ export function GetSessionResponseToJSON(value?: GetSessionResponse | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'session': SessionToJSON(value['session']),
66
+ };
67
+ }
68
+
@@ -0,0 +1,103 @@
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 { DocumentData } from './DocumentData';
17
+ import {
18
+ DocumentDataFromJSON,
19
+ DocumentDataFromJSONTyped,
20
+ DocumentDataToJSON,
21
+ } from './DocumentData';
22
+ import type { PersonData } from './PersonData';
23
+ import {
24
+ PersonDataFromJSON,
25
+ PersonDataFromJSONTyped,
26
+ PersonDataToJSON,
27
+ } from './PersonData';
28
+ import type { Attachments } from './Attachments';
29
+ import {
30
+ AttachmentsFromJSON,
31
+ AttachmentsFromJSONTyped,
32
+ AttachmentsToJSON,
33
+ } from './Attachments';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface IdentityData
39
+ */
40
+ export interface IdentityData {
41
+ /**
42
+ * The ID of the integration from which this data originated (eg "yoti", "clear")
43
+ * @type {string}
44
+ * @memberof IdentityData
45
+ */
46
+ originatingProviderId?: string;
47
+ /**
48
+ * Identity data of the individual who was verified
49
+ * @type {PersonData}
50
+ * @memberof IdentityData
51
+ */
52
+ person?: PersonData;
53
+ /**
54
+ * Identity data of the document involved in verification, if relevant
55
+ * @type {DocumentData}
56
+ * @memberof IdentityData
57
+ */
58
+ document?: DocumentData;
59
+ /**
60
+ * Access keys for attachments (eg document/selfie images)
61
+ * @type {Attachments}
62
+ * @memberof IdentityData
63
+ */
64
+ attachments?: Attachments;
65
+ }
66
+
67
+ /**
68
+ * Check if a given object implements the IdentityData interface.
69
+ */
70
+ export function instanceOfIdentityData(value: object): value is IdentityData {
71
+ return true;
72
+ }
73
+
74
+ export function IdentityDataFromJSON(json: any): IdentityData {
75
+ return IdentityDataFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function IdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityData {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'originatingProviderId': json['originatingProviderId'] == null ? undefined : json['originatingProviderId'],
85
+ 'person': json['person'] == null ? undefined : PersonDataFromJSON(json['person']),
86
+ 'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']),
87
+ 'attachments': json['attachments'] == null ? undefined : AttachmentsFromJSON(json['attachments']),
88
+ };
89
+ }
90
+
91
+ export function IdentityDataToJSON(value?: IdentityData | null): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+
97
+ 'originatingProviderId': value['originatingProviderId'],
98
+ 'person': PersonDataToJSON(value['person']),
99
+ 'document': DocumentDataToJSON(value['document']),
100
+ 'attachments': AttachmentsToJSON(value['attachments']),
101
+ };
102
+ }
103
+
@@ -0,0 +1,61 @@
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 IdentityLookupResponse
20
+ */
21
+ export interface IdentityLookupResponse {
22
+ /**
23
+ * Whether the given phone number is known to have an identity in the network.
24
+ * @type {boolean}
25
+ * @memberof IdentityLookupResponse
26
+ */
27
+ identityInNetwork: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the IdentityLookupResponse interface.
32
+ */
33
+ export function instanceOfIdentityLookupResponse(value: object): value is IdentityLookupResponse {
34
+ if (!('identityInNetwork' in value) || value['identityInNetwork'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function IdentityLookupResponseFromJSON(json: any): IdentityLookupResponse {
39
+ return IdentityLookupResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function IdentityLookupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityLookupResponse {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'identityInNetwork': json['identityInNetwork'],
49
+ };
50
+ }
51
+
52
+ export function IdentityLookupResponseToJSON(value?: IdentityLookupResponse | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'identityInNetwork': value['identityInNetwork'],
59
+ };
60
+ }
61
+
@@ -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
+ import type { ProviderInfo } from './ProviderInfo';
17
+ import {
18
+ ProviderInfoFromJSON,
19
+ ProviderInfoFromJSONTyped,
20
+ ProviderInfoToJSON,
21
+ } from './ProviderInfo';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ListProvidersResponse
27
+ */
28
+ export interface ListProvidersResponse {
29
+ /**
30
+ * The list of identity providers available to your account
31
+ * @type {Array<ProviderInfo>}
32
+ * @memberof ListProvidersResponse
33
+ */
34
+ providers: Array<ProviderInfo>;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the ListProvidersResponse interface.
39
+ */
40
+ export function instanceOfListProvidersResponse(value: object): value is ListProvidersResponse {
41
+ if (!('providers' in value) || value['providers'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ListProvidersResponseFromJSON(json: any): ListProvidersResponse {
46
+ return ListProvidersResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ListProvidersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListProvidersResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'providers': ((json['providers'] as Array<any>).map(ProviderInfoFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ListProvidersResponseToJSON(value?: ListProvidersResponse | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'providers': ((value['providers'] as Array<any>).map(ProviderInfoToJSON)),
66
+ };
67
+ }
68
+
@@ -0,0 +1,86 @@
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 { Session } from './Session';
17
+ import {
18
+ SessionFromJSON,
19
+ SessionFromJSONTyped,
20
+ SessionToJSON,
21
+ } from './Session';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ListSessionsResponse
27
+ */
28
+ export interface ListSessionsResponse {
29
+ /**
30
+ *
31
+ * @type {Array<Session>}
32
+ * @memberof ListSessionsResponse
33
+ */
34
+ sessions: Array<Session>;
35
+ /**
36
+ * The total number of sessions tied to your account
37
+ * @type {number}
38
+ * @memberof ListSessionsResponse
39
+ */
40
+ total: number;
41
+ /**
42
+ * Whether there are additional pages of sessions to retrieve
43
+ * @type {boolean}
44
+ * @memberof ListSessionsResponse
45
+ */
46
+ more: boolean;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the ListSessionsResponse interface.
51
+ */
52
+ export function instanceOfListSessionsResponse(value: object): value is ListSessionsResponse {
53
+ if (!('sessions' in value) || value['sessions'] === undefined) return false;
54
+ if (!('total' in value) || value['total'] === undefined) return false;
55
+ if (!('more' in value) || value['more'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ListSessionsResponseFromJSON(json: any): ListSessionsResponse {
60
+ return ListSessionsResponseFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ListSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSessionsResponse {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'sessions': ((json['sessions'] as Array<any>).map(SessionFromJSON)),
70
+ 'total': json['total'],
71
+ 'more': json['more'],
72
+ };
73
+ }
74
+
75
+ export function ListSessionsResponseToJSON(value?: ListSessionsResponse | null): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+
81
+ 'sessions': ((value['sessions'] as Array<any>).map(SessionToJSON)),
82
+ 'total': value['total'],
83
+ 'more': value['more'],
84
+ };
85
+ }
86
+
@@ -0,0 +1,49 @@
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 OrderDirection = {
21
+ Ascending: 'Ascending',
22
+ Descending: 'Descending'
23
+ } as const;
24
+ export type OrderDirection = typeof OrderDirection[keyof typeof OrderDirection];
25
+
26
+
27
+ export function instanceOfOrderDirection(value: any): boolean {
28
+ for (const key in OrderDirection) {
29
+ if (Object.prototype.hasOwnProperty.call(OrderDirection, key)) {
30
+ if ((OrderDirection as Record<string, OrderDirection>)[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function OrderDirectionFromJSON(json: any): OrderDirection {
39
+ return OrderDirectionFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function OrderDirectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDirection {
43
+ return json as OrderDirection;
44
+ }
45
+
46
+ export function OrderDirectionToJSON(value?: OrderDirection | null): any {
47
+ return value as any;
48
+ }
49
+