@trinsic/api 0.6.1 → 0.6.2

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 (137) hide show
  1. package/dist/apis/AttachmentsApi.d.ts +53 -0
  2. package/dist/apis/AttachmentsApi.js +68 -0
  3. package/dist/apis/NetworkApi.d.ts +76 -0
  4. package/dist/apis/NetworkApi.js +104 -0
  5. package/dist/apis/SessionsApi.d.ts +193 -0
  6. package/dist/apis/SessionsApi.js +262 -0
  7. package/dist/apis/index.d.ts +3 -0
  8. package/dist/apis/index.js +21 -0
  9. package/dist/esm/apis/AttachmentsApi.d.ts +53 -0
  10. package/dist/esm/apis/AttachmentsApi.js +64 -0
  11. package/dist/esm/apis/NetworkApi.d.ts +76 -0
  12. package/dist/esm/apis/NetworkApi.js +100 -0
  13. package/dist/esm/apis/SessionsApi.d.ts +193 -0
  14. package/dist/esm/apis/SessionsApi.js +258 -0
  15. package/dist/esm/apis/index.d.ts +3 -0
  16. package/dist/esm/apis/index.js +5 -0
  17. package/dist/esm/index.d.ts +3 -0
  18. package/dist/esm/index.js +5 -0
  19. package/dist/esm/models/Address.d.ts +73 -0
  20. package/dist/esm/models/Address.js +52 -0
  21. package/dist/esm/models/Attachments.d.ts +51 -0
  22. package/dist/esm/models/Attachments.js +44 -0
  23. package/dist/esm/models/CancelSessionResponse.d.ts +32 -0
  24. package/dist/esm/models/CancelSessionResponse.js +41 -0
  25. package/dist/esm/models/CreateSessionRequest.d.ts +52 -0
  26. package/dist/esm/models/CreateSessionRequest.js +43 -0
  27. package/dist/esm/models/CreateSessionResponse.d.ts +43 -0
  28. package/dist/esm/models/CreateSessionResponse.js +43 -0
  29. package/dist/esm/models/DisclosedFields.d.ts +97 -0
  30. package/dist/esm/models/DisclosedFields.js +84 -0
  31. package/dist/esm/models/DisclosedFieldsRequest.d.ts +97 -0
  32. package/dist/esm/models/DisclosedFieldsRequest.js +60 -0
  33. package/dist/esm/models/DocumentData.d.ts +61 -0
  34. package/dist/esm/models/DocumentData.js +48 -0
  35. package/dist/esm/models/FailureMessage.d.ts +31 -0
  36. package/dist/esm/models/FailureMessage.js +40 -0
  37. package/dist/esm/models/GetAttachmentRequest.d.ts +31 -0
  38. package/dist/esm/models/GetAttachmentRequest.js +40 -0
  39. package/dist/esm/models/GetSessionResponse.d.ts +32 -0
  40. package/dist/esm/models/GetSessionResponse.js +41 -0
  41. package/dist/esm/models/GetSessionResultRequest.d.ts +31 -0
  42. package/dist/esm/models/GetSessionResultRequest.js +40 -0
  43. package/dist/esm/models/GetSessionResultResponse.d.ts +39 -0
  44. package/dist/esm/models/GetSessionResultResponse.js +44 -0
  45. package/dist/esm/models/IdentityData.d.ts +52 -0
  46. package/dist/esm/models/IdentityData.js +47 -0
  47. package/dist/esm/models/IdentityLookupResponse.d.ts +31 -0
  48. package/dist/esm/models/IdentityLookupResponse.js +40 -0
  49. package/dist/esm/models/ListProvidersResponse.d.ts +32 -0
  50. package/dist/esm/models/ListProvidersResponse.js +41 -0
  51. package/dist/esm/models/ListSessionsResponse.d.ts +44 -0
  52. package/dist/esm/models/ListSessionsResponse.js +49 -0
  53. package/dist/esm/models/OrderDirection.d.ts +24 -0
  54. package/dist/esm/models/OrderDirection.js +40 -0
  55. package/dist/esm/models/PersonData.d.ts +82 -0
  56. package/dist/esm/models/PersonData.js +55 -0
  57. package/dist/esm/models/ProviderInfo.d.ts +43 -0
  58. package/dist/esm/models/ProviderInfo.js +48 -0
  59. package/dist/esm/models/Session.d.ts +71 -0
  60. package/dist/esm/models/Session.js +66 -0
  61. package/dist/esm/models/SessionFailCode.d.ts +29 -0
  62. package/dist/esm/models/SessionFailCode.js +45 -0
  63. package/dist/esm/models/SessionOrdering.d.ts +25 -0
  64. package/dist/esm/models/SessionOrdering.js +41 -0
  65. package/dist/esm/models/SessionState.d.ts +28 -0
  66. package/dist/esm/models/SessionState.js +44 -0
  67. package/dist/esm/models/ValidationResult.d.ts +37 -0
  68. package/dist/esm/models/ValidationResult.js +41 -0
  69. package/dist/esm/models/Verification.d.ts +38 -0
  70. package/dist/esm/models/Verification.js +41 -0
  71. package/dist/esm/models/VerificationFailCode.d.ts +27 -0
  72. package/dist/esm/models/VerificationFailCode.js +43 -0
  73. package/dist/esm/models/index.d.ts +27 -0
  74. package/dist/esm/models/index.js +29 -0
  75. package/dist/esm/runtime.d.ts +181 -0
  76. package/dist/esm/runtime.js +326 -0
  77. package/dist/index.d.ts +3 -0
  78. package/dist/index.js +21 -0
  79. package/dist/models/Address.d.ts +73 -0
  80. package/dist/models/Address.js +58 -0
  81. package/dist/models/Attachments.d.ts +51 -0
  82. package/dist/models/Attachments.js +50 -0
  83. package/dist/models/CancelSessionResponse.d.ts +32 -0
  84. package/dist/models/CancelSessionResponse.js +47 -0
  85. package/dist/models/CreateSessionRequest.d.ts +52 -0
  86. package/dist/models/CreateSessionRequest.js +49 -0
  87. package/dist/models/CreateSessionResponse.d.ts +43 -0
  88. package/dist/models/CreateSessionResponse.js +49 -0
  89. package/dist/models/DisclosedFields.d.ts +97 -0
  90. package/dist/models/DisclosedFields.js +90 -0
  91. package/dist/models/DisclosedFieldsRequest.d.ts +97 -0
  92. package/dist/models/DisclosedFieldsRequest.js +66 -0
  93. package/dist/models/DocumentData.d.ts +61 -0
  94. package/dist/models/DocumentData.js +54 -0
  95. package/dist/models/FailureMessage.d.ts +31 -0
  96. package/dist/models/FailureMessage.js +46 -0
  97. package/dist/models/GetAttachmentRequest.d.ts +31 -0
  98. package/dist/models/GetAttachmentRequest.js +46 -0
  99. package/dist/models/GetSessionResponse.d.ts +32 -0
  100. package/dist/models/GetSessionResponse.js +47 -0
  101. package/dist/models/GetSessionResultRequest.d.ts +31 -0
  102. package/dist/models/GetSessionResultRequest.js +46 -0
  103. package/dist/models/GetSessionResultResponse.d.ts +39 -0
  104. package/dist/models/GetSessionResultResponse.js +50 -0
  105. package/dist/models/IdentityData.d.ts +52 -0
  106. package/dist/models/IdentityData.js +53 -0
  107. package/dist/models/IdentityLookupResponse.d.ts +31 -0
  108. package/dist/models/IdentityLookupResponse.js +46 -0
  109. package/dist/models/ListProvidersResponse.d.ts +32 -0
  110. package/dist/models/ListProvidersResponse.js +47 -0
  111. package/dist/models/ListSessionsResponse.d.ts +44 -0
  112. package/dist/models/ListSessionsResponse.js +55 -0
  113. package/dist/models/OrderDirection.d.ts +24 -0
  114. package/dist/models/OrderDirection.js +47 -0
  115. package/dist/models/PersonData.d.ts +82 -0
  116. package/dist/models/PersonData.js +61 -0
  117. package/dist/models/ProviderInfo.d.ts +43 -0
  118. package/dist/models/ProviderInfo.js +54 -0
  119. package/dist/models/Session.d.ts +71 -0
  120. package/dist/models/Session.js +72 -0
  121. package/dist/models/SessionFailCode.d.ts +29 -0
  122. package/dist/models/SessionFailCode.js +52 -0
  123. package/dist/models/SessionOrdering.d.ts +25 -0
  124. package/dist/models/SessionOrdering.js +48 -0
  125. package/dist/models/SessionState.d.ts +28 -0
  126. package/dist/models/SessionState.js +51 -0
  127. package/dist/models/ValidationResult.d.ts +37 -0
  128. package/dist/models/ValidationResult.js +47 -0
  129. package/dist/models/Verification.d.ts +38 -0
  130. package/dist/models/Verification.js +47 -0
  131. package/dist/models/VerificationFailCode.d.ts +27 -0
  132. package/dist/models/VerificationFailCode.js +50 -0
  133. package/dist/models/index.d.ts +27 -0
  134. package/dist/models/index.js +45 -0
  135. package/dist/runtime.d.ts +181 -0
  136. package/dist/runtime.js +341 -0
  137. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SessionOrdering: {
17
+ readonly Created: "Created";
18
+ readonly Updated: "Updated";
19
+ readonly State: "State";
20
+ };
21
+ export type SessionOrdering = typeof SessionOrdering[keyof typeof SessionOrdering];
22
+ export declare function instanceOfSessionOrdering(value: any): boolean;
23
+ export declare function SessionOrderingFromJSON(json: any): SessionOrdering;
24
+ export declare function SessionOrderingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionOrdering;
25
+ export declare function SessionOrderingToJSON(value?: SessionOrdering | null): any;
@@ -0,0 +1,41 @@
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
+ * @export
17
+ */
18
+ export const SessionOrdering = {
19
+ Created: 'Created',
20
+ Updated: 'Updated',
21
+ State: 'State'
22
+ };
23
+ export function instanceOfSessionOrdering(value) {
24
+ for (const key in SessionOrdering) {
25
+ if (Object.prototype.hasOwnProperty.call(SessionOrdering, key)) {
26
+ if (SessionOrdering[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SessionOrderingFromJSON(json) {
34
+ return SessionOrderingFromJSONTyped(json, false);
35
+ }
36
+ export function SessionOrderingFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SessionOrderingToJSON(value) {
40
+ return value;
41
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SessionState: {
17
+ readonly IdvCreated: "IdvCreated";
18
+ readonly IdvInitiated: "IdvInitiated";
19
+ readonly IdvAuthenticating: "IdvAuthenticating";
20
+ readonly IdvInProgress: "IdvInProgress";
21
+ readonly IdvSuccess: "IdvSuccess";
22
+ readonly IdvFailed: "IdvFailed";
23
+ };
24
+ export type SessionState = typeof SessionState[keyof typeof SessionState];
25
+ export declare function instanceOfSessionState(value: any): boolean;
26
+ export declare function SessionStateFromJSON(json: any): SessionState;
27
+ export declare function SessionStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionState;
28
+ export declare function SessionStateToJSON(value?: SessionState | null): any;
@@ -0,0 +1,44 @@
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
+ * @export
17
+ */
18
+ export const SessionState = {
19
+ IdvCreated: 'IdvCreated',
20
+ IdvInitiated: 'IdvInitiated',
21
+ IdvAuthenticating: 'IdvAuthenticating',
22
+ IdvInProgress: 'IdvInProgress',
23
+ IdvSuccess: 'IdvSuccess',
24
+ IdvFailed: 'IdvFailed'
25
+ };
26
+ export function instanceOfSessionState(value) {
27
+ for (const key in SessionState) {
28
+ if (Object.prototype.hasOwnProperty.call(SessionState, key)) {
29
+ if (SessionState[key] === value) {
30
+ return true;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+ export function SessionStateFromJSON(json) {
37
+ return SessionStateFromJSONTyped(json, false);
38
+ }
39
+ export function SessionStateFromJSONTyped(json, ignoreDiscriminator) {
40
+ return json;
41
+ }
42
+ export function SessionStateToJSON(value) {
43
+ return value;
44
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ValidationResult
16
+ */
17
+ export interface ValidationResult {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof ValidationResult
22
+ */
23
+ readonly memberNames: Array<string>;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ValidationResult
28
+ */
29
+ errorMessage?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ValidationResult interface.
33
+ */
34
+ export declare function instanceOfValidationResult(value: object): value is ValidationResult;
35
+ export declare function ValidationResultFromJSON(json: any): ValidationResult;
36
+ export declare function ValidationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResult;
37
+ export declare function ValidationResultToJSON(value?: Omit<ValidationResult, 'memberNames'> | null): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the ValidationResult interface.
16
+ */
17
+ export function instanceOfValidationResult(value) {
18
+ if (!('memberNames' in value) || value['memberNames'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ValidationResultFromJSON(json) {
23
+ return ValidationResultFromJSONTyped(json, false);
24
+ }
25
+ export function ValidationResultFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'memberNames': json['memberNames'],
31
+ 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
32
+ };
33
+ }
34
+ export function ValidationResultToJSON(value) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'errorMessage': value['errorMessage'],
40
+ };
41
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VerificationFailCode } from './VerificationFailCode';
13
+ /**
14
+ * A Verification contained within a Session
15
+ * @export
16
+ * @interface Verification
17
+ */
18
+ export interface Verification {
19
+ /**
20
+ * The identity provider that was used to perform the Verification, if any
21
+ * @type {string}
22
+ * @memberof Verification
23
+ */
24
+ provider?: string;
25
+ /**
26
+ * If the Verification is in state `VerificationFailed`, this field contains the reason for failure
27
+ * @type {VerificationFailCode}
28
+ * @memberof Verification
29
+ */
30
+ failCode?: VerificationFailCode;
31
+ }
32
+ /**
33
+ * Check if a given object implements the Verification interface.
34
+ */
35
+ export declare function instanceOfVerification(value: object): value is Verification;
36
+ export declare function VerificationFromJSON(json: any): Verification;
37
+ export declare function VerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Verification;
38
+ export declare function VerificationToJSON(value?: Verification | null): any;
@@ -0,0 +1,41 @@
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
+ import { VerificationFailCodeFromJSON, VerificationFailCodeToJSON, } from './VerificationFailCode';
15
+ /**
16
+ * Check if a given object implements the Verification interface.
17
+ */
18
+ export function instanceOfVerification(value) {
19
+ return true;
20
+ }
21
+ export function VerificationFromJSON(json) {
22
+ return VerificationFromJSONTyped(json, false);
23
+ }
24
+ export function VerificationFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'provider': json['provider'] == null ? undefined : json['provider'],
30
+ 'failCode': json['failCode'] == null ? undefined : VerificationFailCodeFromJSON(json['failCode']),
31
+ };
32
+ }
33
+ export function VerificationToJSON(value) {
34
+ if (value == null) {
35
+ return value;
36
+ }
37
+ return {
38
+ 'provider': value['provider'],
39
+ 'failCode': VerificationFailCodeToJSON(value['failCode']),
40
+ };
41
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const VerificationFailCode: {
17
+ readonly VerificationFailNone: "VerificationFailNone";
18
+ readonly VerificationFailInternal: "VerificationFailInternal";
19
+ readonly VerificationFailInvalidImage: "VerificationFailInvalidImage";
20
+ readonly VerificationFailInauthentic: "VerificationFailInauthentic";
21
+ readonly VerificationFailUnsupportedDocument: "VerificationFailUnsupportedDocument";
22
+ };
23
+ export type VerificationFailCode = typeof VerificationFailCode[keyof typeof VerificationFailCode];
24
+ export declare function instanceOfVerificationFailCode(value: any): boolean;
25
+ export declare function VerificationFailCodeFromJSON(json: any): VerificationFailCode;
26
+ export declare function VerificationFailCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationFailCode;
27
+ export declare function VerificationFailCodeToJSON(value?: VerificationFailCode | null): any;
@@ -0,0 +1,43 @@
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
+ * @export
17
+ */
18
+ export const VerificationFailCode = {
19
+ VerificationFailNone: 'VerificationFailNone',
20
+ VerificationFailInternal: 'VerificationFailInternal',
21
+ VerificationFailInvalidImage: 'VerificationFailInvalidImage',
22
+ VerificationFailInauthentic: 'VerificationFailInauthentic',
23
+ VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument'
24
+ };
25
+ export function instanceOfVerificationFailCode(value) {
26
+ for (const key in VerificationFailCode) {
27
+ if (Object.prototype.hasOwnProperty.call(VerificationFailCode, key)) {
28
+ if (VerificationFailCode[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ export function VerificationFailCodeFromJSON(json) {
36
+ return VerificationFailCodeFromJSONTyped(json, false);
37
+ }
38
+ export function VerificationFailCodeFromJSONTyped(json, ignoreDiscriminator) {
39
+ return json;
40
+ }
41
+ export function VerificationFailCodeToJSON(value) {
42
+ return value;
43
+ }
@@ -0,0 +1,27 @@
1
+ export * from './Address';
2
+ export * from './Attachments';
3
+ export * from './CancelSessionResponse';
4
+ export * from './CreateSessionRequest';
5
+ export * from './CreateSessionResponse';
6
+ export * from './DisclosedFields';
7
+ export * from './DisclosedFieldsRequest';
8
+ export * from './DocumentData';
9
+ export * from './FailureMessage';
10
+ export * from './GetAttachmentRequest';
11
+ export * from './GetSessionResponse';
12
+ export * from './GetSessionResultRequest';
13
+ export * from './GetSessionResultResponse';
14
+ export * from './IdentityData';
15
+ export * from './IdentityLookupResponse';
16
+ export * from './ListProvidersResponse';
17
+ export * from './ListSessionsResponse';
18
+ export * from './OrderDirection';
19
+ export * from './PersonData';
20
+ export * from './ProviderInfo';
21
+ export * from './Session';
22
+ export * from './SessionFailCode';
23
+ export * from './SessionOrdering';
24
+ export * from './SessionState';
25
+ export * from './ValidationResult';
26
+ export * from './Verification';
27
+ export * from './VerificationFailCode';
@@ -0,0 +1,29 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './Address';
4
+ export * from './Attachments';
5
+ export * from './CancelSessionResponse';
6
+ export * from './CreateSessionRequest';
7
+ export * from './CreateSessionResponse';
8
+ export * from './DisclosedFields';
9
+ export * from './DisclosedFieldsRequest';
10
+ export * from './DocumentData';
11
+ export * from './FailureMessage';
12
+ export * from './GetAttachmentRequest';
13
+ export * from './GetSessionResponse';
14
+ export * from './GetSessionResultRequest';
15
+ export * from './GetSessionResultResponse';
16
+ export * from './IdentityData';
17
+ export * from './IdentityLookupResponse';
18
+ export * from './ListProvidersResponse';
19
+ export * from './ListSessionsResponse';
20
+ export * from './OrderDirection';
21
+ export * from './PersonData';
22
+ export * from './ProviderInfo';
23
+ export * from './Session';
24
+ export * from './SessionFailCode';
25
+ export * from './SessionOrdering';
26
+ export * from './SessionState';
27
+ export * from './ValidationResult';
28
+ export * from './Verification';
29
+ export * from './VerificationFailCode';
@@ -0,0 +1,181 @@
1
+ /**
2
+ * Connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare const BASE_PATH: string;
13
+ export interface ConfigurationParameters {
14
+ basePath?: string;
15
+ fetchApi?: FetchAPI;
16
+ middleware?: Middleware[];
17
+ queryParamsStringify?: (params: HTTPQuery) => string;
18
+ username?: string;
19
+ password?: string;
20
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
21
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
+ headers?: HTTPHeaders;
23
+ credentials?: RequestCredentials;
24
+ }
25
+ export declare class Configuration {
26
+ private configuration;
27
+ constructor(configuration?: ConfigurationParameters);
28
+ set config(configuration: Configuration);
29
+ get basePath(): string;
30
+ get fetchApi(): FetchAPI | undefined;
31
+ get middleware(): Middleware[];
32
+ get queryParamsStringify(): (params: HTTPQuery) => string;
33
+ get username(): string | undefined;
34
+ get password(): string | undefined;
35
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
36
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
+ get headers(): HTTPHeaders | undefined;
38
+ get credentials(): RequestCredentials | undefined;
39
+ }
40
+ export declare const DefaultConfig: Configuration;
41
+ /**
42
+ * This is the base class for all generated API classes.
43
+ */
44
+ export declare class BaseAPI {
45
+ protected configuration: Configuration;
46
+ private static readonly jsonRegex;
47
+ private middleware;
48
+ constructor(configuration?: Configuration);
49
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
52
+ /**
53
+ * Check if the given MIME is a JSON MIME.
54
+ * JSON MIME examples:
55
+ * application/json
56
+ * application/json; charset=UTF8
57
+ * APPLICATION/JSON
58
+ * application/vnd.company+json
59
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
60
+ * @return True if the given MIME is JSON, false otherwise.
61
+ */
62
+ protected isJsonMime(mime: string | null | undefined): boolean;
63
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
64
+ private createFetchParams;
65
+ private fetchApi;
66
+ /**
67
+ * Create a shallow clone of `this` by constructing a new instance
68
+ * and then shallow cloning data members.
69
+ */
70
+ private clone;
71
+ }
72
+ export declare class ResponseError extends Error {
73
+ response: Response;
74
+ name: "ResponseError";
75
+ constructor(response: Response, msg?: string);
76
+ }
77
+ export declare class FetchError extends Error {
78
+ cause: Error;
79
+ name: "FetchError";
80
+ constructor(cause: Error, msg?: string);
81
+ }
82
+ export declare class RequiredError extends Error {
83
+ field: string;
84
+ name: "RequiredError";
85
+ constructor(field: string, msg?: string);
86
+ }
87
+ export declare const COLLECTION_FORMATS: {
88
+ csv: string;
89
+ ssv: string;
90
+ tsv: string;
91
+ pipes: string;
92
+ };
93
+ export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
+ export type Json = any;
95
+ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
+ export type HTTPHeaders = {
97
+ [key: string]: string;
98
+ };
99
+ export type HTTPQuery = {
100
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
101
+ };
102
+ export type HTTPBody = Json | FormData | URLSearchParams;
103
+ export type HTTPRequestInit = {
104
+ headers?: HTTPHeaders;
105
+ method: HTTPMethod;
106
+ credentials?: RequestCredentials;
107
+ body?: HTTPBody;
108
+ };
109
+ export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
+ export type InitOverrideFunction = (requestContext: {
111
+ init: HTTPRequestInit;
112
+ context: RequestOpts;
113
+ }) => Promise<RequestInit>;
114
+ export interface FetchParams {
115
+ url: string;
116
+ init: RequestInit;
117
+ }
118
+ export interface RequestOpts {
119
+ path: string;
120
+ method: HTTPMethod;
121
+ headers: HTTPHeaders;
122
+ query?: HTTPQuery;
123
+ body?: HTTPBody;
124
+ }
125
+ export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ export declare function mapValues(data: any, fn: (item: any) => any): {};
127
+ export declare function canConsumeForm(consumes: Consume[]): boolean;
128
+ export interface Consume {
129
+ contentType: string;
130
+ }
131
+ export interface RequestContext {
132
+ fetch: FetchAPI;
133
+ url: string;
134
+ init: RequestInit;
135
+ }
136
+ export interface ResponseContext {
137
+ fetch: FetchAPI;
138
+ url: string;
139
+ init: RequestInit;
140
+ response: Response;
141
+ }
142
+ export interface ErrorContext {
143
+ fetch: FetchAPI;
144
+ url: string;
145
+ init: RequestInit;
146
+ error: unknown;
147
+ response?: Response;
148
+ }
149
+ export interface Middleware {
150
+ pre?(context: RequestContext): Promise<FetchParams | void>;
151
+ post?(context: ResponseContext): Promise<Response | void>;
152
+ onError?(context: ErrorContext): Promise<Response | void>;
153
+ }
154
+ export interface ApiResponse<T> {
155
+ raw: Response;
156
+ value(): Promise<T>;
157
+ }
158
+ export interface ResponseTransformer<T> {
159
+ (json: any): T;
160
+ }
161
+ export declare class JSONApiResponse<T> {
162
+ raw: Response;
163
+ private transformer;
164
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
165
+ value(): Promise<T>;
166
+ }
167
+ export declare class VoidApiResponse {
168
+ raw: Response;
169
+ constructor(raw: Response);
170
+ value(): Promise<void>;
171
+ }
172
+ export declare class BlobApiResponse {
173
+ raw: Response;
174
+ constructor(raw: Response);
175
+ value(): Promise<Blob>;
176
+ }
177
+ export declare class TextApiResponse {
178
+ raw: Response;
179
+ constructor(raw: Response);
180
+ value(): Promise<string>;
181
+ }