@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.
- package/.openapi-generator/FILES +41 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/AttachmentsApi.d.ts +50 -0
- package/dist/apis/AttachmentsApi.js +66 -0
- package/dist/apis/NetworkApi.d.ts +70 -0
- package/dist/apis/NetworkApi.js +100 -0
- package/dist/apis/SessionsApi.d.ts +178 -0
- package/dist/apis/SessionsApi.js +252 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +21 -0
- package/dist/esm/apis/AttachmentsApi.d.ts +50 -0
- package/dist/esm/apis/AttachmentsApi.js +62 -0
- package/dist/esm/apis/NetworkApi.d.ts +70 -0
- package/dist/esm/apis/NetworkApi.js +96 -0
- package/dist/esm/apis/SessionsApi.d.ts +178 -0
- package/dist/esm/apis/SessionsApi.js +248 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +5 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Address.d.ts +73 -0
- package/dist/esm/models/Address.js +52 -0
- package/dist/esm/models/Attachments.d.ts +51 -0
- package/dist/esm/models/Attachments.js +44 -0
- package/dist/esm/models/CancelSessionResponse.d.ts +32 -0
- package/dist/esm/models/CancelSessionResponse.js +41 -0
- package/dist/esm/models/CreateSessionRequest.d.ts +52 -0
- package/dist/esm/models/CreateSessionRequest.js +43 -0
- package/dist/esm/models/CreateSessionResponse.d.ts +45 -0
- package/dist/esm/models/CreateSessionResponse.js +43 -0
- package/dist/esm/models/DisclosedFields.d.ts +97 -0
- package/dist/esm/models/DisclosedFields.js +84 -0
- package/dist/esm/models/DisclosedFieldsRequest.d.ts +97 -0
- package/dist/esm/models/DisclosedFieldsRequest.js +60 -0
- package/dist/esm/models/DocumentData.d.ts +61 -0
- package/dist/esm/models/DocumentData.js +48 -0
- package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.d.ts +31 -0
- package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.js +40 -0
- package/dist/esm/models/ExchangeResultsKeyRequest.d.ts +31 -0
- package/dist/esm/models/ExchangeResultsKeyRequest.js +40 -0
- package/dist/esm/models/ExchangeResultsKeyResponse.d.ts +39 -0
- package/dist/esm/models/ExchangeResultsKeyResponse.js +44 -0
- package/dist/esm/models/FailureMessage.d.ts +31 -0
- package/dist/esm/models/FailureMessage.js +40 -0
- package/dist/esm/models/GetSessionResponse.d.ts +32 -0
- package/dist/esm/models/GetSessionResponse.js +41 -0
- package/dist/esm/models/IdentityData.d.ts +52 -0
- package/dist/esm/models/IdentityData.js +47 -0
- package/dist/esm/models/IdentityLookupResponse.d.ts +31 -0
- package/dist/esm/models/IdentityLookupResponse.js +40 -0
- package/dist/esm/models/ListProvidersResponse.d.ts +32 -0
- package/dist/esm/models/ListProvidersResponse.js +41 -0
- package/dist/esm/models/ListSessionsResponse.d.ts +44 -0
- package/dist/esm/models/ListSessionsResponse.js +49 -0
- package/dist/esm/models/OrderDirection.d.ts +24 -0
- package/dist/esm/models/OrderDirection.js +40 -0
- package/dist/esm/models/PersonData.d.ts +82 -0
- package/dist/esm/models/PersonData.js +55 -0
- package/dist/esm/models/ProviderInfo.d.ts +43 -0
- package/dist/esm/models/ProviderInfo.js +48 -0
- package/dist/esm/models/Session.d.ts +71 -0
- package/dist/esm/models/Session.js +66 -0
- package/dist/esm/models/SessionFailCode.d.ts +29 -0
- package/dist/esm/models/SessionFailCode.js +45 -0
- package/dist/esm/models/SessionOrdering.d.ts +25 -0
- package/dist/esm/models/SessionOrdering.js +41 -0
- package/dist/esm/models/SessionState.d.ts +28 -0
- package/dist/esm/models/SessionState.js +44 -0
- package/dist/esm/models/ValidationResult.d.ts +37 -0
- package/dist/esm/models/ValidationResult.js +41 -0
- package/dist/esm/models/Verification.d.ts +38 -0
- package/dist/esm/models/Verification.js +41 -0
- package/dist/esm/models/VerificationFailCode.d.ts +27 -0
- package/dist/esm/models/VerificationFailCode.js +43 -0
- package/dist/esm/models/index.d.ts +27 -0
- package/dist/esm/models/index.js +29 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +326 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Address.d.ts +73 -0
- package/dist/models/Address.js +58 -0
- package/dist/models/Attachments.d.ts +51 -0
- package/dist/models/Attachments.js +50 -0
- package/dist/models/CancelSessionResponse.d.ts +32 -0
- package/dist/models/CancelSessionResponse.js +47 -0
- package/dist/models/CreateSessionRequest.d.ts +52 -0
- package/dist/models/CreateSessionRequest.js +49 -0
- package/dist/models/CreateSessionResponse.d.ts +45 -0
- package/dist/models/CreateSessionResponse.js +49 -0
- package/dist/models/DisclosedFields.d.ts +97 -0
- package/dist/models/DisclosedFields.js +90 -0
- package/dist/models/DisclosedFieldsRequest.d.ts +97 -0
- package/dist/models/DisclosedFieldsRequest.js +66 -0
- package/dist/models/DocumentData.d.ts +61 -0
- package/dist/models/DocumentData.js +54 -0
- package/dist/models/ExchangeAttachmentAccessKeyRequest.d.ts +31 -0
- package/dist/models/ExchangeAttachmentAccessKeyRequest.js +46 -0
- package/dist/models/ExchangeResultsKeyRequest.d.ts +31 -0
- package/dist/models/ExchangeResultsKeyRequest.js +46 -0
- package/dist/models/ExchangeResultsKeyResponse.d.ts +39 -0
- package/dist/models/ExchangeResultsKeyResponse.js +50 -0
- package/dist/models/FailureMessage.d.ts +31 -0
- package/dist/models/FailureMessage.js +46 -0
- package/dist/models/GetSessionResponse.d.ts +32 -0
- package/dist/models/GetSessionResponse.js +47 -0
- package/dist/models/IdentityData.d.ts +52 -0
- package/dist/models/IdentityData.js +53 -0
- package/dist/models/IdentityLookupResponse.d.ts +31 -0
- package/dist/models/IdentityLookupResponse.js +46 -0
- package/dist/models/ListProvidersResponse.d.ts +32 -0
- package/dist/models/ListProvidersResponse.js +47 -0
- package/dist/models/ListSessionsResponse.d.ts +44 -0
- package/dist/models/ListSessionsResponse.js +55 -0
- package/dist/models/OrderDirection.d.ts +24 -0
- package/dist/models/OrderDirection.js +47 -0
- package/dist/models/PersonData.d.ts +82 -0
- package/dist/models/PersonData.js +61 -0
- package/dist/models/ProviderInfo.d.ts +43 -0
- package/dist/models/ProviderInfo.js +54 -0
- package/dist/models/Session.d.ts +71 -0
- package/dist/models/Session.js +72 -0
- package/dist/models/SessionFailCode.d.ts +29 -0
- package/dist/models/SessionFailCode.js +52 -0
- package/dist/models/SessionOrdering.d.ts +25 -0
- package/dist/models/SessionOrdering.js +48 -0
- package/dist/models/SessionState.d.ts +28 -0
- package/dist/models/SessionState.js +51 -0
- package/dist/models/ValidationResult.d.ts +37 -0
- package/dist/models/ValidationResult.js +47 -0
- package/dist/models/Verification.d.ts +38 -0
- package/dist/models/Verification.js +47 -0
- package/dist/models/VerificationFailCode.d.ts +27 -0
- package/dist/models/VerificationFailCode.js +50 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +45 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +341 -0
- package/package.json +21 -0
- package/src/apis/AttachmentsApi.ts +100 -0
- package/src/apis/NetworkApi.ts +156 -0
- package/src/apis/SessionsApi.ts +444 -0
- package/src/apis/index.ts +5 -0
- package/src/index.ts +5 -0
- package/src/models/Address.ts +116 -0
- package/src/models/Attachments.ts +86 -0
- package/src/models/CancelSessionResponse.ts +68 -0
- package/src/models/CreateSessionRequest.ts +91 -0
- package/src/models/CreateSessionResponse.ts +83 -0
- package/src/models/DisclosedFields.ts +160 -0
- package/src/models/DisclosedFieldsRequest.ts +148 -0
- package/src/models/DocumentData.ts +100 -0
- package/src/models/ExchangeAttachmentAccessKeyRequest.ts +61 -0
- package/src/models/ExchangeResultsKeyRequest.ts +61 -0
- package/src/models/ExchangeResultsKeyResponse.ts +82 -0
- package/src/models/FailureMessage.ts +61 -0
- package/src/models/GetSessionResponse.ts +68 -0
- package/src/models/IdentityData.ts +103 -0
- package/src/models/IdentityLookupResponse.ts +61 -0
- package/src/models/ListProvidersResponse.ts +68 -0
- package/src/models/ListSessionsResponse.ts +86 -0
- package/src/models/OrderDirection.ts +49 -0
- package/src/models/PersonData.ts +133 -0
- package/src/models/ProviderInfo.ts +79 -0
- package/src/models/Session.ts +139 -0
- package/src/models/SessionFailCode.ts +54 -0
- package/src/models/SessionOrdering.ts +50 -0
- package/src/models/SessionState.ts +53 -0
- package/src/models/ValidationResult.ts +68 -0
- package/src/models/Verification.ts +75 -0
- package/src/models/VerificationFailCode.ts +52 -0
- package/src/models/index.ts +29 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.esm.json +7 -0
- 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
|
+
|