@nexeraid/identity-schemas 1.12.0-dev
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/README.md +26 -0
- package/dist/declarations/src/blockchain.schema.d.ts +93 -0
- package/dist/declarations/src/blockchain.schema.d.ts.map +1 -0
- package/dist/declarations/src/config.schema.d.ts +128 -0
- package/dist/declarations/src/config.schema.d.ts.map +1 -0
- package/dist/declarations/src/countries.schema.d.ts +11 -0
- package/dist/declarations/src/countries.schema.d.ts.map +1 -0
- package/dist/declarations/src/credential-storage.schema.d.ts +138 -0
- package/dist/declarations/src/credential-storage.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/app-requests.schema.d.ts +4092 -0
- package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/challenge-query.schema.d.ts +1109 -0
- package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts +135 -0
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/get-started.schema.d.ts +19 -0
- package/dist/declarations/src/identity/get-started.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/host-requests.schema.d.ts +2721 -0
- package/dist/declarations/src/identity/host-requests.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/index.d.ts +12 -0
- package/dist/declarations/src/identity/index.d.ts.map +1 -0
- package/dist/declarations/src/identity/kyc.schema.d.ts +2593 -0
- package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/polygon-id.schema.d.ts +425 -0
- package/dist/declarations/src/identity/polygon-id.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/query.schema.d.ts +526 -0
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +62 -0
- package/dist/declarations/src/identity/txAuthData.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/txAuthDataTezos.schema.d.ts +56 -0
- package/dist/declarations/src/identity/txAuthDataTezos.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/zkps.schema.d.ts +962 -0
- package/dist/declarations/src/identity/zkps.schema.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +5 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/GenericVerifiableCredentialSchema.d.ts +95 -0
- package/dist/declarations/src/verifiable-credentials/GenericVerifiableCredentialSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/ID3CredentialSubjectSchema.d.ts +2839 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/ID3CredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanCredentialSubjectSchema.d.ts +163 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanPassportCredentialSubjectSchema.d.ts +21 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanPassportCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanSelfieCredentialSubjectSchema.d.ts +21 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanSelfieCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_AMLScreeningsResultsCredentialSubjectSchema.d.ts +2692 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_AMLScreeningsResultsCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDImageCredentialSubjectSchema.d.ts +24 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDInformationCredentialSubjectSchema.d.ts +258 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDInformationCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_ProofOfResidenceCredentialSubjectSchema.d.ts +39 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_ProofOfResidenceCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_SelfieImageCredentialSubjectSchema.d.ts +21 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_SelfieImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/cleanObject.d.ts +12 -0
- package/dist/declarations/src/verifiable-credentials/cleanObject.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/frontend-utilities.schema.d.ts +16 -0
- package/dist/declarations/src/verifiable-credentials/frontend-utilities.schema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/general-vc-typing.schema.d.ts +5978 -0
- package/dist/declarations/src/verifiable-credentials/general-vc-typing.schema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDImageCredentialSubjectSchema.d.ts +48 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDInformationCredentialSubjectSchema.d.ts +96 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDInformationCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/ProofOfResidenceCredentialSubjectSchema.d.ts +48 -0
- package/dist/declarations/src/verifiable-credentials/generated/ProofOfResidenceCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/SelfieImageCredentialSubjectSchema.d.ts +39 -0
- package/dist/declarations/src/verifiable-credentials/generated/SelfieImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/index.d.ts +56 -0
- package/dist/declarations/src/verifiable-credentials/index.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/vc-utils.schema.d.ts +8 -0
- package/dist/declarations/src/verifiable-credentials/vc-utils.schema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/vc_json_schema_map.d.ts +127 -0
- package/dist/declarations/src/verifiable-credentials/vc_json_schema_map.d.ts.map +1 -0
- package/dist/nexeraid-identity-schemas.cjs.d.ts +2 -0
- package/dist/nexeraid-identity-schemas.cjs.dev.js +110 -0
- package/dist/nexeraid-identity-schemas.cjs.js +7 -0
- package/dist/nexeraid-identity-schemas.cjs.prod.js +110 -0
- package/dist/nexeraid-identity-schemas.esm.js +40 -0
- package/dist/package.json +72 -0
- package/dist/txAuthDataTezos.schema-92a60696.cjs.prod.js +2995 -0
- package/dist/txAuthDataTezos.schema-a6ddf460.esm.js +2775 -0
- package/dist/txAuthDataTezos.schema-ad3b7592.cjs.dev.js +2995 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.d.ts +2 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +141 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.js +7 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +141 -0
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +2 -0
- package/identity/package.json +4 -0
- package/package.json +71 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.d.ts +2 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2158 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.js +7 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2158 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2126 -0
- package/verifiable-credentials/package.json +4 -0
|
@@ -0,0 +1,2126 @@
|
|
|
1
|
+
import { bH as SupportedType, cf as _toConsumableArray, bw as ARRAY_OPERATORS, bC as BOOLEAN_OPERATORS, bA as NUMERIC_OPERATORS, by as STRING_OPERATORS } from '../../dist/txAuthDataTezos.schema-a6ddf460.esm.js';
|
|
2
|
+
export { a6 as Alpha2Country, cA as CredentialMediaType, cv as CredentialNames, cu as CredentialSchemas, cy as CredentialType, C as CredentialTypes, ct as GenericVerifiableCredentialSchema, cg as ID3CredentialSubjectSchema, cq as IDImageCredentialSubjectSchema, cp as IDInformationCredentialSubjectSchema, ch as IDScanCredentialSubjectSchema, ci as IDScanPassportCredentialSubjectSchema, cj as IDScanSelfieCredentialSubjectSchema, a4 as ISO3CountryCode, cw as NexeraCredentialType, co as OLD_AMLScreeningsResultsCredentialSubjectSchema, ck as OLD_IDImageCredentialSubjectSchema, cl as OLD_IDInformationCredentialSubjectSchema, cm as OLD_ProofOfResidenceCredentialSubjectSchema, cn as OLD_SelfieImageCredentialSubjectSchema, cs as ProofOfResidenceCredentialSubjectSchema, cr as SelfieImageCredentialSubjectSchema, cz as VerifiableCredential, a7 as countryISO3toISO2Mapping, cx as getCredentialName, a9 as isoCountriesNameFromISO2 } from '../../dist/txAuthDataTezos.schema-a6ddf460.esm.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
var VC_JSON_SCHEMA_MAP = {
|
|
6
|
+
ProofOfResidence: {
|
|
7
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmZziNSpBSLWBZGb6mzXXexYfY311knw8o6yAyCTZ9GFxi",
|
|
8
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmZziNSpBSLWBZGb6mzXXexYfY311knw8o6yAyCTZ9GFxi",
|
|
9
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmZziNSpBSLWBZGb6mzXXexYfY311knw8o6yAyCTZ9GFxi",
|
|
10
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmZziNSpBSLWBZGb6mzXXexYfY311knw8o6yAyCTZ9GFxi",
|
|
11
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmZziNSpBSLWBZGb6mzXXexYfY311knw8o6yAyCTZ9GFxi",
|
|
12
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmZziNSpBSLWBZGb6mzXXexYfY311knw8o6yAyCTZ9GFxi"
|
|
13
|
+
},
|
|
14
|
+
ProofOfResidence_LD: {
|
|
15
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmWEa2nNHLP3bsFYDGZbpLuM42J8krpEhjsuDkT4Q19VWf",
|
|
16
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmWEa2nNHLP3bsFYDGZbpLuM42J8krpEhjsuDkT4Q19VWf",
|
|
17
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmWEa2nNHLP3bsFYDGZbpLuM42J8krpEhjsuDkT4Q19VWf",
|
|
18
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmWEa2nNHLP3bsFYDGZbpLuM42J8krpEhjsuDkT4Q19VWf",
|
|
19
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmWEa2nNHLP3bsFYDGZbpLuM42J8krpEhjsuDkT4Q19VWf",
|
|
20
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmWEa2nNHLP3bsFYDGZbpLuM42J8krpEhjsuDkT4Q19VWf"
|
|
21
|
+
},
|
|
22
|
+
IDInformation: {
|
|
23
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmRTFErdwKyBCKVLwS8Y8YjPkjFpAGdC2U26sPTTRRjoom",
|
|
24
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmRTFErdwKyBCKVLwS8Y8YjPkjFpAGdC2U26sPTTRRjoom",
|
|
25
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmRTFErdwKyBCKVLwS8Y8YjPkjFpAGdC2U26sPTTRRjoom",
|
|
26
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmRTFErdwKyBCKVLwS8Y8YjPkjFpAGdC2U26sPTTRRjoom",
|
|
27
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmRTFErdwKyBCKVLwS8Y8YjPkjFpAGdC2U26sPTTRRjoom",
|
|
28
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmRTFErdwKyBCKVLwS8Y8YjPkjFpAGdC2U26sPTTRRjoom"
|
|
29
|
+
},
|
|
30
|
+
AMLScreeningsResults: {
|
|
31
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmacioN1D6w8Pz1vzYKZotMESuNKu9kq5K3XWGA4SRrPyx",
|
|
32
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmacioN1D6w8Pz1vzYKZotMESuNKu9kq5K3XWGA4SRrPyx",
|
|
33
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmacioN1D6w8Pz1vzYKZotMESuNKu9kq5K3XWGA4SRrPyx",
|
|
34
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmacioN1D6w8Pz1vzYKZotMESuNKu9kq5K3XWGA4SRrPyx"
|
|
35
|
+
},
|
|
36
|
+
IDImage: {
|
|
37
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmRdTMQFBM3nqLMndXernJFgtsWUJdS8aJXGvjDwQtDp34",
|
|
38
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmRdTMQFBM3nqLMndXernJFgtsWUJdS8aJXGvjDwQtDp34",
|
|
39
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmRdTMQFBM3nqLMndXernJFgtsWUJdS8aJXGvjDwQtDp34",
|
|
40
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmRdTMQFBM3nqLMndXernJFgtsWUJdS8aJXGvjDwQtDp34",
|
|
41
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmRdTMQFBM3nqLMndXernJFgtsWUJdS8aJXGvjDwQtDp34",
|
|
42
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmRdTMQFBM3nqLMndXernJFgtsWUJdS8aJXGvjDwQtDp34"
|
|
43
|
+
},
|
|
44
|
+
SelfieImage: {
|
|
45
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmQWT1v3gVzHFtHMwKYrDBSJ3XNjL2haiTaSkcVmGCWcgZ",
|
|
46
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmQWT1v3gVzHFtHMwKYrDBSJ3XNjL2haiTaSkcVmGCWcgZ",
|
|
47
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmQWT1v3gVzHFtHMwKYrDBSJ3XNjL2haiTaSkcVmGCWcgZ",
|
|
48
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmQWT1v3gVzHFtHMwKYrDBSJ3XNjL2haiTaSkcVmGCWcgZ",
|
|
49
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmQWT1v3gVzHFtHMwKYrDBSJ3XNjL2haiTaSkcVmGCWcgZ",
|
|
50
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmQWT1v3gVzHFtHMwKYrDBSJ3XNjL2haiTaSkcVmGCWcgZ"
|
|
51
|
+
},
|
|
52
|
+
IDInformation_LD: {
|
|
53
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmUFBpPnPanYZPcRKRnGFZeyYSpXx1L3XNngowjRtQFzrD",
|
|
54
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmUFBpPnPanYZPcRKRnGFZeyYSpXx1L3XNngowjRtQFzrD",
|
|
55
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmUFBpPnPanYZPcRKRnGFZeyYSpXx1L3XNngowjRtQFzrD",
|
|
56
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmUFBpPnPanYZPcRKRnGFZeyYSpXx1L3XNngowjRtQFzrD",
|
|
57
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmUFBpPnPanYZPcRKRnGFZeyYSpXx1L3XNngowjRtQFzrD",
|
|
58
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmUFBpPnPanYZPcRKRnGFZeyYSpXx1L3XNngowjRtQFzrD"
|
|
59
|
+
},
|
|
60
|
+
AMLScreeningsResults_LD: {
|
|
61
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/Qma96fMaDmpdJMnVsRdAeVokyU7KBqRSuY8eZJkoLFdsvJ",
|
|
62
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/Qma96fMaDmpdJMnVsRdAeVokyU7KBqRSuY8eZJkoLFdsvJ",
|
|
63
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/Qma96fMaDmpdJMnVsRdAeVokyU7KBqRSuY8eZJkoLFdsvJ",
|
|
64
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/Qma96fMaDmpdJMnVsRdAeVokyU7KBqRSuY8eZJkoLFdsvJ"
|
|
65
|
+
},
|
|
66
|
+
IDImage_LD: {
|
|
67
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmTYHuqTLNRyfUjncDNwd1KKw9sc7DiewTm1FJ4RPHYqcW",
|
|
68
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmTYHuqTLNRyfUjncDNwd1KKw9sc7DiewTm1FJ4RPHYqcW",
|
|
69
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmTYHuqTLNRyfUjncDNwd1KKw9sc7DiewTm1FJ4RPHYqcW",
|
|
70
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmTYHuqTLNRyfUjncDNwd1KKw9sc7DiewTm1FJ4RPHYqcW",
|
|
71
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmTYHuqTLNRyfUjncDNwd1KKw9sc7DiewTm1FJ4RPHYqcW",
|
|
72
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmTYHuqTLNRyfUjncDNwd1KKw9sc7DiewTm1FJ4RPHYqcW"
|
|
73
|
+
},
|
|
74
|
+
SelfieImage_LD: {
|
|
75
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmUV9bVQ433m5ejjgqodQ4kfWqMMzFCwJqcqRhzSfENEMX",
|
|
76
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmUV9bVQ433m5ejjgqodQ4kfWqMMzFCwJqcqRhzSfENEMX",
|
|
77
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmUV9bVQ433m5ejjgqodQ4kfWqMMzFCwJqcqRhzSfENEMX",
|
|
78
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmUV9bVQ433m5ejjgqodQ4kfWqMMzFCwJqcqRhzSfENEMX",
|
|
79
|
+
"test-dev-1": "https://quicknode.quicknode-ipfs.com/ipfs/QmUV9bVQ433m5ejjgqodQ4kfWqMMzFCwJqcqRhzSfENEMX",
|
|
80
|
+
"test-dev-2": "https://quicknode.quicknode-ipfs.com/ipfs/QmUV9bVQ433m5ejjgqodQ4kfWqMMzFCwJqcqRhzSfENEMX"
|
|
81
|
+
},
|
|
82
|
+
ID3: {
|
|
83
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmSiv7jMN1mcatdnsG4kJkLPVYkT92tV3oKMWqE7dYqzwX",
|
|
84
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmSiv7jMN1mcatdnsG4kJkLPVYkT92tV3oKMWqE7dYqzwX",
|
|
85
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmSiv7jMN1mcatdnsG4kJkLPVYkT92tV3oKMWqE7dYqzwX",
|
|
86
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmSiv7jMN1mcatdnsG4kJkLPVYkT92tV3oKMWqE7dYqzwX"
|
|
87
|
+
},
|
|
88
|
+
IDScan: {
|
|
89
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmZHArC9SYXEvNLei7qJCQr5qapSYYhmAMmsh5r35AtcoY",
|
|
90
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmZHArC9SYXEvNLei7qJCQr5qapSYYhmAMmsh5r35AtcoY",
|
|
91
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmZHArC9SYXEvNLei7qJCQr5qapSYYhmAMmsh5r35AtcoY",
|
|
92
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmZHArC9SYXEvNLei7qJCQr5qapSYYhmAMmsh5r35AtcoY"
|
|
93
|
+
},
|
|
94
|
+
IDScanSelfie: {
|
|
95
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmQQX5t9ZHqGMY5qKrxApMjejw4bugGVae3HddrcShZaGe",
|
|
96
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmQQX5t9ZHqGMY5qKrxApMjejw4bugGVae3HddrcShZaGe",
|
|
97
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmQQX5t9ZHqGMY5qKrxApMjejw4bugGVae3HddrcShZaGe",
|
|
98
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmQQX5t9ZHqGMY5qKrxApMjejw4bugGVae3HddrcShZaGe"
|
|
99
|
+
},
|
|
100
|
+
IDScanPassport: {
|
|
101
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmUej2eizQoJQXzo4fmoN6Eu3SMAbUjVXG1rE3GotRDfST",
|
|
102
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmUej2eizQoJQXzo4fmoN6Eu3SMAbUjVXG1rE3GotRDfST",
|
|
103
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmUej2eizQoJQXzo4fmoN6Eu3SMAbUjVXG1rE3GotRDfST",
|
|
104
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmUej2eizQoJQXzo4fmoN6Eu3SMAbUjVXG1rE3GotRDfST"
|
|
105
|
+
},
|
|
106
|
+
ID3_LD: {
|
|
107
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmSFao9JrbMKLvjuuWdUqhhkrPCUcVSaoMiPWKMUMsAx9a",
|
|
108
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmSFao9JrbMKLvjuuWdUqhhkrPCUcVSaoMiPWKMUMsAx9a",
|
|
109
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmSFao9JrbMKLvjuuWdUqhhkrPCUcVSaoMiPWKMUMsAx9a",
|
|
110
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmSFao9JrbMKLvjuuWdUqhhkrPCUcVSaoMiPWKMUMsAx9a"
|
|
111
|
+
},
|
|
112
|
+
IDScan_LD: {
|
|
113
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmaoyFJjwbkMSTwWurK4tYFxWd3CDnMLu2KustmWL8Ruks",
|
|
114
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmaoyFJjwbkMSTwWurK4tYFxWd3CDnMLu2KustmWL8Ruks",
|
|
115
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmaoyFJjwbkMSTwWurK4tYFxWd3CDnMLu2KustmWL8Ruks",
|
|
116
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmaoyFJjwbkMSTwWurK4tYFxWd3CDnMLu2KustmWL8Ruks"
|
|
117
|
+
},
|
|
118
|
+
IDScanSelfie_LD: {
|
|
119
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmYoDQKUHSMEZk2ZwaXWvdHbYoLXShVWxRdsu1jsXxhN6F",
|
|
120
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmYoDQKUHSMEZk2ZwaXWvdHbYoLXShVWxRdsu1jsXxhN6F",
|
|
121
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmYoDQKUHSMEZk2ZwaXWvdHbYoLXShVWxRdsu1jsXxhN6F",
|
|
122
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmYoDQKUHSMEZk2ZwaXWvdHbYoLXShVWxRdsu1jsXxhN6F"
|
|
123
|
+
},
|
|
124
|
+
IDScanPassport_LD: {
|
|
125
|
+
prod: "https://quicknode.quicknode-ipfs.com/ipfs/QmRBfV9TboGRz42rT45mnMMK8VTtTc9r1mpLQjGfyXCgaf",
|
|
126
|
+
stage: "https://quicknode.quicknode-ipfs.com/ipfs/QmRBfV9TboGRz42rT45mnMMK8VTtTc9r1mpLQjGfyXCgaf",
|
|
127
|
+
dev: "https://quicknode.quicknode-ipfs.com/ipfs/QmRBfV9TboGRz42rT45mnMMK8VTtTc9r1mpLQjGfyXCgaf",
|
|
128
|
+
local: "https://quicknode.quicknode-ipfs.com/ipfs/QmRBfV9TboGRz42rT45mnMMK8VTtTc9r1mpLQjGfyXCgaf"
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var getCredentialSchemaLocation = function getCredentialSchemaLocation(props) {
|
|
133
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
return VC_JSON_SCHEMA_MAP[props.type === "json" ? props.credentialType : "".concat(props.credentialType, "_LD")
|
|
136
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
137
|
+
][props.env];
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
function _typeof(o) {
|
|
141
|
+
"@babel/helpers - typeof";
|
|
142
|
+
|
|
143
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
144
|
+
return typeof o;
|
|
145
|
+
} : function (o) {
|
|
146
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
147
|
+
}, _typeof(o);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* eslint-disable */
|
|
151
|
+
/**
|
|
152
|
+
* Strips
|
|
153
|
+
* - null
|
|
154
|
+
* - undefined
|
|
155
|
+
* - empty string ("")
|
|
156
|
+
* - empty objects ({})
|
|
157
|
+
* - if object contains only empty objects (or empty arrays), it will be stripped
|
|
158
|
+
* from an object
|
|
159
|
+
* @param object
|
|
160
|
+
*/
|
|
161
|
+
function cleanObject(object) {
|
|
162
|
+
var isObjectEmpty = function isObjectEmpty(obj) {
|
|
163
|
+
if (_typeof(obj) !== "object" || obj === null) return false;
|
|
164
|
+
for (var key in obj) {
|
|
165
|
+
if (Object.hasOwnProperty.call(obj, key)) return false;
|
|
166
|
+
}
|
|
167
|
+
return true;
|
|
168
|
+
};
|
|
169
|
+
var isArrayEmpty = function isArrayEmpty(arr) {
|
|
170
|
+
return arr.every(function (item) {
|
|
171
|
+
return item === null || item === undefined || item === "" || _typeof(item) === "object" && !Array.isArray(item) && isObjectEmpty(item) || Array.isArray(item) && isArrayEmpty(item);
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
Object.keys(object).forEach(function (key) {
|
|
175
|
+
var value = object[key];
|
|
176
|
+
if (value && _typeof(value) === "object") {
|
|
177
|
+
if (Array.isArray(value)) {
|
|
178
|
+
if (isArrayEmpty(value)) {
|
|
179
|
+
delete object[key];
|
|
180
|
+
} else {
|
|
181
|
+
value = value.map(function (item) {
|
|
182
|
+
return _typeof(item) === "object" ? cleanObject(item) : item;
|
|
183
|
+
}).filter(function (item) {
|
|
184
|
+
return !(item === null || item === undefined || item === "" || _typeof(item) === "object" && isObjectEmpty(item));
|
|
185
|
+
});
|
|
186
|
+
if (isArrayEmpty(value)) {
|
|
187
|
+
delete object[key];
|
|
188
|
+
} else {
|
|
189
|
+
object[key] = value;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
} else {
|
|
193
|
+
var cleanedObject = cleanObject(value);
|
|
194
|
+
if (isObjectEmpty(cleanedObject)) {
|
|
195
|
+
delete object[key];
|
|
196
|
+
} else {
|
|
197
|
+
object[key] = cleanedObject;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
} else if (value === null || value === undefined || value === "") {
|
|
201
|
+
delete object[key];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
return object;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
208
|
+
var schema$7 = {
|
|
209
|
+
description: "Stores the data of the credential",
|
|
210
|
+
title: "Credential subject",
|
|
211
|
+
type: "object",
|
|
212
|
+
required: ["id", "journeyId", "base64_front", "name", "documentType", "mediaType_front", "reviewAnswer", "entryDate", "entryTime"],
|
|
213
|
+
properties: {
|
|
214
|
+
id: {
|
|
215
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
216
|
+
title: "Credential subject ID",
|
|
217
|
+
format: "uri",
|
|
218
|
+
type: "string"
|
|
219
|
+
},
|
|
220
|
+
journeyId: {
|
|
221
|
+
title: "Journey ID",
|
|
222
|
+
description: "The ID of the journey that this credential is associated with",
|
|
223
|
+
type: "string",
|
|
224
|
+
format: "uuid"
|
|
225
|
+
},
|
|
226
|
+
base64_front: {
|
|
227
|
+
title: "Front image",
|
|
228
|
+
description: "Base64 encoded image of the front of the document",
|
|
229
|
+
type: "string"
|
|
230
|
+
},
|
|
231
|
+
base64_back: {
|
|
232
|
+
title: "Back image",
|
|
233
|
+
description: "Base64 encoded image of the back of the document",
|
|
234
|
+
type: "string"
|
|
235
|
+
},
|
|
236
|
+
name: {
|
|
237
|
+
title: "Name",
|
|
238
|
+
description: "Name of the document (e.g. passport.jpg)",
|
|
239
|
+
type: "string"
|
|
240
|
+
},
|
|
241
|
+
documentType: {
|
|
242
|
+
title: "Document Type",
|
|
243
|
+
description: "Type of the document (e.g. passport)",
|
|
244
|
+
type: "string",
|
|
245
|
+
"enum": ["ID_CARD", "PASSPORT", "DRIVERS", "RESIDENCE_PERMIT", "UTILITY_BILL", "SELFIE", "VIDEO_SELFIE", "PROFILE_IMAGE", "ID_DOC_PHOTO", "AGREEMENT", "CONTRACT", "DRIVERS_TRANSLATION", "INVESTOR_DOC", "VEHICLE_REGISTRATION_CERTIFICATE", "INCOME_SOURCE", "PAYMENT_METHOD", "BANK_CARD", "COVID_VACCINATION_FORM", "OTHER"]
|
|
246
|
+
},
|
|
247
|
+
entryDate: {
|
|
248
|
+
description: "Entry date associated with the credential",
|
|
249
|
+
title: "Entry Date in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day",
|
|
250
|
+
type: "integer"
|
|
251
|
+
},
|
|
252
|
+
entryTime: {
|
|
253
|
+
description: "Entry time associated with the credential",
|
|
254
|
+
title: "Entry Time",
|
|
255
|
+
type: "string",
|
|
256
|
+
format: "time"
|
|
257
|
+
},
|
|
258
|
+
mediaType_front: {
|
|
259
|
+
title: "Media Type",
|
|
260
|
+
description: "Media type of the front of the document (e.g. image/jpeg, image/png, application/pdf)",
|
|
261
|
+
type: "string",
|
|
262
|
+
"enum": ["image/jpeg", "image/jpg", "image/png", "application/pdf"]
|
|
263
|
+
},
|
|
264
|
+
mediaType_back: {
|
|
265
|
+
title: "Media Type",
|
|
266
|
+
description: "Media type of the back of the document (e.g. image/jpeg, image/png, application/pdf)",
|
|
267
|
+
type: "string",
|
|
268
|
+
"enum": ["image/jpeg", "image/jpg", "image/png", "application/pdf"]
|
|
269
|
+
},
|
|
270
|
+
reviewAnswer: {
|
|
271
|
+
description: "Review answer from kyc provider",
|
|
272
|
+
title: "Review Answer",
|
|
273
|
+
type: "string",
|
|
274
|
+
"enum": ["RED", "YELLOW", "GREEN"]
|
|
275
|
+
},
|
|
276
|
+
reviewRejectType: {
|
|
277
|
+
description: "Review reject type",
|
|
278
|
+
title: "Review Reject Type",
|
|
279
|
+
type: "string",
|
|
280
|
+
"enum": ["FINAL", "RETRY"]
|
|
281
|
+
},
|
|
282
|
+
reviewRejectLabels: {
|
|
283
|
+
description: "Reject labels",
|
|
284
|
+
title: "Reject Labels",
|
|
285
|
+
type: "array",
|
|
286
|
+
items: {
|
|
287
|
+
type: "string",
|
|
288
|
+
"enum": ["FORGERY", "DOCUMENT_TEMPLATE", "LOW_QUALITY", "SPAM", "NOT_DOCUMENT", "SELFIE_MISMATCH", "ID_INVALID", "FOREIGNER", "DUPLICATE", "BAD_AVATAR", "WRONG_USER_REGION", "INCOMPLETE_DOCUMENT", "BLACKLIST", "BLOCKLIST", "UNSATISFACTORY_PHOTOS", "DOCUMENT_PAGE_MISSING", "DOCUMENT_DAMAGED", "REGULATIONS_VIOLATIONS", "INCONSISTENT_PROFILE", "PROBLEMATIC_APPLICANT_DATA", "ADDITIONAL_DOCUMENT_REQUIRED", "AGE_REQUIREMENT_MISMATCH", "EXPERIENCE_REQUIREMENT_MISMATCH", "CRIMINAL", "WRONG_ADDRESS", "GRAPHIC_EDITOR", "DOCUMENT_DEPRIVED", "COMPROMISED_PERSONS", "PEP", "ADVERSE_MEDIA", "FRAUDULENT_PATTERNS", "SANCTIONS", "NOT_ALL_CHECKS_COMPLETED", "FRONT_SIDE_MISSING", "BACK_SIDE_MISSING", "SCREENSHOTS", "BLACK_AND_WHITE", "INCOMPATIBLE_LANGUAGE", "EXPIRATION_DATE", "UNFILLED_ID", "BAD_SELFIE", "BAD_VIDEO_SELFIE", "BAD_FACE_MATCHING", "BAD_PROOF_OF_IDENTITY", "BAD_PROOF_OF_ADDRESS", "BAD_PROOF_OF_PAYMENT", "SELFIE_WITH_PAPER", "FRAUDULENT_LIVENESS", "OTHER", "REQUESTED_DATA_MISMATCH", "OK", "COMPANY_NOT_DEFINED_STRUCTURE", "COMPANY_NOT_DEFINED_BENEFICIARIES", "COMPANY_NOT_VALIDATED_BENEFICIARIES", "COMPANY_NOT_DEFINED_REPRESENTATIVES", "COMPANY_NOT_VALIDATED_REPRESENTATIVES", "APPLICANT_INTERRUPTED_INTERVIEW", "DOCUMENT_MISSING", "UNSUITABLE_ENV", "CONNECTION_INTERRUPTED", "UNSUPPORTED_LANGUAGE", "THIRD_PARTY_INVOLVED", "CHECK_UNAVAILABLE", "INCORRECT_SOCIAL_NUMBER"]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
isSandbox: {
|
|
292
|
+
description: "Indicates if the credential was generated in a sandbox environment",
|
|
293
|
+
title: "Is Sandbox",
|
|
294
|
+
type: "boolean"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
300
|
+
var schema$6 = {
|
|
301
|
+
description: "Stores the data of the credential",
|
|
302
|
+
title: "Credential subject",
|
|
303
|
+
type: "object",
|
|
304
|
+
required: ["id", "journeyId", "reviewAnswer", "documentType", "entryDate", "entryTime", "personalData"],
|
|
305
|
+
properties: {
|
|
306
|
+
id: {
|
|
307
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
308
|
+
title: "Credential subject ID",
|
|
309
|
+
format: "uri",
|
|
310
|
+
type: "string"
|
|
311
|
+
},
|
|
312
|
+
journeyId: {
|
|
313
|
+
description: "Journey ID of when credential was generated",
|
|
314
|
+
title: "Journey ID",
|
|
315
|
+
type: "string",
|
|
316
|
+
format: "uuid"
|
|
317
|
+
},
|
|
318
|
+
reviewAnswer: {
|
|
319
|
+
description: "Review result from kyc provider",
|
|
320
|
+
title: "Review Result",
|
|
321
|
+
type: "string",
|
|
322
|
+
"enum": ["RED", "YELLOW", "GREEN"]
|
|
323
|
+
},
|
|
324
|
+
reviewRejectType: {
|
|
325
|
+
description: "Review reject type",
|
|
326
|
+
title: "Review Reject Type",
|
|
327
|
+
type: "string",
|
|
328
|
+
"enum": ["FINAL", "RETRY"]
|
|
329
|
+
},
|
|
330
|
+
reviewRejectLabels: {
|
|
331
|
+
description: "Reject labels",
|
|
332
|
+
title: "Reject Labels",
|
|
333
|
+
type: "array",
|
|
334
|
+
items: {
|
|
335
|
+
type: "string",
|
|
336
|
+
"enum": ["FORGERY", "DOCUMENT_TEMPLATE", "LOW_QUALITY", "SPAM", "NOT_DOCUMENT", "SELFIE_MISMATCH", "ID_INVALID", "FOREIGNER", "DUPLICATE", "BAD_AVATAR", "WRONG_USER_REGION", "INCOMPLETE_DOCUMENT", "BLACKLIST", "BLOCKLIST", "UNSATISFACTORY_PHOTOS", "DOCUMENT_PAGE_MISSING", "DOCUMENT_DAMAGED", "REGULATIONS_VIOLATIONS", "INCONSISTENT_PROFILE", "PROBLEMATIC_APPLICANT_DATA", "ADDITIONAL_DOCUMENT_REQUIRED", "AGE_REQUIREMENT_MISMATCH", "EXPERIENCE_REQUIREMENT_MISMATCH", "CRIMINAL", "WRONG_ADDRESS", "GRAPHIC_EDITOR", "DOCUMENT_DEPRIVED", "COMPROMISED_PERSONS", "PEP", "ADVERSE_MEDIA", "FRAUDULENT_PATTERNS", "SANCTIONS", "NOT_ALL_CHECKS_COMPLETED", "FRONT_SIDE_MISSING", "BACK_SIDE_MISSING", "SCREENSHOTS", "BLACK_AND_WHITE", "INCOMPATIBLE_LANGUAGE", "EXPIRATION_DATE", "UNFILLED_ID", "BAD_SELFIE", "BAD_VIDEO_SELFIE", "BAD_FACE_MATCHING", "BAD_PROOF_OF_IDENTITY", "BAD_PROOF_OF_ADDRESS", "BAD_PROOF_OF_PAYMENT", "SELFIE_WITH_PAPER", "FRAUDULENT_LIVENESS", "OTHER", "REQUESTED_DATA_MISMATCH", "OK", "COMPANY_NOT_DEFINED_STRUCTURE", "COMPANY_NOT_DEFINED_BENEFICIARIES", "COMPANY_NOT_VALIDATED_BENEFICIARIES", "COMPANY_NOT_DEFINED_REPRESENTATIVES", "COMPANY_NOT_VALIDATED_REPRESENTATIVES", "APPLICANT_INTERRUPTED_INTERVIEW", "DOCUMENT_MISSING", "UNSUITABLE_ENV", "CONNECTION_INTERRUPTED", "UNSUPPORTED_LANGUAGE", "THIRD_PARTY_INVOLVED", "CHECK_UNAVAILABLE", "INCORRECT_SOCIAL_NUMBER"]
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
documentType: {
|
|
340
|
+
description: "Type of the document provided by the credential subject",
|
|
341
|
+
title: "Document Type",
|
|
342
|
+
type: "string",
|
|
343
|
+
"enum": ["ID_CARD", "PASSPORT", "DRIVERS", "RESIDENCE_PERMIT", "UTILITY_BILL", "SELFIE", "VIDEO_SELFIE", "PROFILE_IMAGE", "ID_DOC_PHOTO", "AGREEMENT", "CONTRACT", "DRIVERS_TRANSLATION", "INVESTOR_DOC", "VEHICLE_REGISTRATION_CERTIFICATE", "INCOME_SOURCE", "PAYMENT_METHOD", "BANK_CARD", "COVID_VACCINATION_FORM", "OTHER"]
|
|
344
|
+
},
|
|
345
|
+
entryDate: {
|
|
346
|
+
description: "Entry date associated with the credential",
|
|
347
|
+
title: "Entry Date in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day",
|
|
348
|
+
type: "integer"
|
|
349
|
+
},
|
|
350
|
+
entryTime: {
|
|
351
|
+
description: "Entry time associated with the credential",
|
|
352
|
+
title: "Entry Time",
|
|
353
|
+
type: "string",
|
|
354
|
+
format: "time"
|
|
355
|
+
},
|
|
356
|
+
personalData: {
|
|
357
|
+
description: "Original data extracted by the provider",
|
|
358
|
+
title: "Original Data",
|
|
359
|
+
type: "object",
|
|
360
|
+
properties: {
|
|
361
|
+
firstName: {
|
|
362
|
+
description: "First name of the credential subject",
|
|
363
|
+
title: "First Name",
|
|
364
|
+
type: "string"
|
|
365
|
+
},
|
|
366
|
+
middleName: {
|
|
367
|
+
description: "Middle name of the credential subject",
|
|
368
|
+
title: "Middle Name",
|
|
369
|
+
type: "string"
|
|
370
|
+
},
|
|
371
|
+
lastName: {
|
|
372
|
+
description: "Last name of the credential subject",
|
|
373
|
+
title: "Last Name",
|
|
374
|
+
type: "string"
|
|
375
|
+
},
|
|
376
|
+
gender: {
|
|
377
|
+
description: "Gender of the credential subject",
|
|
378
|
+
title: "Gender",
|
|
379
|
+
type: "string"
|
|
380
|
+
},
|
|
381
|
+
age: {
|
|
382
|
+
description: "Age of the credential subject",
|
|
383
|
+
title: "Age",
|
|
384
|
+
type: "integer",
|
|
385
|
+
minimum: 0,
|
|
386
|
+
maximum: 125
|
|
387
|
+
},
|
|
388
|
+
citizenship: {
|
|
389
|
+
title: "Citizenship",
|
|
390
|
+
description: "Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
391
|
+
type: "string",
|
|
392
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA", "ANT", "XKX"]
|
|
393
|
+
},
|
|
394
|
+
country: {
|
|
395
|
+
description: "Country of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
396
|
+
title: "Country",
|
|
397
|
+
type: "string",
|
|
398
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA", "ANT", "XKX"]
|
|
399
|
+
},
|
|
400
|
+
fullName: {
|
|
401
|
+
description: "Full name of the credential subject",
|
|
402
|
+
title: "Full Name",
|
|
403
|
+
type: "string"
|
|
404
|
+
},
|
|
405
|
+
birthDate: {
|
|
406
|
+
title: "Birth Date",
|
|
407
|
+
description: "Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day",
|
|
408
|
+
type: "integer"
|
|
409
|
+
},
|
|
410
|
+
countryOfBirth: {
|
|
411
|
+
title: "Country of Birth",
|
|
412
|
+
description: "Country of birth of the credential subject - - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
413
|
+
type: "string",
|
|
414
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA", "ANT", "XKX"]
|
|
415
|
+
},
|
|
416
|
+
stateOfBirth: {
|
|
417
|
+
title: "State of Birth",
|
|
418
|
+
type: "string",
|
|
419
|
+
description: "State of birth of the credential subject"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
isSandbox: {
|
|
424
|
+
description: "Indicates if the credential was generated in a sandbox environment",
|
|
425
|
+
title: "Is Sandbox",
|
|
426
|
+
type: "boolean"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
432
|
+
var schema$5 = {
|
|
433
|
+
description: "Stores the data of the credential",
|
|
434
|
+
title: "Credential subject",
|
|
435
|
+
type: "object",
|
|
436
|
+
required: ["id", "journeyId", "documentType", "entryDate", "entryTime"],
|
|
437
|
+
properties: {
|
|
438
|
+
id: {
|
|
439
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
440
|
+
title: "Credential subject ID",
|
|
441
|
+
format: "uri",
|
|
442
|
+
type: "string"
|
|
443
|
+
},
|
|
444
|
+
journeyId: {
|
|
445
|
+
title: "Journey ID",
|
|
446
|
+
description: "The ID of the journey that this credential is associated with",
|
|
447
|
+
type: "string",
|
|
448
|
+
format: "uuid"
|
|
449
|
+
},
|
|
450
|
+
country: {
|
|
451
|
+
title: "Country",
|
|
452
|
+
description: "The country of residence - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
453
|
+
type: "string",
|
|
454
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA", "ANT", "XKX"]
|
|
455
|
+
},
|
|
456
|
+
base64: {
|
|
457
|
+
title: "Base64",
|
|
458
|
+
description: "Base64 encoded image of the proof of residence",
|
|
459
|
+
type: "string"
|
|
460
|
+
},
|
|
461
|
+
name: {
|
|
462
|
+
title: "Name",
|
|
463
|
+
description: "Name of the document (e.g. ProofOfResidence.jpg)",
|
|
464
|
+
type: "string"
|
|
465
|
+
},
|
|
466
|
+
documentType: {
|
|
467
|
+
title: "Type",
|
|
468
|
+
description: "Type of the document (e.g. Gas bill, Internet bill, Electricity bill, Rent agreement, Bank statement)",
|
|
469
|
+
type: "string",
|
|
470
|
+
"enum": ["Gas_bill", "Internet_bill", "Electricity_bill", "Rent_agreement", "Bank_statement"]
|
|
471
|
+
},
|
|
472
|
+
entryDate: {
|
|
473
|
+
description: "Entry date associated with the credential",
|
|
474
|
+
title: "Entry Date in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day",
|
|
475
|
+
type: "integer"
|
|
476
|
+
},
|
|
477
|
+
entryTime: {
|
|
478
|
+
description: "Entry time associated with the credential",
|
|
479
|
+
title: "Entry Time",
|
|
480
|
+
type: "string",
|
|
481
|
+
format: "time"
|
|
482
|
+
},
|
|
483
|
+
mediaType: {
|
|
484
|
+
title: "Media Type",
|
|
485
|
+
description: "Media type of the document (e.g. image/jpeg, image/png, application/pdf)",
|
|
486
|
+
type: "string",
|
|
487
|
+
"enum": ["image/jpeg", "image/jpg", "image/png", "application/pdf"]
|
|
488
|
+
},
|
|
489
|
+
county: {
|
|
490
|
+
title: "County",
|
|
491
|
+
description: "The county of residence",
|
|
492
|
+
type: "string"
|
|
493
|
+
},
|
|
494
|
+
city: {
|
|
495
|
+
title: "City",
|
|
496
|
+
description: "The city of residence",
|
|
497
|
+
type: "string"
|
|
498
|
+
},
|
|
499
|
+
streetName: {
|
|
500
|
+
title: "Street name",
|
|
501
|
+
description: "The street name of residence",
|
|
502
|
+
type: "string"
|
|
503
|
+
},
|
|
504
|
+
postalCode: {
|
|
505
|
+
title: "Postal Code",
|
|
506
|
+
description: "The postal code of residence",
|
|
507
|
+
type: "string"
|
|
508
|
+
},
|
|
509
|
+
isSandbox: {
|
|
510
|
+
description: "Indicates if the credential was generated in a sandbox environment",
|
|
511
|
+
title: "Is Sandbox",
|
|
512
|
+
type: "boolean"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
518
|
+
var schema$4 = {
|
|
519
|
+
description: "Stores the data of the credential",
|
|
520
|
+
title: "Credential subject",
|
|
521
|
+
type: "object",
|
|
522
|
+
required: ["id", "journeyId", "base64", "name", "mediaType", "reviewAnswer", "entryDate", "entryTime"],
|
|
523
|
+
properties: {
|
|
524
|
+
id: {
|
|
525
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
526
|
+
title: "Credential subject ID",
|
|
527
|
+
format: "uri",
|
|
528
|
+
type: "string"
|
|
529
|
+
},
|
|
530
|
+
journeyId: {
|
|
531
|
+
title: "Journey ID",
|
|
532
|
+
description: "The ID of the journey that this credential is associated with",
|
|
533
|
+
type: "string",
|
|
534
|
+
format: "uuid"
|
|
535
|
+
},
|
|
536
|
+
base64: {
|
|
537
|
+
title: "Base64",
|
|
538
|
+
description: "Base64 encoded image of the selfie image",
|
|
539
|
+
type: "string"
|
|
540
|
+
},
|
|
541
|
+
name: {
|
|
542
|
+
title: "Name",
|
|
543
|
+
description: "Name of the docuemnt (e.g. selfie.jpg)",
|
|
544
|
+
type: "string"
|
|
545
|
+
},
|
|
546
|
+
mediaType: {
|
|
547
|
+
title: "Media Type",
|
|
548
|
+
description: "Media type of the document (e.g. image/jpeg, image/png)",
|
|
549
|
+
type: "string",
|
|
550
|
+
"enum": ["image/jpeg", "image/jpg", "application/pdf", "image/png"]
|
|
551
|
+
},
|
|
552
|
+
entryDate: {
|
|
553
|
+
description: "Entry date associated with the credential",
|
|
554
|
+
title: "Entry Date in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day",
|
|
555
|
+
type: "integer"
|
|
556
|
+
},
|
|
557
|
+
entryTime: {
|
|
558
|
+
description: "Entry time associated with the credential",
|
|
559
|
+
title: "Entry Time",
|
|
560
|
+
type: "string",
|
|
561
|
+
format: "time"
|
|
562
|
+
},
|
|
563
|
+
reviewAnswer: {
|
|
564
|
+
description: "Review result from kyc provider",
|
|
565
|
+
title: "Review Result",
|
|
566
|
+
type: "string",
|
|
567
|
+
"enum": ["RED", "YELLOW", "GREEN"]
|
|
568
|
+
},
|
|
569
|
+
reviewRejectType: {
|
|
570
|
+
description: "Review reject type",
|
|
571
|
+
title: "Review Reject Type",
|
|
572
|
+
type: "string",
|
|
573
|
+
"enum": ["FINAL", "RETRY"]
|
|
574
|
+
},
|
|
575
|
+
reviewRejectLabels: {
|
|
576
|
+
description: "Reject labels",
|
|
577
|
+
title: "Reject Labels",
|
|
578
|
+
type: "array",
|
|
579
|
+
items: {
|
|
580
|
+
type: "string",
|
|
581
|
+
"enum": ["FORGERY", "DOCUMENT_TEMPLATE", "LOW_QUALITY", "SPAM", "NOT_DOCUMENT", "SELFIE_MISMATCH", "ID_INVALID", "FOREIGNER", "DUPLICATE", "BAD_AVATAR", "WRONG_USER_REGION", "INCOMPLETE_DOCUMENT", "BLACKLIST", "BLOCKLIST", "UNSATISFACTORY_PHOTOS", "DOCUMENT_PAGE_MISSING", "DOCUMENT_DAMAGED", "REGULATIONS_VIOLATIONS", "INCONSISTENT_PROFILE", "PROBLEMATIC_APPLICANT_DATA", "ADDITIONAL_DOCUMENT_REQUIRED", "AGE_REQUIREMENT_MISMATCH", "EXPERIENCE_REQUIREMENT_MISMATCH", "CRIMINAL", "WRONG_ADDRESS", "GRAPHIC_EDITOR", "DOCUMENT_DEPRIVED", "COMPROMISED_PERSONS", "PEP", "ADVERSE_MEDIA", "FRAUDULENT_PATTERNS", "SANCTIONS", "NOT_ALL_CHECKS_COMPLETED", "FRONT_SIDE_MISSING", "BACK_SIDE_MISSING", "SCREENSHOTS", "BLACK_AND_WHITE", "INCOMPATIBLE_LANGUAGE", "EXPIRATION_DATE", "UNFILLED_ID", "BAD_SELFIE", "BAD_VIDEO_SELFIE", "BAD_FACE_MATCHING", "BAD_PROOF_OF_IDENTITY", "BAD_PROOF_OF_ADDRESS", "BAD_PROOF_OF_PAYMENT", "SELFIE_WITH_PAPER", "FRAUDULENT_LIVENESS", "OTHER", "REQUESTED_DATA_MISMATCH", "OK", "COMPANY_NOT_DEFINED_STRUCTURE", "COMPANY_NOT_DEFINED_BENEFICIARIES", "COMPANY_NOT_VALIDATED_BENEFICIARIES", "COMPANY_NOT_DEFINED_REPRESENTATIVES", "COMPANY_NOT_VALIDATED_REPRESENTATIVES", "APPLICANT_INTERRUPTED_INTERVIEW", "DOCUMENT_MISSING", "UNSUITABLE_ENV", "CONNECTION_INTERRUPTED", "UNSUPPORTED_LANGUAGE", "THIRD_PARTY_INVOLVED", "CHECK_UNAVAILABLE", "INCORRECT_SOCIAL_NUMBER"]
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
isSandbox: {
|
|
585
|
+
description: "Indicates if the credential was generated in a sandbox environment",
|
|
586
|
+
title: "Is Sandbox",
|
|
587
|
+
type: "boolean"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
593
|
+
var schema$3 = {
|
|
594
|
+
description: "Stores the data of the credential",
|
|
595
|
+
title: "Credential subject",
|
|
596
|
+
type: "object",
|
|
597
|
+
required: ["journeyId", "amendmentsData", "originalData", "personalDetails", "id"],
|
|
598
|
+
properties: {
|
|
599
|
+
id: {
|
|
600
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
601
|
+
title: "Credential subject ID",
|
|
602
|
+
format: "uri",
|
|
603
|
+
type: "string"
|
|
604
|
+
},
|
|
605
|
+
journeyId: {
|
|
606
|
+
description: "Journey ID of when credential was generated",
|
|
607
|
+
title: "Journey ID",
|
|
608
|
+
type: "string",
|
|
609
|
+
format: "uuid"
|
|
610
|
+
},
|
|
611
|
+
amendmentsData: {
|
|
612
|
+
type: "object",
|
|
613
|
+
title: "Amendments Data",
|
|
614
|
+
description: "Details related to the amendments made to the original data.",
|
|
615
|
+
properties: {
|
|
616
|
+
data: {
|
|
617
|
+
title: "Amendments Data - Personal Details",
|
|
618
|
+
description: "Personal details manually amended by the holder/user during authentication process.",
|
|
619
|
+
type: "object",
|
|
620
|
+
properties: {
|
|
621
|
+
citizenship: {
|
|
622
|
+
title: "Citizenship",
|
|
623
|
+
description: "The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
624
|
+
type: "string",
|
|
625
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
626
|
+
},
|
|
627
|
+
documentType: {
|
|
628
|
+
title: "Document Type",
|
|
629
|
+
description: "The type of document used to verify the credential subject",
|
|
630
|
+
type: "string",
|
|
631
|
+
"enum": ["Agents License", "Driving License", "Electoral Card", "Foreigner Identification Card", "Health Card", "Job License", "Membership Identification Card", "Military Identification Card", "National Identification Card", "Passport", "Proof of Age Card", "Travel Permit", "Visa", "Weapons Licence"]
|
|
632
|
+
},
|
|
633
|
+
firstName: {
|
|
634
|
+
title: "First Name",
|
|
635
|
+
description: "The first name of the credential subject",
|
|
636
|
+
type: "string"
|
|
637
|
+
},
|
|
638
|
+
lastName: {
|
|
639
|
+
title: "Last Name",
|
|
640
|
+
description: "The last name of the credential subject",
|
|
641
|
+
type: "string"
|
|
642
|
+
},
|
|
643
|
+
gender: {
|
|
644
|
+
title: "Gender",
|
|
645
|
+
description: "Gender of the credential subject",
|
|
646
|
+
type: "string"
|
|
647
|
+
},
|
|
648
|
+
addressLine1: {
|
|
649
|
+
title: "Address Line 1",
|
|
650
|
+
description: "Address line 1 of the credential subject",
|
|
651
|
+
type: "string"
|
|
652
|
+
},
|
|
653
|
+
addressLine2: {
|
|
654
|
+
title: "Address Line 2",
|
|
655
|
+
description: "Address line 2 of the credential subject",
|
|
656
|
+
type: "string"
|
|
657
|
+
},
|
|
658
|
+
birthday: {
|
|
659
|
+
title: "Birthday",
|
|
660
|
+
description: "Birthday of the credential subject",
|
|
661
|
+
type: "string",
|
|
662
|
+
format: "date"
|
|
663
|
+
},
|
|
664
|
+
placeOfBirth: {
|
|
665
|
+
title: "Place of Birth",
|
|
666
|
+
description: "Place of birth of the credential subject",
|
|
667
|
+
type: "string"
|
|
668
|
+
},
|
|
669
|
+
countryOfResidence: {
|
|
670
|
+
title: "Country of Residence",
|
|
671
|
+
description: "Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
672
|
+
type: "string",
|
|
673
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
674
|
+
},
|
|
675
|
+
age: {
|
|
676
|
+
title: "Age",
|
|
677
|
+
description: "Age of the credential subject",
|
|
678
|
+
type: "integer",
|
|
679
|
+
minimum: 0,
|
|
680
|
+
maximum: 125
|
|
681
|
+
},
|
|
682
|
+
city: {
|
|
683
|
+
title: "City",
|
|
684
|
+
description: "City of the credential subject",
|
|
685
|
+
type: "string"
|
|
686
|
+
},
|
|
687
|
+
province: {
|
|
688
|
+
title: "Province",
|
|
689
|
+
description: "Province of the credential subject",
|
|
690
|
+
type: "string"
|
|
691
|
+
},
|
|
692
|
+
postalCode: {
|
|
693
|
+
title: "Postal Code",
|
|
694
|
+
description: "Postal code of the credential subject",
|
|
695
|
+
type: "string"
|
|
696
|
+
},
|
|
697
|
+
emailAddress: {
|
|
698
|
+
title: "Email Address",
|
|
699
|
+
description: "Email address of the credential subject",
|
|
700
|
+
type: "string"
|
|
701
|
+
},
|
|
702
|
+
phoneNumber: {
|
|
703
|
+
title: "Phone Number",
|
|
704
|
+
description: "Phone number of the credential subject",
|
|
705
|
+
type: "string"
|
|
706
|
+
},
|
|
707
|
+
countryOfBirth: {
|
|
708
|
+
title: "Country of Birth",
|
|
709
|
+
description: "Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
710
|
+
type: "string",
|
|
711
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
712
|
+
},
|
|
713
|
+
middleName: {
|
|
714
|
+
title: "Middle Name",
|
|
715
|
+
description: "Middle name of the credential subject",
|
|
716
|
+
type: "string"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
authenticateSPResult: {
|
|
721
|
+
title: "Authenticate SP Result",
|
|
722
|
+
description: "Result of the authentication request",
|
|
723
|
+
type: "object",
|
|
724
|
+
properties: {
|
|
725
|
+
AuthenticationID: {
|
|
726
|
+
type: "string",
|
|
727
|
+
title: "Authentication ID",
|
|
728
|
+
description: "The ID of the authentication request"
|
|
729
|
+
},
|
|
730
|
+
Timestamp: {
|
|
731
|
+
type: "string",
|
|
732
|
+
format: "date-time",
|
|
733
|
+
title: "Timestamp",
|
|
734
|
+
description: "The timestamp of the authentication request"
|
|
735
|
+
},
|
|
736
|
+
CustomerRef: {
|
|
737
|
+
title: "Customer Reference",
|
|
738
|
+
description: "The customer reference of the authentication request",
|
|
739
|
+
type: "string"
|
|
740
|
+
},
|
|
741
|
+
ProfileID: {
|
|
742
|
+
title: "Profile ID",
|
|
743
|
+
description: "The ID of the profile used for the authentication request",
|
|
744
|
+
type: "string"
|
|
745
|
+
},
|
|
746
|
+
ProfileName: {
|
|
747
|
+
title: "Profile Name",
|
|
748
|
+
description: "The name of the profile used for the authentication request",
|
|
749
|
+
type: "string"
|
|
750
|
+
},
|
|
751
|
+
ProfileVersion: {
|
|
752
|
+
title: "Profile Version",
|
|
753
|
+
description: "The version of the profile used for the authentication request",
|
|
754
|
+
type: "integer"
|
|
755
|
+
},
|
|
756
|
+
ProfileRevision: {
|
|
757
|
+
title: "Profile Revision",
|
|
758
|
+
description: "The revision of the profile used for the authentication request",
|
|
759
|
+
type: "integer"
|
|
760
|
+
},
|
|
761
|
+
ProfileState: {
|
|
762
|
+
title: "Profile State",
|
|
763
|
+
description: "The state of the profile used for the authentication request",
|
|
764
|
+
type: "string"
|
|
765
|
+
},
|
|
766
|
+
ResultCodes: {
|
|
767
|
+
title: "Result Codes",
|
|
768
|
+
description: "The result codes of the authentication request",
|
|
769
|
+
type: "object",
|
|
770
|
+
properties: {
|
|
771
|
+
GlobalItemCheckResultCodes: {
|
|
772
|
+
type: "array",
|
|
773
|
+
items: {
|
|
774
|
+
type: "object",
|
|
775
|
+
properties: {
|
|
776
|
+
Name: {
|
|
777
|
+
type: "string"
|
|
778
|
+
},
|
|
779
|
+
Description: {
|
|
780
|
+
type: "string"
|
|
781
|
+
},
|
|
782
|
+
Comment: {
|
|
783
|
+
type: "object",
|
|
784
|
+
properties: {
|
|
785
|
+
GlobalItemCheckResultCode: {
|
|
786
|
+
type: "array",
|
|
787
|
+
items: {
|
|
788
|
+
type: "object",
|
|
789
|
+
properties: {
|
|
790
|
+
Description: {
|
|
791
|
+
type: "string"
|
|
792
|
+
},
|
|
793
|
+
Code: {
|
|
794
|
+
type: "integer"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
Match: {
|
|
802
|
+
type: "object",
|
|
803
|
+
properties: {
|
|
804
|
+
GlobalItemCheckResultCode: {
|
|
805
|
+
type: "array",
|
|
806
|
+
items: {
|
|
807
|
+
type: "object",
|
|
808
|
+
properties: {
|
|
809
|
+
Description: {
|
|
810
|
+
type: "string"
|
|
811
|
+
},
|
|
812
|
+
Code: {
|
|
813
|
+
type: "integer"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
Warning: {
|
|
821
|
+
type: "object",
|
|
822
|
+
properties: {
|
|
823
|
+
GlobalItemCheckResultCode: {
|
|
824
|
+
type: "array",
|
|
825
|
+
items: {
|
|
826
|
+
type: "object",
|
|
827
|
+
properties: {
|
|
828
|
+
Description: {
|
|
829
|
+
type: "string"
|
|
830
|
+
},
|
|
831
|
+
Code: {
|
|
832
|
+
type: "integer"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
Mismatch: {
|
|
840
|
+
type: "object",
|
|
841
|
+
properties: {
|
|
842
|
+
GlobalItemCheckResultCode: {
|
|
843
|
+
type: "array",
|
|
844
|
+
items: {
|
|
845
|
+
type: "object",
|
|
846
|
+
properties: {
|
|
847
|
+
Description: {
|
|
848
|
+
type: "string"
|
|
849
|
+
},
|
|
850
|
+
Code: {
|
|
851
|
+
type: "integer"
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
ID: {
|
|
859
|
+
type: "integer"
|
|
860
|
+
},
|
|
861
|
+
Pass: {
|
|
862
|
+
type: "string"
|
|
863
|
+
},
|
|
864
|
+
Address: {
|
|
865
|
+
type: "string"
|
|
866
|
+
},
|
|
867
|
+
Forename: {
|
|
868
|
+
type: "string"
|
|
869
|
+
},
|
|
870
|
+
Surname: {
|
|
871
|
+
type: "string"
|
|
872
|
+
},
|
|
873
|
+
DOB: {
|
|
874
|
+
type: "string"
|
|
875
|
+
},
|
|
876
|
+
Alert: {
|
|
877
|
+
type: "string"
|
|
878
|
+
},
|
|
879
|
+
SanctionsMatches: {
|
|
880
|
+
type: "object",
|
|
881
|
+
properties: {
|
|
882
|
+
GlobalSanctionsMatch: {
|
|
883
|
+
type: "array",
|
|
884
|
+
items: {
|
|
885
|
+
type: "object",
|
|
886
|
+
properties: {
|
|
887
|
+
SanctionID: {
|
|
888
|
+
type: "string"
|
|
889
|
+
},
|
|
890
|
+
Url: {
|
|
891
|
+
type: "string"
|
|
892
|
+
},
|
|
893
|
+
Rank: {
|
|
894
|
+
type: "integer"
|
|
895
|
+
},
|
|
896
|
+
CaseID: {
|
|
897
|
+
type: "string"
|
|
898
|
+
},
|
|
899
|
+
SearchID: {
|
|
900
|
+
type: "string"
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
Score: {
|
|
913
|
+
title: "Score",
|
|
914
|
+
description: "The score of the authentication request",
|
|
915
|
+
type: "integer"
|
|
916
|
+
},
|
|
917
|
+
BandText: {
|
|
918
|
+
title: "Band Text",
|
|
919
|
+
description: "The band text of the authentication request",
|
|
920
|
+
type: "string"
|
|
921
|
+
},
|
|
922
|
+
Country: {
|
|
923
|
+
title: "Country",
|
|
924
|
+
description: "Country type of the authentication request",
|
|
925
|
+
type: "string"
|
|
926
|
+
},
|
|
927
|
+
ItemCheckDecisionBands: {
|
|
928
|
+
title: "Item Check Decision Bands",
|
|
929
|
+
description: "The item check decision bands of the authentication request",
|
|
930
|
+
type: "object",
|
|
931
|
+
properties: {
|
|
932
|
+
GlobalItemCheckDecisionBands: {
|
|
933
|
+
type: "array",
|
|
934
|
+
items: {
|
|
935
|
+
type: "object",
|
|
936
|
+
properties: {
|
|
937
|
+
ID: {
|
|
938
|
+
type: "integer"
|
|
939
|
+
},
|
|
940
|
+
BandScore: {
|
|
941
|
+
type: "integer"
|
|
942
|
+
},
|
|
943
|
+
BandText: {
|
|
944
|
+
type: "string"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
pepIntelligenceResult: {
|
|
954
|
+
type: "array",
|
|
955
|
+
items: {
|
|
956
|
+
type: "object",
|
|
957
|
+
properties: {
|
|
958
|
+
Fullname: {
|
|
959
|
+
type: "string"
|
|
960
|
+
},
|
|
961
|
+
Aliases: {
|
|
962
|
+
type: "object",
|
|
963
|
+
properties: {
|
|
964
|
+
elements: {
|
|
965
|
+
type: "array",
|
|
966
|
+
items: {
|
|
967
|
+
type: "string"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
SanctionsAddresses: {
|
|
973
|
+
type: "object",
|
|
974
|
+
properties: {
|
|
975
|
+
GlobalSanctionsAddress: {
|
|
976
|
+
type: "array",
|
|
977
|
+
items: {
|
|
978
|
+
type: "object",
|
|
979
|
+
properties: {
|
|
980
|
+
AddressLine: {
|
|
981
|
+
type: "string"
|
|
982
|
+
},
|
|
983
|
+
City: {
|
|
984
|
+
type: "string"
|
|
985
|
+
},
|
|
986
|
+
Country: {
|
|
987
|
+
description: "Full name of country",
|
|
988
|
+
type: "string"
|
|
989
|
+
},
|
|
990
|
+
Region: {
|
|
991
|
+
type: "string"
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
SanctionsDates: {
|
|
999
|
+
type: "object",
|
|
1000
|
+
properties: {
|
|
1001
|
+
GlobalSanctionsDate: {
|
|
1002
|
+
type: "object",
|
|
1003
|
+
properties: {
|
|
1004
|
+
DateType: {
|
|
1005
|
+
type: "string"
|
|
1006
|
+
},
|
|
1007
|
+
Day: {
|
|
1008
|
+
type: "integer"
|
|
1009
|
+
},
|
|
1010
|
+
Month: {
|
|
1011
|
+
type: "integer"
|
|
1012
|
+
},
|
|
1013
|
+
Year: {
|
|
1014
|
+
type: "integer"
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
IdentityInformation: {
|
|
1021
|
+
type: "string"
|
|
1022
|
+
},
|
|
1023
|
+
SanctionsPositions: {
|
|
1024
|
+
type: "object",
|
|
1025
|
+
properties: {
|
|
1026
|
+
GlobalSanctionsPosition: {
|
|
1027
|
+
type: "array",
|
|
1028
|
+
items: {
|
|
1029
|
+
type: "object",
|
|
1030
|
+
properties: {
|
|
1031
|
+
Position: {
|
|
1032
|
+
type: "string"
|
|
1033
|
+
},
|
|
1034
|
+
Country: {
|
|
1035
|
+
type: "string"
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
sanctionsEnforcementsResult: {
|
|
1046
|
+
type: "array",
|
|
1047
|
+
items: {
|
|
1048
|
+
type: "object",
|
|
1049
|
+
properties: {
|
|
1050
|
+
Fullname: {
|
|
1051
|
+
type: "string"
|
|
1052
|
+
},
|
|
1053
|
+
SanctionsBodies: {
|
|
1054
|
+
type: "object",
|
|
1055
|
+
properties: {
|
|
1056
|
+
elements: {
|
|
1057
|
+
type: "array",
|
|
1058
|
+
items: {
|
|
1059
|
+
type: "integer"
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
Aliases: {
|
|
1065
|
+
type: "object",
|
|
1066
|
+
properties: {
|
|
1067
|
+
elements: {
|
|
1068
|
+
type: "array",
|
|
1069
|
+
items: {
|
|
1070
|
+
type: "string"
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
SanctionsAddresses: {
|
|
1076
|
+
type: "object",
|
|
1077
|
+
properties: {
|
|
1078
|
+
GlobalSanctionsAddress: {
|
|
1079
|
+
type: "array",
|
|
1080
|
+
items: {
|
|
1081
|
+
type: "object",
|
|
1082
|
+
properties: {
|
|
1083
|
+
AddressLine: {
|
|
1084
|
+
type: "string"
|
|
1085
|
+
},
|
|
1086
|
+
City: {
|
|
1087
|
+
type: "string"
|
|
1088
|
+
},
|
|
1089
|
+
Country: {
|
|
1090
|
+
description: "Full name of country",
|
|
1091
|
+
type: "string"
|
|
1092
|
+
},
|
|
1093
|
+
Region: {
|
|
1094
|
+
type: "string"
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
SanctionsDates: {
|
|
1102
|
+
type: "object",
|
|
1103
|
+
properties: {
|
|
1104
|
+
GlobalSanctionsDate: {
|
|
1105
|
+
type: "object",
|
|
1106
|
+
properties: {
|
|
1107
|
+
DateType: {
|
|
1108
|
+
type: "string"
|
|
1109
|
+
},
|
|
1110
|
+
Day: {
|
|
1111
|
+
type: "integer"
|
|
1112
|
+
},
|
|
1113
|
+
Month: {
|
|
1114
|
+
type: "integer"
|
|
1115
|
+
},
|
|
1116
|
+
Year: {
|
|
1117
|
+
type: "integer"
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
IdentityInformation: {
|
|
1124
|
+
type: "string"
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
originalData: {
|
|
1132
|
+
title: "Original Data",
|
|
1133
|
+
description: "Details related to the original data before any amendments",
|
|
1134
|
+
type: "object",
|
|
1135
|
+
properties: {
|
|
1136
|
+
data: {
|
|
1137
|
+
title: "Original Data - Personal Details",
|
|
1138
|
+
description: "Unmodified personal details imported directly from document during authentication process.",
|
|
1139
|
+
type: "object",
|
|
1140
|
+
properties: {
|
|
1141
|
+
citizenship: {
|
|
1142
|
+
title: "Citizenship",
|
|
1143
|
+
description: "The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1144
|
+
type: "string",
|
|
1145
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1146
|
+
},
|
|
1147
|
+
documentType: {
|
|
1148
|
+
title: "Document Type",
|
|
1149
|
+
description: "The type of document used to verify the credential subject",
|
|
1150
|
+
type: "string",
|
|
1151
|
+
"enum": ["Agents License", "Driving License", "Electoral Card", "Foreigner Identification Card", "Health Card", "Job License", "Membership Identification Card", "Military Identification Card", "National Identification Card", "Passport", "Proof of Age Card", "Travel Permit", "Visa", "Weapons Licence"]
|
|
1152
|
+
},
|
|
1153
|
+
firstName: {
|
|
1154
|
+
title: "First Name",
|
|
1155
|
+
description: "The first name of the credential subject",
|
|
1156
|
+
type: "string"
|
|
1157
|
+
},
|
|
1158
|
+
lastName: {
|
|
1159
|
+
title: "Last Name",
|
|
1160
|
+
description: "The last name of the credential subject",
|
|
1161
|
+
type: "string"
|
|
1162
|
+
},
|
|
1163
|
+
gender: {
|
|
1164
|
+
title: "Gender",
|
|
1165
|
+
description: "Gender of the credential subject",
|
|
1166
|
+
type: "string"
|
|
1167
|
+
},
|
|
1168
|
+
addressLine1: {
|
|
1169
|
+
title: "Address Line 1",
|
|
1170
|
+
description: "Address line 1 of the credential subject",
|
|
1171
|
+
type: "string"
|
|
1172
|
+
},
|
|
1173
|
+
addressLine2: {
|
|
1174
|
+
title: "Address Line 2",
|
|
1175
|
+
description: "Address line 2 of the credential subject",
|
|
1176
|
+
type: "string"
|
|
1177
|
+
},
|
|
1178
|
+
birthday: {
|
|
1179
|
+
title: "Birthday",
|
|
1180
|
+
description: "Birthday of the credential subject",
|
|
1181
|
+
type: "string",
|
|
1182
|
+
format: "date"
|
|
1183
|
+
},
|
|
1184
|
+
placeOfBirth: {
|
|
1185
|
+
title: "Place of Birth",
|
|
1186
|
+
description: "Place of birth of the credential subject",
|
|
1187
|
+
type: "string"
|
|
1188
|
+
},
|
|
1189
|
+
countryOfResidence: {
|
|
1190
|
+
title: "Country of Residence",
|
|
1191
|
+
description: "Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1192
|
+
type: "string",
|
|
1193
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1194
|
+
},
|
|
1195
|
+
age: {
|
|
1196
|
+
title: "Age",
|
|
1197
|
+
description: "Age of the credential subject",
|
|
1198
|
+
type: "integer",
|
|
1199
|
+
minimum: 0,
|
|
1200
|
+
maximum: 125
|
|
1201
|
+
},
|
|
1202
|
+
city: {
|
|
1203
|
+
title: "City",
|
|
1204
|
+
description: "City of the credential subject",
|
|
1205
|
+
type: "string"
|
|
1206
|
+
},
|
|
1207
|
+
province: {
|
|
1208
|
+
title: "Province",
|
|
1209
|
+
description: "Province of the credential subject",
|
|
1210
|
+
type: "string"
|
|
1211
|
+
},
|
|
1212
|
+
postalCode: {
|
|
1213
|
+
title: "Postal Code",
|
|
1214
|
+
description: "Postal code of the credential subject",
|
|
1215
|
+
type: "string"
|
|
1216
|
+
},
|
|
1217
|
+
emailAddress: {
|
|
1218
|
+
title: "Email Address",
|
|
1219
|
+
description: "Email address of the credential subject",
|
|
1220
|
+
type: "string"
|
|
1221
|
+
},
|
|
1222
|
+
phoneNumber: {
|
|
1223
|
+
title: "Phone Number",
|
|
1224
|
+
description: "Phone number of the credential subject",
|
|
1225
|
+
type: "string"
|
|
1226
|
+
},
|
|
1227
|
+
countryOfBirth: {
|
|
1228
|
+
title: "Country of Birth",
|
|
1229
|
+
description: "Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1230
|
+
type: "string",
|
|
1231
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1232
|
+
},
|
|
1233
|
+
middleName: {
|
|
1234
|
+
title: "Middle Name",
|
|
1235
|
+
description: "Middle name of the credential subject",
|
|
1236
|
+
type: "string"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
authenticateSPResult: {
|
|
1241
|
+
title: "Authenticate SP Result",
|
|
1242
|
+
description: "The result of the Authenticate SP check",
|
|
1243
|
+
type: "object",
|
|
1244
|
+
properties: {
|
|
1245
|
+
AuthenticationID: {
|
|
1246
|
+
type: "string",
|
|
1247
|
+
title: "Authentication ID",
|
|
1248
|
+
description: "The ID of the authentication request"
|
|
1249
|
+
},
|
|
1250
|
+
Timestamp: {
|
|
1251
|
+
type: "string",
|
|
1252
|
+
format: "date-time",
|
|
1253
|
+
title: "Timestamp",
|
|
1254
|
+
description: "The date and time of the authentication request"
|
|
1255
|
+
},
|
|
1256
|
+
CustomerRef: {
|
|
1257
|
+
type: "string",
|
|
1258
|
+
title: "Customer Reference",
|
|
1259
|
+
description: "The customer reference of the authentication request"
|
|
1260
|
+
},
|
|
1261
|
+
ProfileID: {
|
|
1262
|
+
type: "string",
|
|
1263
|
+
title: "Profile ID",
|
|
1264
|
+
description: "The ID of the profile used for the authentication request"
|
|
1265
|
+
},
|
|
1266
|
+
ProfileName: {
|
|
1267
|
+
type: "string",
|
|
1268
|
+
title: "Profile Name",
|
|
1269
|
+
description: "The name of the profile used for the authentication request"
|
|
1270
|
+
},
|
|
1271
|
+
ProfileVersion: {
|
|
1272
|
+
type: "integer",
|
|
1273
|
+
title: "Profile Version",
|
|
1274
|
+
description: "The version of the profile used for the authentication request"
|
|
1275
|
+
},
|
|
1276
|
+
ProfileRevision: {
|
|
1277
|
+
type: "integer",
|
|
1278
|
+
title: "Profile Revision",
|
|
1279
|
+
description: "The revision of the profile used for the authentication request"
|
|
1280
|
+
},
|
|
1281
|
+
ProfileState: {
|
|
1282
|
+
type: "string",
|
|
1283
|
+
title: "Profile State",
|
|
1284
|
+
description: "The state of the profile used for the authentication request"
|
|
1285
|
+
},
|
|
1286
|
+
ResultCodes: {
|
|
1287
|
+
type: "object",
|
|
1288
|
+
title: "Result Codes",
|
|
1289
|
+
description: "The result codes of the authentication request",
|
|
1290
|
+
properties: {
|
|
1291
|
+
GlobalItemCheckResultCodes: {
|
|
1292
|
+
type: "array",
|
|
1293
|
+
items: {
|
|
1294
|
+
type: "object",
|
|
1295
|
+
properties: {
|
|
1296
|
+
Name: {
|
|
1297
|
+
type: "string"
|
|
1298
|
+
},
|
|
1299
|
+
Description: {
|
|
1300
|
+
type: "string"
|
|
1301
|
+
},
|
|
1302
|
+
Comment: {
|
|
1303
|
+
type: "object",
|
|
1304
|
+
properties: {
|
|
1305
|
+
GlobalItemCheckResultCode: {
|
|
1306
|
+
type: "array",
|
|
1307
|
+
items: {
|
|
1308
|
+
type: "object",
|
|
1309
|
+
properties: {
|
|
1310
|
+
Description: {
|
|
1311
|
+
type: "string"
|
|
1312
|
+
},
|
|
1313
|
+
Code: {
|
|
1314
|
+
type: "integer"
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
Match: {
|
|
1322
|
+
type: "object",
|
|
1323
|
+
properties: {
|
|
1324
|
+
GlobalItemCheckResultCode: {
|
|
1325
|
+
type: "array",
|
|
1326
|
+
items: {
|
|
1327
|
+
type: "object",
|
|
1328
|
+
properties: {
|
|
1329
|
+
Description: {
|
|
1330
|
+
type: "string"
|
|
1331
|
+
},
|
|
1332
|
+
Code: {
|
|
1333
|
+
type: "integer"
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
Warning: {
|
|
1341
|
+
type: "object",
|
|
1342
|
+
properties: {
|
|
1343
|
+
GlobalItemCheckResultCode: {
|
|
1344
|
+
type: "array",
|
|
1345
|
+
items: {
|
|
1346
|
+
type: "object",
|
|
1347
|
+
properties: {
|
|
1348
|
+
Description: {
|
|
1349
|
+
type: "string"
|
|
1350
|
+
},
|
|
1351
|
+
Code: {
|
|
1352
|
+
type: "integer"
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
Mismatch: {
|
|
1360
|
+
type: "object",
|
|
1361
|
+
properties: {
|
|
1362
|
+
GlobalItemCheckResultCode: {
|
|
1363
|
+
type: "array",
|
|
1364
|
+
items: {
|
|
1365
|
+
type: "object",
|
|
1366
|
+
properties: {
|
|
1367
|
+
Description: {
|
|
1368
|
+
type: "string"
|
|
1369
|
+
},
|
|
1370
|
+
Code: {
|
|
1371
|
+
type: "integer"
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
ID: {
|
|
1379
|
+
type: "integer"
|
|
1380
|
+
},
|
|
1381
|
+
Pass: {
|
|
1382
|
+
type: "string"
|
|
1383
|
+
},
|
|
1384
|
+
Address: {
|
|
1385
|
+
type: "string"
|
|
1386
|
+
},
|
|
1387
|
+
Forename: {
|
|
1388
|
+
type: "string"
|
|
1389
|
+
},
|
|
1390
|
+
Surname: {
|
|
1391
|
+
type: "string"
|
|
1392
|
+
},
|
|
1393
|
+
DOB: {
|
|
1394
|
+
type: "string"
|
|
1395
|
+
},
|
|
1396
|
+
Alert: {
|
|
1397
|
+
type: "string"
|
|
1398
|
+
},
|
|
1399
|
+
SanctionsMatches: {
|
|
1400
|
+
type: "object",
|
|
1401
|
+
properties: {
|
|
1402
|
+
GlobalSanctionsMatch: {
|
|
1403
|
+
type: "array",
|
|
1404
|
+
items: {
|
|
1405
|
+
type: "object",
|
|
1406
|
+
properties: {
|
|
1407
|
+
SanctionID: {
|
|
1408
|
+
type: "string"
|
|
1409
|
+
},
|
|
1410
|
+
Url: {
|
|
1411
|
+
type: "string"
|
|
1412
|
+
},
|
|
1413
|
+
Rank: {
|
|
1414
|
+
type: "integer"
|
|
1415
|
+
},
|
|
1416
|
+
CaseID: {
|
|
1417
|
+
type: "string"
|
|
1418
|
+
},
|
|
1419
|
+
SearchID: {
|
|
1420
|
+
type: "string"
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
},
|
|
1432
|
+
Score: {
|
|
1433
|
+
type: "integer",
|
|
1434
|
+
title: "Score",
|
|
1435
|
+
description: "The score of the authentication request"
|
|
1436
|
+
},
|
|
1437
|
+
BandText: {
|
|
1438
|
+
type: "string",
|
|
1439
|
+
title: "Band Text",
|
|
1440
|
+
description: "The band text of the authentication request"
|
|
1441
|
+
},
|
|
1442
|
+
Country: {
|
|
1443
|
+
type: "string",
|
|
1444
|
+
title: "Country",
|
|
1445
|
+
description: "The country type of the authentication request"
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
pepIntelligenceResult: {
|
|
1450
|
+
type: "array",
|
|
1451
|
+
title: "PEP Intelligence Result",
|
|
1452
|
+
description: "The result of the PEP Intelligence check",
|
|
1453
|
+
items: {
|
|
1454
|
+
type: "object",
|
|
1455
|
+
properties: {
|
|
1456
|
+
Fullname: {
|
|
1457
|
+
type: "string"
|
|
1458
|
+
},
|
|
1459
|
+
Aliases: {
|
|
1460
|
+
type: "object",
|
|
1461
|
+
properties: {
|
|
1462
|
+
elements: {
|
|
1463
|
+
type: "array",
|
|
1464
|
+
items: {
|
|
1465
|
+
type: "string"
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
SanctionsAddresses: {
|
|
1471
|
+
type: "object",
|
|
1472
|
+
properties: {
|
|
1473
|
+
GlobalSanctionsAddress: {
|
|
1474
|
+
type: "array",
|
|
1475
|
+
items: {
|
|
1476
|
+
type: "object",
|
|
1477
|
+
properties: {
|
|
1478
|
+
AddressLine: {
|
|
1479
|
+
type: "string"
|
|
1480
|
+
},
|
|
1481
|
+
City: {
|
|
1482
|
+
type: "string"
|
|
1483
|
+
},
|
|
1484
|
+
Country: {
|
|
1485
|
+
description: "Full name of country",
|
|
1486
|
+
type: "string"
|
|
1487
|
+
},
|
|
1488
|
+
Region: {
|
|
1489
|
+
type: "string"
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
SanctionsDates: {
|
|
1497
|
+
type: "object",
|
|
1498
|
+
properties: {
|
|
1499
|
+
GlobalSanctionsDate: {
|
|
1500
|
+
type: "object",
|
|
1501
|
+
properties: {
|
|
1502
|
+
DateType: {
|
|
1503
|
+
type: "string"
|
|
1504
|
+
},
|
|
1505
|
+
Day: {
|
|
1506
|
+
type: "integer"
|
|
1507
|
+
},
|
|
1508
|
+
Month: {
|
|
1509
|
+
type: "integer"
|
|
1510
|
+
},
|
|
1511
|
+
Year: {
|
|
1512
|
+
type: "integer"
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
IdentityInformation: {
|
|
1519
|
+
type: "string"
|
|
1520
|
+
},
|
|
1521
|
+
SanctionsPositions: {
|
|
1522
|
+
type: "object",
|
|
1523
|
+
properties: {
|
|
1524
|
+
GlobalSanctionsPosition: {
|
|
1525
|
+
type: "array",
|
|
1526
|
+
items: {
|
|
1527
|
+
type: "object",
|
|
1528
|
+
properties: {
|
|
1529
|
+
Position: {
|
|
1530
|
+
type: "string"
|
|
1531
|
+
},
|
|
1532
|
+
Country: {
|
|
1533
|
+
type: "string"
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
sanctionsEnforcementsResult: {
|
|
1544
|
+
type: "array",
|
|
1545
|
+
title: "Sanctions Enforcements Result",
|
|
1546
|
+
description: "The result of the Sanctions Enforcements check",
|
|
1547
|
+
items: {
|
|
1548
|
+
type: "object",
|
|
1549
|
+
properties: {
|
|
1550
|
+
Fullname: {
|
|
1551
|
+
type: "string"
|
|
1552
|
+
},
|
|
1553
|
+
SanctionsBodies: {
|
|
1554
|
+
type: "object",
|
|
1555
|
+
properties: {
|
|
1556
|
+
elements: {
|
|
1557
|
+
type: "array",
|
|
1558
|
+
items: {
|
|
1559
|
+
type: "integer"
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
Aliases: {
|
|
1565
|
+
type: "object",
|
|
1566
|
+
properties: {
|
|
1567
|
+
elements: {
|
|
1568
|
+
type: "array",
|
|
1569
|
+
items: {
|
|
1570
|
+
type: "string"
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
SanctionsAddresses: {
|
|
1576
|
+
type: "object",
|
|
1577
|
+
properties: {
|
|
1578
|
+
GlobalSanctionsAddress: {
|
|
1579
|
+
type: "array",
|
|
1580
|
+
items: {
|
|
1581
|
+
type: "object",
|
|
1582
|
+
properties: {
|
|
1583
|
+
AddressLine: {
|
|
1584
|
+
type: "string"
|
|
1585
|
+
},
|
|
1586
|
+
City: {
|
|
1587
|
+
type: "string"
|
|
1588
|
+
},
|
|
1589
|
+
Country: {
|
|
1590
|
+
description: "Full name of country",
|
|
1591
|
+
type: "string"
|
|
1592
|
+
},
|
|
1593
|
+
Region: {
|
|
1594
|
+
type: "string"
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
SanctionsDates: {
|
|
1602
|
+
type: "object",
|
|
1603
|
+
properties: {
|
|
1604
|
+
GlobalSanctionsDate: {
|
|
1605
|
+
type: "object",
|
|
1606
|
+
properties: {
|
|
1607
|
+
DateType: {
|
|
1608
|
+
type: "string"
|
|
1609
|
+
},
|
|
1610
|
+
Day: {
|
|
1611
|
+
type: "integer"
|
|
1612
|
+
},
|
|
1613
|
+
Month: {
|
|
1614
|
+
type: "integer"
|
|
1615
|
+
},
|
|
1616
|
+
Year: {
|
|
1617
|
+
type: "integer"
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
IdentityInformation: {
|
|
1624
|
+
type: "string"
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
personalDetails: {
|
|
1632
|
+
title: "Personal Details",
|
|
1633
|
+
description: "Personal details of the credential subject",
|
|
1634
|
+
type: "object",
|
|
1635
|
+
properties: {
|
|
1636
|
+
citizenship: {
|
|
1637
|
+
title: "Citizenship",
|
|
1638
|
+
description: "The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1639
|
+
type: "string",
|
|
1640
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1641
|
+
},
|
|
1642
|
+
documentType: {
|
|
1643
|
+
title: "Document Type",
|
|
1644
|
+
description: "The type of document used to verify the credential subject",
|
|
1645
|
+
type: "string",
|
|
1646
|
+
"enum": ["Agents License", "Driving License", "Electoral Card", "Foreigner Identification Card", "Health Card", "Job License", "Membership Identification Card", "Military Identification Card", "National Identification Card", "Passport", "Proof of Age Card", "Travel Permit", "Visa", "Weapons Licence"]
|
|
1647
|
+
},
|
|
1648
|
+
firstName: {
|
|
1649
|
+
title: "First Name",
|
|
1650
|
+
description: "The first name of the credential subject",
|
|
1651
|
+
type: "string"
|
|
1652
|
+
},
|
|
1653
|
+
lastName: {
|
|
1654
|
+
title: "Last Name",
|
|
1655
|
+
description: "The last name of the credential subject",
|
|
1656
|
+
type: "string"
|
|
1657
|
+
},
|
|
1658
|
+
gender: {
|
|
1659
|
+
title: "Gender",
|
|
1660
|
+
description: "Gender of the credential subject",
|
|
1661
|
+
type: "string"
|
|
1662
|
+
},
|
|
1663
|
+
addressLine1: {
|
|
1664
|
+
title: "Address Line 1",
|
|
1665
|
+
description: "Address line 1 of the credential subject",
|
|
1666
|
+
type: "string"
|
|
1667
|
+
},
|
|
1668
|
+
addressLine2: {
|
|
1669
|
+
title: "Address Line 2",
|
|
1670
|
+
description: "Address line 2 of the credential subject",
|
|
1671
|
+
type: "string"
|
|
1672
|
+
},
|
|
1673
|
+
birthday: {
|
|
1674
|
+
title: "Birthday",
|
|
1675
|
+
description: "Birthday of the credential subject",
|
|
1676
|
+
type: "string",
|
|
1677
|
+
format: "date"
|
|
1678
|
+
},
|
|
1679
|
+
placeOfBirth: {
|
|
1680
|
+
title: "Place of Birth",
|
|
1681
|
+
description: "Place of birth of the credential subject",
|
|
1682
|
+
type: "string"
|
|
1683
|
+
},
|
|
1684
|
+
countryOfResidence: {
|
|
1685
|
+
title: "Country of Residence",
|
|
1686
|
+
description: "Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1687
|
+
type: "string",
|
|
1688
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1689
|
+
},
|
|
1690
|
+
age: {
|
|
1691
|
+
title: "Age",
|
|
1692
|
+
description: "Age of the credential subject",
|
|
1693
|
+
type: "integer",
|
|
1694
|
+
minimum: 0,
|
|
1695
|
+
maximum: 125
|
|
1696
|
+
},
|
|
1697
|
+
city: {
|
|
1698
|
+
title: "City",
|
|
1699
|
+
description: "City of the credential subject",
|
|
1700
|
+
type: "string"
|
|
1701
|
+
},
|
|
1702
|
+
province: {
|
|
1703
|
+
title: "Province",
|
|
1704
|
+
description: "Province of the credential subject",
|
|
1705
|
+
type: "string"
|
|
1706
|
+
},
|
|
1707
|
+
postalCode: {
|
|
1708
|
+
title: "Postal Code",
|
|
1709
|
+
description: "Postal code of the credential subject",
|
|
1710
|
+
type: "string"
|
|
1711
|
+
},
|
|
1712
|
+
emailAddress: {
|
|
1713
|
+
title: "Email Address",
|
|
1714
|
+
description: "Email address of the credential subject",
|
|
1715
|
+
type: "string"
|
|
1716
|
+
},
|
|
1717
|
+
phoneNumber: {
|
|
1718
|
+
title: "Phone Number",
|
|
1719
|
+
description: "Phone number of the credential subject",
|
|
1720
|
+
type: "string"
|
|
1721
|
+
},
|
|
1722
|
+
countryOfBirth: {
|
|
1723
|
+
title: "Country of Birth",
|
|
1724
|
+
description: "Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1725
|
+
type: "string",
|
|
1726
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1727
|
+
},
|
|
1728
|
+
middleName: {
|
|
1729
|
+
title: "Middle Name",
|
|
1730
|
+
description: "Middle name of the credential subject",
|
|
1731
|
+
type: "string"
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
1739
|
+
var schema$2 = {
|
|
1740
|
+
description: "Stores the data of the credential",
|
|
1741
|
+
title: "Credential subject",
|
|
1742
|
+
type: "object",
|
|
1743
|
+
required: ["journeyId", "id"],
|
|
1744
|
+
properties: {
|
|
1745
|
+
id: {
|
|
1746
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
1747
|
+
title: "Credential subject ID",
|
|
1748
|
+
format: "uri",
|
|
1749
|
+
type: "string"
|
|
1750
|
+
},
|
|
1751
|
+
journeyId: {
|
|
1752
|
+
description: "Journey ID of when credential was generated",
|
|
1753
|
+
title: "Journey ID",
|
|
1754
|
+
type: "string",
|
|
1755
|
+
format: "uuid"
|
|
1756
|
+
},
|
|
1757
|
+
highLevelResult: {
|
|
1758
|
+
description: "High level result of the kyc check",
|
|
1759
|
+
title: "High Level Result",
|
|
1760
|
+
type: "string",
|
|
1761
|
+
"enum": ["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]
|
|
1762
|
+
},
|
|
1763
|
+
firstName: {
|
|
1764
|
+
description: "First name of the credential subject",
|
|
1765
|
+
title: "First Name",
|
|
1766
|
+
type: "string"
|
|
1767
|
+
},
|
|
1768
|
+
middleName: {
|
|
1769
|
+
description: "Middle name of the credential subject",
|
|
1770
|
+
title: "Middle Name",
|
|
1771
|
+
type: "string"
|
|
1772
|
+
},
|
|
1773
|
+
lastName: {
|
|
1774
|
+
description: "Last name of the credential subject",
|
|
1775
|
+
title: "Last Name",
|
|
1776
|
+
type: "string"
|
|
1777
|
+
},
|
|
1778
|
+
gender: {
|
|
1779
|
+
description: "Gender of the credential subject",
|
|
1780
|
+
title: "Gender",
|
|
1781
|
+
type: "string"
|
|
1782
|
+
},
|
|
1783
|
+
age: {
|
|
1784
|
+
description: "Age of the credential subject",
|
|
1785
|
+
title: "Age",
|
|
1786
|
+
type: "integer",
|
|
1787
|
+
minimum: 0,
|
|
1788
|
+
maximum: 125
|
|
1789
|
+
},
|
|
1790
|
+
citizenship: {
|
|
1791
|
+
description: "Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)",
|
|
1792
|
+
title: "Citizenship",
|
|
1793
|
+
type: "string",
|
|
1794
|
+
"enum": ["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA"]
|
|
1795
|
+
},
|
|
1796
|
+
documentCategory: {
|
|
1797
|
+
description: "Category of the document provided by the credential subject",
|
|
1798
|
+
title: "Document Category",
|
|
1799
|
+
type: "string"
|
|
1800
|
+
},
|
|
1801
|
+
documentName: {
|
|
1802
|
+
description: "Name of the document provided by the credential subject",
|
|
1803
|
+
title: "Document Name",
|
|
1804
|
+
type: "string"
|
|
1805
|
+
},
|
|
1806
|
+
documentSide: {
|
|
1807
|
+
description: "Side of the document provided by the credential subject",
|
|
1808
|
+
title: "Document Side",
|
|
1809
|
+
type: "string",
|
|
1810
|
+
"enum": ["Front", "Back"]
|
|
1811
|
+
},
|
|
1812
|
+
documentType: {
|
|
1813
|
+
description: "Type of the document provided by the credential subject",
|
|
1814
|
+
title: "Document Type",
|
|
1815
|
+
type: "string",
|
|
1816
|
+
"enum": ["Agents License", "Driving License", "Electoral Card", "Foreigner Identification Card", "Health Card", "Job License", "Membership Identification Card", "Military Identification Card", "National Identification Card", "Passport", "Proof of Age Card", "Travel Permit", "Visa", "Weapons Licence"]
|
|
1817
|
+
},
|
|
1818
|
+
entryDate: {
|
|
1819
|
+
description: "Entry date associated with the credential",
|
|
1820
|
+
title: "Entry Date",
|
|
1821
|
+
type: "string",
|
|
1822
|
+
format: "date"
|
|
1823
|
+
},
|
|
1824
|
+
entryTime: {
|
|
1825
|
+
description: "Entry time associated with the credential",
|
|
1826
|
+
title: "Entry Time",
|
|
1827
|
+
type: "string",
|
|
1828
|
+
format: "time"
|
|
1829
|
+
},
|
|
1830
|
+
fullName: {
|
|
1831
|
+
description: "Full name of the credential subject",
|
|
1832
|
+
title: "Full Name",
|
|
1833
|
+
type: "string"
|
|
1834
|
+
},
|
|
1835
|
+
addressLine1: {
|
|
1836
|
+
description: "First line of the address of the credential subject",
|
|
1837
|
+
title: "Address Line 1",
|
|
1838
|
+
type: "string"
|
|
1839
|
+
},
|
|
1840
|
+
addressLine2: {
|
|
1841
|
+
description: "Second line of the address of the credential subject",
|
|
1842
|
+
title: "Address Line 2",
|
|
1843
|
+
type: "string"
|
|
1844
|
+
},
|
|
1845
|
+
birthDate: {
|
|
1846
|
+
description: "Date of birth of the credential subject",
|
|
1847
|
+
title: "Birth Date",
|
|
1848
|
+
type: "string",
|
|
1849
|
+
format: "date"
|
|
1850
|
+
},
|
|
1851
|
+
birthPlace: {
|
|
1852
|
+
type: "string",
|
|
1853
|
+
nullable: true
|
|
1854
|
+
},
|
|
1855
|
+
highLevelResultDetails: {
|
|
1856
|
+
description: "Detailed results of the high level KYC check",
|
|
1857
|
+
title: "High Level Result Details",
|
|
1858
|
+
type: "object",
|
|
1859
|
+
properties: {
|
|
1860
|
+
documentOverallValidation: {
|
|
1861
|
+
description: "Overall validation status of the document",
|
|
1862
|
+
title: "Document Overall Validation",
|
|
1863
|
+
type: "string",
|
|
1864
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1865
|
+
},
|
|
1866
|
+
documentBlockingPolicy: {
|
|
1867
|
+
description: "Blocking policy of the document",
|
|
1868
|
+
title: "Document Blocking Policy",
|
|
1869
|
+
type: "string",
|
|
1870
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1871
|
+
},
|
|
1872
|
+
documentExpiry: {
|
|
1873
|
+
description: "Expiry status of the document",
|
|
1874
|
+
title: "Document Expiry",
|
|
1875
|
+
type: "string",
|
|
1876
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1877
|
+
},
|
|
1878
|
+
documentSupport: {
|
|
1879
|
+
description: "Support status of the document",
|
|
1880
|
+
title: "Document Support",
|
|
1881
|
+
type: "string",
|
|
1882
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1883
|
+
},
|
|
1884
|
+
documentValidation: {
|
|
1885
|
+
description: "Validation status of the document",
|
|
1886
|
+
title: "Document Validation",
|
|
1887
|
+
type: "string",
|
|
1888
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1889
|
+
},
|
|
1890
|
+
faceMatchValidation: {
|
|
1891
|
+
description: "Validation status of face match",
|
|
1892
|
+
title: "Face Match Validation",
|
|
1893
|
+
type: "string",
|
|
1894
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1895
|
+
},
|
|
1896
|
+
accumulativeLivenessResult: {
|
|
1897
|
+
description: "Result of accumulative liveness check",
|
|
1898
|
+
title: "Accumulative Liveness Result",
|
|
1899
|
+
type: "string",
|
|
1900
|
+
"enum": ["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
faceMatchScore: {
|
|
1905
|
+
description: "Score for the face match validation",
|
|
1906
|
+
title: "Face Match Score",
|
|
1907
|
+
type: "string"
|
|
1908
|
+
},
|
|
1909
|
+
qualityCheckDetails: {
|
|
1910
|
+
description: "Details of quality checks performed",
|
|
1911
|
+
title: "Quality Check Details",
|
|
1912
|
+
type: "array",
|
|
1913
|
+
items: {
|
|
1914
|
+
description: "Quality check item details",
|
|
1915
|
+
title: "Quality Check Item",
|
|
1916
|
+
type: "object",
|
|
1917
|
+
properties: {
|
|
1918
|
+
id: {
|
|
1919
|
+
description: "ID of the quality check item",
|
|
1920
|
+
title: "Quality Check Item ID",
|
|
1921
|
+
type: "string"
|
|
1922
|
+
},
|
|
1923
|
+
title: {
|
|
1924
|
+
description: "Title of the quality check item",
|
|
1925
|
+
title: "Quality Check Item Title",
|
|
1926
|
+
type: "string"
|
|
1927
|
+
},
|
|
1928
|
+
description: {
|
|
1929
|
+
description: "Description of the quality check item",
|
|
1930
|
+
title: "Quality Check Item Description",
|
|
1931
|
+
type: "string"
|
|
1932
|
+
},
|
|
1933
|
+
state: {
|
|
1934
|
+
description: "State of the quality check item",
|
|
1935
|
+
title: "Quality Check Item State",
|
|
1936
|
+
type: "integer"
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
validationDetails: {
|
|
1942
|
+
description: "Details of the validation performed",
|
|
1943
|
+
title: "Validation Details",
|
|
1944
|
+
type: "array",
|
|
1945
|
+
items: {
|
|
1946
|
+
description: "Details of a specific validation item",
|
|
1947
|
+
title: "Validation Item",
|
|
1948
|
+
type: "object",
|
|
1949
|
+
properties: {
|
|
1950
|
+
name: {
|
|
1951
|
+
description: "Name of the validation item",
|
|
1952
|
+
title: "Validation Item Name",
|
|
1953
|
+
type: "string"
|
|
1954
|
+
},
|
|
1955
|
+
description: {
|
|
1956
|
+
description: "Detailed description of the validation item",
|
|
1957
|
+
title: "Validation Item Description",
|
|
1958
|
+
type: "string"
|
|
1959
|
+
},
|
|
1960
|
+
result: {
|
|
1961
|
+
description: "Result code of the validation",
|
|
1962
|
+
title: "Validation Result Code",
|
|
1963
|
+
type: "integer"
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
1972
|
+
var schema$1 = {
|
|
1973
|
+
description: "Stores the data of the credential",
|
|
1974
|
+
title: "Credential subject",
|
|
1975
|
+
type: "object",
|
|
1976
|
+
required: ["id", "journeyId", "base64", "name", "documentType"],
|
|
1977
|
+
properties: {
|
|
1978
|
+
id: {
|
|
1979
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
1980
|
+
title: "Credential subject ID",
|
|
1981
|
+
format: "uri",
|
|
1982
|
+
type: "string"
|
|
1983
|
+
},
|
|
1984
|
+
journeyId: {
|
|
1985
|
+
title: "Journey ID",
|
|
1986
|
+
description: "The ID of the journey that this credential is associated with",
|
|
1987
|
+
type: "string",
|
|
1988
|
+
format: "uuid"
|
|
1989
|
+
},
|
|
1990
|
+
base64: {
|
|
1991
|
+
title: "Base64",
|
|
1992
|
+
description: "Base64 encoded image of the passport image",
|
|
1993
|
+
type: "string",
|
|
1994
|
+
format: "base64"
|
|
1995
|
+
},
|
|
1996
|
+
name: {
|
|
1997
|
+
title: "Name",
|
|
1998
|
+
description: "Name of the docuemnt (e.g. passport.jpg)",
|
|
1999
|
+
type: "string"
|
|
2000
|
+
},
|
|
2001
|
+
documentType: {
|
|
2002
|
+
title: "Type",
|
|
2003
|
+
description: "Type of the document (e.g. image/jpeg, image/png)",
|
|
2004
|
+
type: "string"
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
/** Generated with `./generate-schemas-ts.sh` */
|
|
2010
|
+
var schema = {
|
|
2011
|
+
description: "Stores the data of the credential",
|
|
2012
|
+
title: "Credential subject",
|
|
2013
|
+
type: "object",
|
|
2014
|
+
properties: {
|
|
2015
|
+
id: {
|
|
2016
|
+
description: "Stores the DID of the subject that owns the credential",
|
|
2017
|
+
title: "Credential subject ID",
|
|
2018
|
+
format: "uri",
|
|
2019
|
+
type: "string"
|
|
2020
|
+
},
|
|
2021
|
+
journeyId: {
|
|
2022
|
+
title: "Journey ID",
|
|
2023
|
+
description: "The ID of the journey that this credential is associated with",
|
|
2024
|
+
type: "string",
|
|
2025
|
+
format: "uuid"
|
|
2026
|
+
},
|
|
2027
|
+
base64: {
|
|
2028
|
+
title: "Base64",
|
|
2029
|
+
description: "Base64 encoded image of the selfie image",
|
|
2030
|
+
type: "string",
|
|
2031
|
+
format: "base64"
|
|
2032
|
+
},
|
|
2033
|
+
name: {
|
|
2034
|
+
title: "Name",
|
|
2035
|
+
description: "Name of the docuemnt (e.g. selfie.jpg)",
|
|
2036
|
+
type: "string"
|
|
2037
|
+
},
|
|
2038
|
+
documentType: {
|
|
2039
|
+
title: "Type",
|
|
2040
|
+
description: "Type of the document (e.g. image/jpeg, image/png)",
|
|
2041
|
+
type: "string"
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
2044
|
+
required: ["id", "journeyId", "base64", "name", "documentType"]
|
|
2045
|
+
};
|
|
2046
|
+
|
|
2047
|
+
// need to shift this type to use discriminated unions (type + availableOperators )
|
|
2048
|
+
// also really should be referencing the operators from vc-schemas
|
|
2049
|
+
|
|
2050
|
+
var schemaMap = {
|
|
2051
|
+
IDInformation: schema$6,
|
|
2052
|
+
IDImage: schema$7,
|
|
2053
|
+
SelfieImage: schema$4,
|
|
2054
|
+
AMLScreeningsResults: schema,
|
|
2055
|
+
ProofOfResidence: schema$5,
|
|
2056
|
+
ID3: schema$3,
|
|
2057
|
+
IDScan: schema$2,
|
|
2058
|
+
IDScanSelfie: schema,
|
|
2059
|
+
IDScanPassport: schema$1
|
|
2060
|
+
};
|
|
2061
|
+
var getAvailableFields = function getAvailableFields(props) {
|
|
2062
|
+
var credentialType = props.credentialType;
|
|
2063
|
+
var credentialSchema = schemaMap[credentialType];
|
|
2064
|
+
if (!credentialSchema) {
|
|
2065
|
+
throw new Error("Credential type ".concat(credentialType, " not supported"));
|
|
2066
|
+
}
|
|
2067
|
+
return extractFields({
|
|
2068
|
+
obj: credentialSchema,
|
|
2069
|
+
credentialType: credentialType
|
|
2070
|
+
});
|
|
2071
|
+
};
|
|
2072
|
+
var extractFields = function extractFields(props) {
|
|
2073
|
+
var obj = props.obj,
|
|
2074
|
+
currentPath = props.currentPath,
|
|
2075
|
+
credentialType = props.credentialType;
|
|
2076
|
+
var fields = [];
|
|
2077
|
+
var _loop = function _loop() {
|
|
2078
|
+
var property = obj.properties[key];
|
|
2079
|
+
if (!property) return 1; // continue
|
|
2080
|
+
// Skip if property is undefined
|
|
2081
|
+
|
|
2082
|
+
var newPath = currentPath ? "".concat(currentPath, ".").concat(key) : "".concat(credentialType, ".credentialSubject.").concat(key);
|
|
2083
|
+
if (property.type === "object") {
|
|
2084
|
+
// Recursively handle nested objects
|
|
2085
|
+
fields = fields.concat(extractFields({
|
|
2086
|
+
obj: property,
|
|
2087
|
+
currentPath: newPath,
|
|
2088
|
+
credentialType: credentialType
|
|
2089
|
+
}));
|
|
2090
|
+
} else if (SupportedType.safeParse(property.type).success) {
|
|
2091
|
+
var _property$nullable;
|
|
2092
|
+
fields.push({
|
|
2093
|
+
fieldName: key,
|
|
2094
|
+
value: key.replace(/([a-z])([A-Z])/g, "$1 $2"),
|
|
2095
|
+
path: newPath,
|
|
2096
|
+
type: property.type,
|
|
2097
|
+
format: property.format,
|
|
2098
|
+
nullable: (_property$nullable = property.nullable) !== null && _property$nullable !== void 0 ? _property$nullable : false,
|
|
2099
|
+
availableOperators: function () {
|
|
2100
|
+
switch (property.type) {
|
|
2101
|
+
case "string":
|
|
2102
|
+
return _toConsumableArray(STRING_OPERATORS);
|
|
2103
|
+
case "integer":
|
|
2104
|
+
return _toConsumableArray(NUMERIC_OPERATORS);
|
|
2105
|
+
case "number":
|
|
2106
|
+
return _toConsumableArray(NUMERIC_OPERATORS);
|
|
2107
|
+
case "boolean":
|
|
2108
|
+
return _toConsumableArray(BOOLEAN_OPERATORS);
|
|
2109
|
+
case "array":
|
|
2110
|
+
return _toConsumableArray(ARRAY_OPERATORS);
|
|
2111
|
+
default:
|
|
2112
|
+
throw new Error("Discovered unhandled type: ".concat(JSON.stringify(property)));
|
|
2113
|
+
}
|
|
2114
|
+
}()
|
|
2115
|
+
});
|
|
2116
|
+
} else {
|
|
2117
|
+
throw new Error("Discovered unhandled type: ".concat(property.type));
|
|
2118
|
+
}
|
|
2119
|
+
};
|
|
2120
|
+
for (var key in obj.properties) {
|
|
2121
|
+
if (_loop()) continue;
|
|
2122
|
+
}
|
|
2123
|
+
return fields;
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
export { VC_JSON_SCHEMA_MAP, cleanObject, getAvailableFields, getCredentialSchemaLocation };
|