@trinsic/api 2.2.0-alpha1 → 2.3.0-alpha1
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 +16 -0
- package/dist/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
- package/dist/apis/EnvironmentRedirectUrisApi.js +145 -0
- package/dist/apis/NetworkApi.d.ts +9 -2
- package/dist/apis/NetworkApi.js +4 -0
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +10 -10
- package/dist/apis/VerificationProfilesApi.d.ts +117 -0
- package/dist/apis/VerificationProfilesApi.js +183 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
- package/dist/esm/apis/EnvironmentRedirectUrisApi.js +141 -0
- package/dist/esm/apis/NetworkApi.d.ts +9 -2
- package/dist/esm/apis/NetworkApi.js +4 -0
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +10 -10
- package/dist/esm/apis/VerificationProfilesApi.d.ts +117 -0
- package/dist/esm/apis/VerificationProfilesApi.js +179 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AddRedirectUriResponse.d.ts +32 -0
- package/dist/esm/models/AddRedirectUriResponse.js +43 -0
- package/dist/esm/models/ContractField.d.ts +7 -0
- package/dist/esm/models/ContractField.js +4 -0
- package/dist/esm/models/ContractIdentifierField.d.ts +45 -0
- package/dist/esm/models/ContractIdentifierField.js +52 -0
- package/dist/esm/models/CreateVerificationProfileResponse.d.ts +32 -0
- package/dist/esm/models/CreateVerificationProfileResponse.js +43 -0
- package/dist/esm/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
- package/dist/esm/models/EnvironmentRedirectUrisAddRequest.js +43 -0
- package/dist/esm/models/FaydaProviderOutput.d.ts +35 -0
- package/dist/esm/models/FaydaProviderOutput.js +41 -0
- package/dist/esm/models/Identifier.d.ts +44 -0
- package/dist/esm/models/Identifier.js +51 -0
- package/dist/esm/models/IdentityData.d.ts +14 -0
- package/dist/esm/models/IdentityData.js +8 -0
- package/dist/esm/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
- package/dist/esm/models/ListEnvironmentRedirectUrisResponse.js +48 -0
- package/dist/esm/models/ListVerificationProfilesResponse.d.ts +39 -0
- package/dist/esm/models/ListVerificationProfilesResponse.js +48 -0
- package/dist/esm/models/MexicoCurpProviderOutput.d.ts +44 -0
- package/dist/esm/models/MexicoCurpProviderOutput.js +41 -0
- package/dist/esm/models/ProviderContract.d.ts +7 -0
- package/dist/esm/models/ProviderContract.js +3 -0
- package/dist/esm/models/ProviderOutput.d.ts +47 -0
- package/dist/esm/models/ProviderOutput.js +48 -0
- package/dist/esm/models/RedirectUriResponse.d.ts +38 -0
- package/dist/esm/models/RedirectUriResponse.js +47 -0
- package/dist/esm/models/SpidBillingInformation.d.ts +48 -0
- package/dist/esm/models/SpidBillingInformation.js +51 -0
- package/dist/esm/models/SpidInput.d.ts +11 -0
- package/dist/esm/models/SpidInput.js +2 -0
- package/dist/esm/models/SpidProviderOutput.d.ts +62 -0
- package/dist/esm/models/SpidProviderOutput.js +50 -0
- package/dist/esm/models/VerificationProfileResponse.d.ts +62 -0
- package/dist/esm/models/VerificationProfileResponse.js +63 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/AddRedirectUriResponse.d.ts +32 -0
- package/dist/models/AddRedirectUriResponse.js +50 -0
- package/dist/models/ContractField.d.ts +7 -0
- package/dist/models/ContractField.js +4 -0
- package/dist/models/ContractIdentifierField.d.ts +45 -0
- package/dist/models/ContractIdentifierField.js +59 -0
- package/dist/models/CreateVerificationProfileResponse.d.ts +32 -0
- package/dist/models/CreateVerificationProfileResponse.js +50 -0
- package/dist/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
- package/dist/models/EnvironmentRedirectUrisAddRequest.js +50 -0
- package/dist/models/FaydaProviderOutput.d.ts +35 -0
- package/dist/models/FaydaProviderOutput.js +48 -0
- package/dist/models/Identifier.d.ts +44 -0
- package/dist/models/Identifier.js +58 -0
- package/dist/models/IdentityData.d.ts +14 -0
- package/dist/models/IdentityData.js +8 -0
- package/dist/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
- package/dist/models/ListEnvironmentRedirectUrisResponse.js +55 -0
- package/dist/models/ListVerificationProfilesResponse.d.ts +39 -0
- package/dist/models/ListVerificationProfilesResponse.js +55 -0
- package/dist/models/MexicoCurpProviderOutput.d.ts +44 -0
- package/dist/models/MexicoCurpProviderOutput.js +48 -0
- package/dist/models/ProviderContract.d.ts +7 -0
- package/dist/models/ProviderContract.js +3 -0
- package/dist/models/ProviderOutput.d.ts +47 -0
- package/dist/models/ProviderOutput.js +55 -0
- package/dist/models/RedirectUriResponse.d.ts +38 -0
- package/dist/models/RedirectUriResponse.js +54 -0
- package/dist/models/SpidBillingInformation.d.ts +48 -0
- package/dist/models/SpidBillingInformation.js +58 -0
- package/dist/models/SpidInput.d.ts +11 -0
- package/dist/models/SpidInput.js +2 -0
- package/dist/models/SpidProviderOutput.d.ts +62 -0
- package/dist/models/SpidProviderOutput.js +57 -0
- package/dist/models/VerificationProfileResponse.d.ts +62 -0
- package/dist/models/VerificationProfileResponse.js +70 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/EnvironmentRedirectUrisApi.ts +235 -0
- package/src/apis/NetworkApi.ts +9 -2
- package/src/apis/SessionsApi.ts +18 -18
- package/src/apis/VerificationProfilesApi.ts +294 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddRedirectUriResponse.ts +66 -0
- package/src/models/ContractField.ts +10 -0
- package/src/models/ContractIdentifierField.ts +94 -0
- package/src/models/CreateVerificationProfileResponse.ts +66 -0
- package/src/models/EnvironmentRedirectUrisAddRequest.ts +66 -0
- package/src/models/FaydaProviderOutput.ts +68 -0
- package/src/models/Identifier.ts +84 -0
- package/src/models/IdentityData.ts +31 -0
- package/src/models/ListEnvironmentRedirectUrisResponse.ts +83 -0
- package/src/models/ListVerificationProfilesResponse.ts +83 -0
- package/src/models/MexicoCurpProviderOutput.ts +77 -0
- package/src/models/ProviderContract.ts +15 -0
- package/src/models/ProviderOutput.ts +103 -0
- package/src/models/RedirectUriResponse.ts +75 -0
- package/src/models/SpidBillingInformation.ts +88 -0
- package/src/models/SpidInput.ts +13 -0
- package/src/models/SpidProviderOutput.ts +110 -0
- package/src/models/VerificationProfileResponse.ts +111 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic 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 { FaydaProviderOutput } from './FaydaProviderOutput';
|
|
17
|
+
import {
|
|
18
|
+
FaydaProviderOutputFromJSON,
|
|
19
|
+
FaydaProviderOutputFromJSONTyped,
|
|
20
|
+
FaydaProviderOutputToJSON,
|
|
21
|
+
FaydaProviderOutputToJSONTyped,
|
|
22
|
+
} from './FaydaProviderOutput';
|
|
23
|
+
import type { MexicoCurpProviderOutput } from './MexicoCurpProviderOutput';
|
|
24
|
+
import {
|
|
25
|
+
MexicoCurpProviderOutputFromJSON,
|
|
26
|
+
MexicoCurpProviderOutputFromJSONTyped,
|
|
27
|
+
MexicoCurpProviderOutputToJSON,
|
|
28
|
+
MexicoCurpProviderOutputToJSONTyped,
|
|
29
|
+
} from './MexicoCurpProviderOutput';
|
|
30
|
+
import type { SpidProviderOutput } from './SpidProviderOutput';
|
|
31
|
+
import {
|
|
32
|
+
SpidProviderOutputFromJSON,
|
|
33
|
+
SpidProviderOutputFromJSONTyped,
|
|
34
|
+
SpidProviderOutputToJSON,
|
|
35
|
+
SpidProviderOutputToJSONTyped,
|
|
36
|
+
} from './SpidProviderOutput';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ProviderOutput
|
|
42
|
+
*/
|
|
43
|
+
export interface ProviderOutput {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {SpidProviderOutput}
|
|
47
|
+
* @memberof ProviderOutput
|
|
48
|
+
*/
|
|
49
|
+
italySpid?: SpidProviderOutput | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {MexicoCurpProviderOutput}
|
|
53
|
+
* @memberof ProviderOutput
|
|
54
|
+
*/
|
|
55
|
+
mexicoCurpLookup?: MexicoCurpProviderOutput | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {FaydaProviderOutput}
|
|
59
|
+
* @memberof ProviderOutput
|
|
60
|
+
*/
|
|
61
|
+
ethiopiaFayda?: FaydaProviderOutput | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ProviderOutput interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfProviderOutput(value: object): value is ProviderOutput {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ProviderOutputFromJSON(json: any): ProviderOutput {
|
|
72
|
+
return ProviderOutputFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderOutput {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'italySpid': json['italy-spid'] == null ? undefined : SpidProviderOutputFromJSON(json['italy-spid']),
|
|
82
|
+
'mexicoCurpLookup': json['mexico-curp-lookup'] == null ? undefined : MexicoCurpProviderOutputFromJSON(json['mexico-curp-lookup']),
|
|
83
|
+
'ethiopiaFayda': json['ethiopia-fayda'] == null ? undefined : FaydaProviderOutputFromJSON(json['ethiopia-fayda']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ProviderOutputToJSON(json: any): ProviderOutput {
|
|
88
|
+
return ProviderOutputToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ProviderOutputToJSONTyped(value?: ProviderOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'italy-spid': SpidProviderOutputToJSON(value['italySpid']),
|
|
99
|
+
'mexico-curp-lookup': MexicoCurpProviderOutputToJSON(value['mexicoCurpLookup']),
|
|
100
|
+
'ethiopia-fayda': FaydaProviderOutputToJSON(value['ethiopiaFayda']),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic 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 RedirectUriResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface RedirectUriResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RedirectUriResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RedirectUriResponse
|
|
32
|
+
*/
|
|
33
|
+
uri: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the RedirectUriResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfRedirectUriResponse(value: object): value is RedirectUriResponse {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('uri' in value) || value['uri'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RedirectUriResponseFromJSON(json: any): RedirectUriResponse {
|
|
46
|
+
return RedirectUriResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RedirectUriResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectUriResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'uri': json['uri'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function RedirectUriResponseToJSON(json: any): RedirectUriResponse {
|
|
61
|
+
return RedirectUriResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function RedirectUriResponseToJSONTyped(value?: RedirectUriResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'uri': value['uri'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic 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
|
+
* Billing information for a SPID Verification.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SpidBillingInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface SpidBillingInformation {
|
|
22
|
+
/**
|
|
23
|
+
* Whether this SPID verification has resulted in a billable event.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SpidBillingInformation
|
|
26
|
+
*/
|
|
27
|
+
isBillable: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The billable verification type for this SPID verification.
|
|
30
|
+
*
|
|
31
|
+
* Possible values: "Authentication" | "Registration"
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SpidBillingInformation
|
|
34
|
+
*/
|
|
35
|
+
verificationType: string;
|
|
36
|
+
/**
|
|
37
|
+
* The billable verification level for this SPID verification.
|
|
38
|
+
*
|
|
39
|
+
* Possible values: 1 | 2 | 3
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof SpidBillingInformation
|
|
42
|
+
*/
|
|
43
|
+
verificationLevel: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SpidBillingInformation interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfSpidBillingInformation(value: object): value is SpidBillingInformation {
|
|
50
|
+
if (!('isBillable' in value) || value['isBillable'] === undefined) return false;
|
|
51
|
+
if (!('verificationType' in value) || value['verificationType'] === undefined) return false;
|
|
52
|
+
if (!('verificationLevel' in value) || value['verificationLevel'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SpidBillingInformationFromJSON(json: any): SpidBillingInformation {
|
|
57
|
+
return SpidBillingInformationFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SpidBillingInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidBillingInformation {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'isBillable': json['isBillable'],
|
|
67
|
+
'verificationType': json['verificationType'],
|
|
68
|
+
'verificationLevel': json['verificationLevel'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SpidBillingInformationToJSON(json: any): SpidBillingInformation {
|
|
73
|
+
return SpidBillingInformationToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SpidBillingInformationToJSONTyped(value?: SpidBillingInformation | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'isBillable': value['isBillable'],
|
|
84
|
+
'verificationType': value['verificationType'],
|
|
85
|
+
'verificationLevel': value['verificationLevel'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
package/src/models/SpidInput.ts
CHANGED
|
@@ -27,6 +27,17 @@ export interface SpidInput {
|
|
|
27
27
|
* @memberof SpidInput
|
|
28
28
|
*/
|
|
29
29
|
subProviderId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Only applicable if period-based billing is enabled for your Verification Profile. Contact Trinsic to enable this.
|
|
32
|
+
*
|
|
33
|
+
* A secret UTF-8 string between 32 and 64 characters in length, used to enable privacy-preserving tracking of unique user verifications during a billing period.
|
|
34
|
+
*
|
|
35
|
+
* WARNING: This value must NOT change during the course of a billing period for a given Verification Profile, or double-billing may occur.
|
|
36
|
+
* If multiple Verification Profiles are configured to use the same Trinsic-managed SPID Service Provider, the same Billing Tracking Secret must be provided across all such Verification Profiles.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SpidInput
|
|
39
|
+
*/
|
|
40
|
+
billingTrackingSecret?: string | null;
|
|
30
41
|
}
|
|
31
42
|
|
|
32
43
|
/**
|
|
@@ -47,6 +58,7 @@ export function SpidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
47
58
|
return {
|
|
48
59
|
|
|
49
60
|
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
61
|
+
'billingTrackingSecret': json['billingTrackingSecret'] == null ? undefined : json['billingTrackingSecret'],
|
|
50
62
|
};
|
|
51
63
|
}
|
|
52
64
|
|
|
@@ -62,6 +74,7 @@ export function SpidInputToJSONTyped(value?: SpidInput | null, ignoreDiscriminat
|
|
|
62
74
|
return {
|
|
63
75
|
|
|
64
76
|
'subProviderId': value['subProviderId'],
|
|
77
|
+
'billingTrackingSecret': value['billingTrackingSecret'],
|
|
65
78
|
};
|
|
66
79
|
}
|
|
67
80
|
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic 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 { SpidBillingInformation } from './SpidBillingInformation';
|
|
17
|
+
import {
|
|
18
|
+
SpidBillingInformationFromJSON,
|
|
19
|
+
SpidBillingInformationFromJSONTyped,
|
|
20
|
+
SpidBillingInformationToJSON,
|
|
21
|
+
SpidBillingInformationToJSONTyped,
|
|
22
|
+
} from './SpidBillingInformation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SpidProviderOutput
|
|
28
|
+
*/
|
|
29
|
+
export interface SpidProviderOutput {
|
|
30
|
+
/**
|
|
31
|
+
* Information about the billable status of this SPID Verification.
|
|
32
|
+
*
|
|
33
|
+
* Present only if your account has period-based billing enabled for SPID. Contact Trinsic to enable this.
|
|
34
|
+
* @type {SpidBillingInformation}
|
|
35
|
+
* @memberof SpidProviderOutput
|
|
36
|
+
*/
|
|
37
|
+
billingInformation?: SpidBillingInformation | null;
|
|
38
|
+
/**
|
|
39
|
+
* Fiscal tax number for the subject.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof SpidProviderOutput
|
|
42
|
+
*/
|
|
43
|
+
fiscalNumber?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Unique user identifier contained within the SPID identity.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof SpidProviderOutput
|
|
48
|
+
*/
|
|
49
|
+
spidCode?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* VAT number for the subject.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof SpidProviderOutput
|
|
54
|
+
*/
|
|
55
|
+
ivaCode?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Expiration date of the user's SPID credential.
|
|
58
|
+
*
|
|
59
|
+
* This is not the same as the expiration date of the underlying identity document (such as a passport) which was
|
|
60
|
+
* used to create the SPID identity.
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof SpidProviderOutput
|
|
63
|
+
*/
|
|
64
|
+
spidCredentialExpirationDate?: Date | null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SpidProviderOutput interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfSpidProviderOutput(value: object): value is SpidProviderOutput {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function SpidProviderOutputFromJSON(json: any): SpidProviderOutput {
|
|
75
|
+
return SpidProviderOutputFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function SpidProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidProviderOutput {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'billingInformation': json['billingInformation'] == null ? undefined : SpidBillingInformationFromJSON(json['billingInformation']),
|
|
85
|
+
'fiscalNumber': json['fiscalNumber'] == null ? undefined : json['fiscalNumber'],
|
|
86
|
+
'spidCode': json['spidCode'] == null ? undefined : json['spidCode'],
|
|
87
|
+
'ivaCode': json['ivaCode'] == null ? undefined : json['ivaCode'],
|
|
88
|
+
'spidCredentialExpirationDate': json['spidCredentialExpirationDate'] == null ? undefined : (new Date(json['spidCredentialExpirationDate'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function SpidProviderOutputToJSON(json: any): SpidProviderOutput {
|
|
93
|
+
return SpidProviderOutputToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function SpidProviderOutputToJSONTyped(value?: SpidProviderOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'billingInformation': SpidBillingInformationToJSON(value['billingInformation']),
|
|
104
|
+
'fiscalNumber': value['fiscalNumber'],
|
|
105
|
+
'spidCode': value['spidCode'],
|
|
106
|
+
'ivaCode': value['ivaCode'],
|
|
107
|
+
'spidCredentialExpirationDate': value['spidCredentialExpirationDate'] == null ? undefined : ((value['spidCredentialExpirationDate'] as any).toISOString().substring(0,10)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic 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 VerificationProfileResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VerificationProfileResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the verification profile
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VerificationProfileResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* An alias of the verification profile shown to developers and administrators.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VerificationProfileResponse
|
|
32
|
+
*/
|
|
33
|
+
alias: string;
|
|
34
|
+
/**
|
|
35
|
+
* The brand name of the verification profile shown to end-users.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VerificationProfileResponse
|
|
38
|
+
*/
|
|
39
|
+
brandName: string;
|
|
40
|
+
/**
|
|
41
|
+
* The URL of the verification profile's logo.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VerificationProfileResponse
|
|
44
|
+
*/
|
|
45
|
+
logoUrl: string;
|
|
46
|
+
/**
|
|
47
|
+
* The primary color of the verification profile.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VerificationProfileResponse
|
|
50
|
+
*/
|
|
51
|
+
primaryColor: string;
|
|
52
|
+
/**
|
|
53
|
+
* The providers that are currently enabled for the verification profile.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof VerificationProfileResponse
|
|
56
|
+
*/
|
|
57
|
+
enabledProviders: Array<string>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the VerificationProfileResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfVerificationProfileResponse(value: object): value is VerificationProfileResponse {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
66
|
+
if (!('brandName' in value) || value['brandName'] === undefined) return false;
|
|
67
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
68
|
+
if (!('primaryColor' in value) || value['primaryColor'] === undefined) return false;
|
|
69
|
+
if (!('enabledProviders' in value) || value['enabledProviders'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function VerificationProfileResponseFromJSON(json: any): VerificationProfileResponse {
|
|
74
|
+
return VerificationProfileResponseFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function VerificationProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationProfileResponse {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'alias': json['alias'],
|
|
85
|
+
'brandName': json['brandName'],
|
|
86
|
+
'logoUrl': json['logoUrl'],
|
|
87
|
+
'primaryColor': json['primaryColor'],
|
|
88
|
+
'enabledProviders': json['enabledProviders'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function VerificationProfileResponseToJSON(json: any): VerificationProfileResponse {
|
|
93
|
+
return VerificationProfileResponseToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function VerificationProfileResponseToJSONTyped(value?: VerificationProfileResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'alias': value['alias'],
|
|
105
|
+
'brandName': value['brandName'],
|
|
106
|
+
'logoUrl': value['logoUrl'],
|
|
107
|
+
'primaryColor': value['primaryColor'],
|
|
108
|
+
'enabledProviders': value['enabledProviders'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AadhaarInput';
|
|
4
|
+
export * from './AddRedirectUriResponse';
|
|
4
5
|
export * from './Address';
|
|
5
6
|
export * from './AppleWalletInput';
|
|
6
7
|
export * from './AttachmentAccessKeys';
|
|
@@ -9,18 +10,22 @@ export * from './BrazilCpfCheckInput';
|
|
|
9
10
|
export * from './BrazilDigitalCnhInput';
|
|
10
11
|
export * from './CancelSessionResponse';
|
|
11
12
|
export * from './ContractField';
|
|
13
|
+
export * from './ContractIdentifierField';
|
|
12
14
|
export * from './CreateDirectProviderSessionRequest';
|
|
13
15
|
export * from './CreateDirectProviderSessionResponse';
|
|
14
16
|
export * from './CreateHostedProviderSessionRequest';
|
|
15
17
|
export * from './CreateHostedProviderSessionResponse';
|
|
16
18
|
export * from './CreateMdlExchangeRequest';
|
|
17
19
|
export * from './CreateMdlExchangeResponse';
|
|
20
|
+
export * from './CreateVerificationProfileResponse';
|
|
18
21
|
export * from './CreateWidgetSessionRequest';
|
|
19
22
|
export * from './CreateWidgetSessionResponse';
|
|
20
23
|
export * from './DocumentData';
|
|
21
24
|
export * from './DocumentScanAttachments';
|
|
22
25
|
export * from './DocumentType';
|
|
26
|
+
export * from './EnvironmentRedirectUrisAddRequest';
|
|
23
27
|
export * from './ExternalMdlFieldData';
|
|
28
|
+
export * from './FaydaProviderOutput';
|
|
24
29
|
export * from './FieldAvailability';
|
|
25
30
|
export * from './FinalizeMdlExchangeRequest';
|
|
26
31
|
export * from './FinalizeMdlExchangeResponse';
|
|
@@ -31,6 +36,7 @@ export * from './GetSessionResultRequest';
|
|
|
31
36
|
export * from './GetSessionResultResponse';
|
|
32
37
|
export * from './GoogleWalletInput';
|
|
33
38
|
export * from './HttpValidationProblemDetails';
|
|
39
|
+
export * from './Identifier';
|
|
34
40
|
export * from './IdentityData';
|
|
35
41
|
export * from './IdinInput';
|
|
36
42
|
export * from './IndonesiaDukcapilMatchInput';
|
|
@@ -40,9 +46,11 @@ export * from './IntegrationLaunchMethod';
|
|
|
40
46
|
export * from './IntegrationStep';
|
|
41
47
|
export * from './KenyaNidInput';
|
|
42
48
|
export * from './Language';
|
|
49
|
+
export * from './ListEnvironmentRedirectUrisResponse';
|
|
43
50
|
export * from './ListProviderContractsResponse';
|
|
44
51
|
export * from './ListProvidersResponse';
|
|
45
52
|
export * from './ListSessionsResponse';
|
|
53
|
+
export * from './ListVerificationProfilesResponse';
|
|
46
54
|
export * from './Match';
|
|
47
55
|
export * from './MatchData';
|
|
48
56
|
export * from './MdlCertificateData';
|
|
@@ -50,6 +58,7 @@ export * from './MdlExchangeMechanism';
|
|
|
50
58
|
export * from './MdlFieldDataType';
|
|
51
59
|
export * from './MdlIdentityData';
|
|
52
60
|
export * from './MexicoCurpInput';
|
|
61
|
+
export * from './MexicoCurpProviderOutput';
|
|
53
62
|
export * from './MobileIdInput';
|
|
54
63
|
export * from './NigeriaNinInput';
|
|
55
64
|
export * from './OrderDirection';
|
|
@@ -63,9 +72,11 @@ export * from './ProviderHealth';
|
|
|
63
72
|
export * from './ProviderInfo';
|
|
64
73
|
export * from './ProviderInformation';
|
|
65
74
|
export * from './ProviderInput';
|
|
75
|
+
export * from './ProviderOutput';
|
|
66
76
|
export * from './RecommendRequest';
|
|
67
77
|
export * from './RecommendResponse';
|
|
68
78
|
export * from './RecommendationInfo';
|
|
79
|
+
export * from './RedirectUriResponse';
|
|
69
80
|
export * from './RefreshStepContentRequest';
|
|
70
81
|
export * from './RefreshStepContentResponse';
|
|
71
82
|
export * from './ResultCollection';
|
|
@@ -76,10 +87,13 @@ export * from './SessionOrdering';
|
|
|
76
87
|
export * from './Sex';
|
|
77
88
|
export * from './SmartIdInput';
|
|
78
89
|
export * from './SouthAfricaNidInput';
|
|
90
|
+
export * from './SpidBillingInformation';
|
|
79
91
|
export * from './SpidInput';
|
|
92
|
+
export * from './SpidProviderOutput';
|
|
80
93
|
export * from './StepRefreshInfo';
|
|
81
94
|
export * from './SubProviderMetadata';
|
|
82
95
|
export * from './SubmitNativeChallengeResponseRequest';
|
|
83
96
|
export * from './SubmitNativeChallengeResponseResponse';
|
|
84
97
|
export * from './TrinsicTestDatabaseLookupInput';
|
|
85
98
|
export * from './TrinsicTestSubProvidersInput';
|
|
99
|
+
export * from './VerificationProfileResponse';
|