@trinsic/api 0.6.0 → 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,48 @@
|
|
|
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.SessionOrdering = void 0;
|
|
17
|
+
exports.instanceOfSessionOrdering = instanceOfSessionOrdering;
|
|
18
|
+
exports.SessionOrderingFromJSON = SessionOrderingFromJSON;
|
|
19
|
+
exports.SessionOrderingFromJSONTyped = SessionOrderingFromJSONTyped;
|
|
20
|
+
exports.SessionOrderingToJSON = SessionOrderingToJSON;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SessionOrdering = {
|
|
26
|
+
Created: 'Created',
|
|
27
|
+
Updated: 'Updated',
|
|
28
|
+
State: 'State'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfSessionOrdering(value) {
|
|
31
|
+
for (const key in exports.SessionOrdering) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.SessionOrdering, key)) {
|
|
33
|
+
if (exports.SessionOrdering[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function SessionOrderingFromJSON(json) {
|
|
41
|
+
return SessionOrderingFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SessionOrderingFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function SessionOrderingToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
@@ -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,51 @@
|
|
|
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.SessionState = void 0;
|
|
17
|
+
exports.instanceOfSessionState = instanceOfSessionState;
|
|
18
|
+
exports.SessionStateFromJSON = SessionStateFromJSON;
|
|
19
|
+
exports.SessionStateFromJSONTyped = SessionStateFromJSONTyped;
|
|
20
|
+
exports.SessionStateToJSON = SessionStateToJSON;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SessionState = {
|
|
26
|
+
IdvCreated: 'IdvCreated',
|
|
27
|
+
IdvInitiated: 'IdvInitiated',
|
|
28
|
+
IdvAuthenticating: 'IdvAuthenticating',
|
|
29
|
+
IdvInProgress: 'IdvInProgress',
|
|
30
|
+
IdvSuccess: 'IdvSuccess',
|
|
31
|
+
IdvFailed: 'IdvFailed'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfSessionState(value) {
|
|
34
|
+
for (const key in exports.SessionState) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.SessionState, key)) {
|
|
36
|
+
if (exports.SessionState[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function SessionStateFromJSON(json) {
|
|
44
|
+
return SessionStateFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SessionStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function SessionStateToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -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,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.instanceOfValidationResult = instanceOfValidationResult;
|
|
17
|
+
exports.ValidationResultFromJSON = ValidationResultFromJSON;
|
|
18
|
+
exports.ValidationResultFromJSONTyped = ValidationResultFromJSONTyped;
|
|
19
|
+
exports.ValidationResultToJSON = ValidationResultToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ValidationResult interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfValidationResult(value) {
|
|
24
|
+
if (!('memberNames' in value) || value['memberNames'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ValidationResultFromJSON(json) {
|
|
29
|
+
return ValidationResultFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ValidationResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'memberNames': json['memberNames'],
|
|
37
|
+
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ValidationResultToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'errorMessage': value['errorMessage'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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,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.instanceOfVerification = instanceOfVerification;
|
|
17
|
+
exports.VerificationFromJSON = VerificationFromJSON;
|
|
18
|
+
exports.VerificationFromJSONTyped = VerificationFromJSONTyped;
|
|
19
|
+
exports.VerificationToJSON = VerificationToJSON;
|
|
20
|
+
const VerificationFailCode_1 = require("./VerificationFailCode");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Verification interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVerification(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VerificationFromJSON(json) {
|
|
28
|
+
return VerificationFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VerificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
36
|
+
'failCode': json['failCode'] == null ? undefined : (0, VerificationFailCode_1.VerificationFailCodeFromJSON)(json['failCode']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function VerificationToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'provider': value['provider'],
|
|
45
|
+
'failCode': (0, VerificationFailCode_1.VerificationFailCodeToJSON)(value['failCode']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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,50 @@
|
|
|
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.VerificationFailCode = void 0;
|
|
17
|
+
exports.instanceOfVerificationFailCode = instanceOfVerificationFailCode;
|
|
18
|
+
exports.VerificationFailCodeFromJSON = VerificationFailCodeFromJSON;
|
|
19
|
+
exports.VerificationFailCodeFromJSONTyped = VerificationFailCodeFromJSONTyped;
|
|
20
|
+
exports.VerificationFailCodeToJSON = VerificationFailCodeToJSON;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.VerificationFailCode = {
|
|
26
|
+
VerificationFailNone: 'VerificationFailNone',
|
|
27
|
+
VerificationFailInternal: 'VerificationFailInternal',
|
|
28
|
+
VerificationFailInvalidImage: 'VerificationFailInvalidImage',
|
|
29
|
+
VerificationFailInauthentic: 'VerificationFailInauthentic',
|
|
30
|
+
VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfVerificationFailCode(value) {
|
|
33
|
+
for (const key in exports.VerificationFailCode) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.VerificationFailCode, key)) {
|
|
35
|
+
if (exports.VerificationFailCode[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function VerificationFailCodeFromJSON(json) {
|
|
43
|
+
return VerificationFailCodeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function VerificationFailCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function VerificationFailCodeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -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,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./Address"), exports);
|
|
20
|
+
__exportStar(require("./Attachments"), exports);
|
|
21
|
+
__exportStar(require("./CancelSessionResponse"), exports);
|
|
22
|
+
__exportStar(require("./CreateSessionRequest"), exports);
|
|
23
|
+
__exportStar(require("./CreateSessionResponse"), exports);
|
|
24
|
+
__exportStar(require("./DisclosedFields"), exports);
|
|
25
|
+
__exportStar(require("./DisclosedFieldsRequest"), exports);
|
|
26
|
+
__exportStar(require("./DocumentData"), exports);
|
|
27
|
+
__exportStar(require("./FailureMessage"), exports);
|
|
28
|
+
__exportStar(require("./GetAttachmentRequest"), exports);
|
|
29
|
+
__exportStar(require("./GetSessionResponse"), exports);
|
|
30
|
+
__exportStar(require("./GetSessionResultRequest"), exports);
|
|
31
|
+
__exportStar(require("./GetSessionResultResponse"), exports);
|
|
32
|
+
__exportStar(require("./IdentityData"), exports);
|
|
33
|
+
__exportStar(require("./IdentityLookupResponse"), exports);
|
|
34
|
+
__exportStar(require("./ListProvidersResponse"), exports);
|
|
35
|
+
__exportStar(require("./ListSessionsResponse"), exports);
|
|
36
|
+
__exportStar(require("./OrderDirection"), exports);
|
|
37
|
+
__exportStar(require("./PersonData"), exports);
|
|
38
|
+
__exportStar(require("./ProviderInfo"), exports);
|
|
39
|
+
__exportStar(require("./Session"), exports);
|
|
40
|
+
__exportStar(require("./SessionFailCode"), exports);
|
|
41
|
+
__exportStar(require("./SessionOrdering"), exports);
|
|
42
|
+
__exportStar(require("./SessionState"), exports);
|
|
43
|
+
__exportStar(require("./ValidationResult"), exports);
|
|
44
|
+
__exportStar(require("./Verification"), exports);
|
|
45
|
+
__exportStar(require("./VerificationFailCode"), exports);
|
|
@@ -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
|
+
}
|