@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.
- package/dist/apis/AttachmentsApi.d.ts +53 -0
- package/dist/apis/AttachmentsApi.js +68 -0
- package/dist/apis/NetworkApi.d.ts +76 -0
- package/dist/apis/NetworkApi.js +104 -0
- package/dist/apis/SessionsApi.d.ts +193 -0
- package/dist/apis/SessionsApi.js +262 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +21 -0
- package/dist/esm/apis/AttachmentsApi.d.ts +53 -0
- package/dist/esm/apis/AttachmentsApi.js +64 -0
- package/dist/esm/apis/NetworkApi.d.ts +76 -0
- package/dist/esm/apis/NetworkApi.js +100 -0
- package/dist/esm/apis/SessionsApi.d.ts +193 -0
- package/dist/esm/apis/SessionsApi.js +258 -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 +43 -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/FailureMessage.d.ts +31 -0
- package/dist/esm/models/FailureMessage.js +40 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +31 -0
- package/dist/esm/models/GetAttachmentRequest.js +40 -0
- package/dist/esm/models/GetSessionResponse.d.ts +32 -0
- package/dist/esm/models/GetSessionResponse.js +41 -0
- package/dist/esm/models/GetSessionResultRequest.d.ts +31 -0
- package/dist/esm/models/GetSessionResultRequest.js +40 -0
- package/dist/esm/models/GetSessionResultResponse.d.ts +39 -0
- package/dist/esm/models/GetSessionResultResponse.js +44 -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 +43 -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/FailureMessage.d.ts +31 -0
- package/dist/models/FailureMessage.js +46 -0
- package/dist/models/GetAttachmentRequest.d.ts +31 -0
- package/dist/models/GetAttachmentRequest.js +46 -0
- package/dist/models/GetSessionResponse.d.ts +32 -0
- package/dist/models/GetSessionResponse.js +47 -0
- package/dist/models/GetSessionResultRequest.d.ts +31 -0
- package/dist/models/GetSessionResultRequest.js +46 -0
- package/dist/models/GetSessionResultResponse.d.ts +39 -0
- package/dist/models/GetSessionResultResponse.js +50 -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 +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
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 { Session } from './Session';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListSessionsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListSessionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Session>}
|
|
22
|
+
* @memberof ListSessionsResponse
|
|
23
|
+
*/
|
|
24
|
+
sessions: Array<Session>;
|
|
25
|
+
/**
|
|
26
|
+
* The total number of sessions tied to your account
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListSessionsResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Whether there are additional pages of sessions to retrieve
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof ListSessionsResponse
|
|
35
|
+
*/
|
|
36
|
+
more: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ListSessionsResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfListSessionsResponse(value: object): value is ListSessionsResponse;
|
|
42
|
+
export declare function ListSessionsResponseFromJSON(json: any): ListSessionsResponse;
|
|
43
|
+
export declare function ListSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSessionsResponse;
|
|
44
|
+
export declare function ListSessionsResponseToJSON(value?: ListSessionsResponse | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListSessionsResponse = instanceOfListSessionsResponse;
|
|
17
|
+
exports.ListSessionsResponseFromJSON = ListSessionsResponseFromJSON;
|
|
18
|
+
exports.ListSessionsResponseFromJSONTyped = ListSessionsResponseFromJSONTyped;
|
|
19
|
+
exports.ListSessionsResponseToJSON = ListSessionsResponseToJSON;
|
|
20
|
+
const Session_1 = require("./Session");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ListSessionsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfListSessionsResponse(value) {
|
|
25
|
+
if (!('sessions' in value) || value['sessions'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('more' in value) || value['more'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ListSessionsResponseFromJSON(json) {
|
|
34
|
+
return ListSessionsResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ListSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'sessions': (json['sessions'].map(Session_1.SessionFromJSON)),
|
|
42
|
+
'total': json['total'],
|
|
43
|
+
'more': json['more'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ListSessionsResponseToJSON(value) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'sessions': (value['sessions'].map(Session_1.SessionToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'more': value['more'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 OrderDirection: {
|
|
17
|
+
readonly Ascending: "Ascending";
|
|
18
|
+
readonly Descending: "Descending";
|
|
19
|
+
};
|
|
20
|
+
export type OrderDirection = typeof OrderDirection[keyof typeof OrderDirection];
|
|
21
|
+
export declare function instanceOfOrderDirection(value: any): boolean;
|
|
22
|
+
export declare function OrderDirectionFromJSON(json: any): OrderDirection;
|
|
23
|
+
export declare function OrderDirectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDirection;
|
|
24
|
+
export declare function OrderDirectionToJSON(value?: OrderDirection | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OrderDirection = void 0;
|
|
17
|
+
exports.instanceOfOrderDirection = instanceOfOrderDirection;
|
|
18
|
+
exports.OrderDirectionFromJSON = OrderDirectionFromJSON;
|
|
19
|
+
exports.OrderDirectionFromJSONTyped = OrderDirectionFromJSONTyped;
|
|
20
|
+
exports.OrderDirectionToJSON = OrderDirectionToJSON;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OrderDirection = {
|
|
26
|
+
Ascending: 'Ascending',
|
|
27
|
+
Descending: 'Descending'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfOrderDirection(value) {
|
|
30
|
+
for (const key in exports.OrderDirection) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.OrderDirection, key)) {
|
|
32
|
+
if (exports.OrderDirection[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function OrderDirectionFromJSON(json) {
|
|
40
|
+
return OrderDirectionFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function OrderDirectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
function OrderDirectionToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { Address } from './Address';
|
|
13
|
+
/**
|
|
14
|
+
* Identity information for the individual being verified
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PersonData
|
|
17
|
+
*/
|
|
18
|
+
export interface PersonData {
|
|
19
|
+
/**
|
|
20
|
+
* Given (first) name of the individual
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PersonData
|
|
23
|
+
*/
|
|
24
|
+
givenName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Family (last) name of the individual
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PersonData
|
|
29
|
+
*/
|
|
30
|
+
familyName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Middle name of the individual
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PersonData
|
|
35
|
+
*/
|
|
36
|
+
middleName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The individual's full name as a single string.
|
|
39
|
+
*
|
|
40
|
+
* Useful for names which do not fit into a "first middle last" structure.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof PersonData
|
|
43
|
+
*/
|
|
44
|
+
fullName?: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PersonData
|
|
49
|
+
*/
|
|
50
|
+
nationality?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PersonData
|
|
55
|
+
*/
|
|
56
|
+
gender?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof PersonData
|
|
61
|
+
*/
|
|
62
|
+
phoneNumber?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Address information for an individual
|
|
65
|
+
* @type {Address}
|
|
66
|
+
* @memberof PersonData
|
|
67
|
+
*/
|
|
68
|
+
address?: Address;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof PersonData
|
|
73
|
+
*/
|
|
74
|
+
dateOfBirth?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the PersonData interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfPersonData(value: object): value is PersonData;
|
|
80
|
+
export declare function PersonDataFromJSON(json: any): PersonData;
|
|
81
|
+
export declare function PersonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonData;
|
|
82
|
+
export declare function PersonDataToJSON(value?: PersonData | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPersonData = instanceOfPersonData;
|
|
17
|
+
exports.PersonDataFromJSON = PersonDataFromJSON;
|
|
18
|
+
exports.PersonDataFromJSONTyped = PersonDataFromJSONTyped;
|
|
19
|
+
exports.PersonDataToJSON = PersonDataToJSON;
|
|
20
|
+
const Address_1 = require("./Address");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PersonData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPersonData(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PersonDataFromJSON(json) {
|
|
28
|
+
return PersonDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PersonDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'givenName': json['givenName'] == null ? undefined : json['givenName'],
|
|
36
|
+
'familyName': json['familyName'] == null ? undefined : json['familyName'],
|
|
37
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
38
|
+
'fullName': json['fullName'] == null ? undefined : json['fullName'],
|
|
39
|
+
'nationality': json['nationality'] == null ? undefined : json['nationality'],
|
|
40
|
+
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
41
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
42
|
+
'address': json['address'] == null ? undefined : (0, Address_1.AddressFromJSON)(json['address']),
|
|
43
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : json['dateOfBirth'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PersonDataToJSON(value) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'givenName': value['givenName'],
|
|
52
|
+
'familyName': value['familyName'],
|
|
53
|
+
'middleName': value['middleName'],
|
|
54
|
+
'fullName': value['fullName'],
|
|
55
|
+
'nationality': value['nationality'],
|
|
56
|
+
'gender': value['gender'],
|
|
57
|
+
'phoneNumber': value['phoneNumber'],
|
|
58
|
+
'address': (0, Address_1.AddressToJSON)(value['address']),
|
|
59
|
+
'dateOfBirth': value['dateOfBirth'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* A provider that can be specified when creating a `Session`
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProviderInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface ProviderInfo {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the provider
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProviderInfo
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The friendly, human-readable name of the provider
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProviderInfo
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* A URL pointing to the provider's logo
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProviderInfo
|
|
34
|
+
*/
|
|
35
|
+
logoUrl: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProviderInfo interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfProviderInfo(value: object): value is ProviderInfo;
|
|
41
|
+
export declare function ProviderInfoFromJSON(json: any): ProviderInfo;
|
|
42
|
+
export declare function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInfo;
|
|
43
|
+
export declare function ProviderInfoToJSON(value?: ProviderInfo | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProviderInfo = instanceOfProviderInfo;
|
|
17
|
+
exports.ProviderInfoFromJSON = ProviderInfoFromJSON;
|
|
18
|
+
exports.ProviderInfoFromJSONTyped = ProviderInfoFromJSONTyped;
|
|
19
|
+
exports.ProviderInfoToJSON = ProviderInfoToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ProviderInfo interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfProviderInfo(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ProviderInfoFromJSON(json) {
|
|
33
|
+
return ProviderInfoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'logoUrl': json['logoUrl'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function ProviderInfoToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'logoUrl': value['logoUrl'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { SessionState } from './SessionState';
|
|
13
|
+
import type { DisclosedFields } from './DisclosedFields';
|
|
14
|
+
import type { SessionFailCode } from './SessionFailCode';
|
|
15
|
+
import type { Verification } from './Verification';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Session
|
|
20
|
+
*/
|
|
21
|
+
export interface Session {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Session
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The state of the session
|
|
30
|
+
* @type {SessionState}
|
|
31
|
+
* @memberof Session
|
|
32
|
+
*/
|
|
33
|
+
state: SessionState;
|
|
34
|
+
/**
|
|
35
|
+
* If the session is in state `IdvFailed`, this field contains the reason for failure.
|
|
36
|
+
* @type {SessionFailCode}
|
|
37
|
+
* @memberof Session
|
|
38
|
+
*/
|
|
39
|
+
failCode?: SessionFailCode;
|
|
40
|
+
/**
|
|
41
|
+
* The underlying verification for this Session
|
|
42
|
+
* @type {Verification}
|
|
43
|
+
* @memberof Session
|
|
44
|
+
*/
|
|
45
|
+
verification: Verification;
|
|
46
|
+
/**
|
|
47
|
+
* The fields that were requested to be disclosed when the Session was created
|
|
48
|
+
* @type {DisclosedFields}
|
|
49
|
+
* @memberof Session
|
|
50
|
+
*/
|
|
51
|
+
disclosedFields: DisclosedFields;
|
|
52
|
+
/**
|
|
53
|
+
* The unix timestamp, in seconds, when this session was created
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof Session
|
|
56
|
+
*/
|
|
57
|
+
created: number;
|
|
58
|
+
/**
|
|
59
|
+
* The unix timestamp, in seconds, when this session's state last changed
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Session
|
|
62
|
+
*/
|
|
63
|
+
updated: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the Session interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfSession(value: object): value is Session;
|
|
69
|
+
export declare function SessionFromJSON(json: any): Session;
|
|
70
|
+
export declare function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session;
|
|
71
|
+
export declare function SessionToJSON(value?: Session | null): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSession = instanceOfSession;
|
|
17
|
+
exports.SessionFromJSON = SessionFromJSON;
|
|
18
|
+
exports.SessionFromJSONTyped = SessionFromJSONTyped;
|
|
19
|
+
exports.SessionToJSON = SessionToJSON;
|
|
20
|
+
const SessionState_1 = require("./SessionState");
|
|
21
|
+
const DisclosedFields_1 = require("./DisclosedFields");
|
|
22
|
+
const SessionFailCode_1 = require("./SessionFailCode");
|
|
23
|
+
const Verification_1 = require("./Verification");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the Session interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfSession(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('verification' in value) || value['verification'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('disclosedFields' in value) || value['disclosedFields'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function SessionFromJSON(json) {
|
|
43
|
+
return SessionFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'state': (0, SessionState_1.SessionStateFromJSON)(json['state']),
|
|
52
|
+
'failCode': json['failCode'] == null ? undefined : (0, SessionFailCode_1.SessionFailCodeFromJSON)(json['failCode']),
|
|
53
|
+
'verification': (0, Verification_1.VerificationFromJSON)(json['verification']),
|
|
54
|
+
'disclosedFields': (0, DisclosedFields_1.DisclosedFieldsFromJSON)(json['disclosedFields']),
|
|
55
|
+
'created': json['created'],
|
|
56
|
+
'updated': json['updated'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function SessionToJSON(value) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'state': (0, SessionState_1.SessionStateToJSON)(value['state']),
|
|
66
|
+
'failCode': (0, SessionFailCode_1.SessionFailCodeToJSON)(value['failCode']),
|
|
67
|
+
'verification': (0, Verification_1.VerificationToJSON)(value['verification']),
|
|
68
|
+
'disclosedFields': (0, DisclosedFields_1.DisclosedFieldsToJSON)(value['disclosedFields']),
|
|
69
|
+
'created': value['created'],
|
|
70
|
+
'updated': value['updated'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 SessionFailCode: {
|
|
17
|
+
readonly SessionFailNone: "SessionFailNone";
|
|
18
|
+
readonly SessionFailInternal: "SessionFailInternal";
|
|
19
|
+
readonly SessionFailVerificationFailed: "SessionFailVerificationFailed";
|
|
20
|
+
readonly SessionFailAuthentication: "SessionFailAuthentication";
|
|
21
|
+
readonly SessionFailExpired: "SessionFailExpired";
|
|
22
|
+
readonly SessionFailUserCanceled: "SessionFailUserCanceled";
|
|
23
|
+
readonly SessionFailRpCanceled: "SessionFailRpCanceled";
|
|
24
|
+
};
|
|
25
|
+
export type SessionFailCode = typeof SessionFailCode[keyof typeof SessionFailCode];
|
|
26
|
+
export declare function instanceOfSessionFailCode(value: any): boolean;
|
|
27
|
+
export declare function SessionFailCodeFromJSON(json: any): SessionFailCode;
|
|
28
|
+
export declare function SessionFailCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionFailCode;
|
|
29
|
+
export declare function SessionFailCodeToJSON(value?: SessionFailCode | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SessionFailCode = void 0;
|
|
17
|
+
exports.instanceOfSessionFailCode = instanceOfSessionFailCode;
|
|
18
|
+
exports.SessionFailCodeFromJSON = SessionFailCodeFromJSON;
|
|
19
|
+
exports.SessionFailCodeFromJSONTyped = SessionFailCodeFromJSONTyped;
|
|
20
|
+
exports.SessionFailCodeToJSON = SessionFailCodeToJSON;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SessionFailCode = {
|
|
26
|
+
SessionFailNone: 'SessionFailNone',
|
|
27
|
+
SessionFailInternal: 'SessionFailInternal',
|
|
28
|
+
SessionFailVerificationFailed: 'SessionFailVerificationFailed',
|
|
29
|
+
SessionFailAuthentication: 'SessionFailAuthentication',
|
|
30
|
+
SessionFailExpired: 'SessionFailExpired',
|
|
31
|
+
SessionFailUserCanceled: 'SessionFailUserCanceled',
|
|
32
|
+
SessionFailRpCanceled: 'SessionFailRpCanceled'
|
|
33
|
+
};
|
|
34
|
+
function instanceOfSessionFailCode(value) {
|
|
35
|
+
for (const key in exports.SessionFailCode) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(exports.SessionFailCode, key)) {
|
|
37
|
+
if (exports.SessionFailCode[key] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function SessionFailCodeFromJSON(json) {
|
|
45
|
+
return SessionFailCodeFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SessionFailCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
function SessionFailCodeToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -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;
|