@nexeraid/identity-schemas 1.12.21-dev → 1.12.23-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/dist/chainalysis.schema-9e5926b9.esm.js +2316 -0
- package/dist/chainalysis.schema-a9079d73.cjs.prod.js +2582 -0
- package/dist/chainalysis.schema-ab6cda47.cjs.dev.js +2582 -0
- package/dist/declarations/src/index.d.ts +4 -4
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/nexeraSSID.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts +1735 -0
- package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts +759 -0
- package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +5735 -0
- package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/customers.schema.d.ts +92 -0
- package/dist/declarations/src/providers/customers.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/index.d.ts +16 -0
- package/dist/declarations/src/providers/index.d.ts.map +1 -0
- package/dist/declarations/src/providers/ipquality/ipquality.schema.d.ts +1582 -0
- package/dist/declarations/src/providers/ipquality/ipquality.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +307 -0
- package/dist/declarations/src/providers/kyb-sessions.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +969 -0
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +604 -0
- package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/provider.schema.d.ts +10861 -0
- package/dist/declarations/src/providers/provider.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +3991 -0
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +6460 -0
- package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/sumsub/sumsub-reject.schema.d.ts +12 -0
- package/dist/declarations/src/providers/sumsub/sumsub-reject.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts +187 -0
- package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +314 -0
- package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/synaps/synaps.schema.d.ts +4071 -0
- package/dist/declarations/src/providers/synaps/synaps.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/alert.schema.d.ts +98 -0
- package/dist/declarations/src/webhooks/alert.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts +43 -0
- package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts +479 -0
- package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/index.d.ts +7 -0
- package/dist/declarations/src/webhooks/index.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts +195 -0
- package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +12605 -0
- package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +53321 -0
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -0
- package/dist/{frontend-utilities.schema-516dc42c.cjs.prod.js → frontend-utilities.schema-9951d168.cjs.prod.js} +1 -1
- package/dist/{frontend-utilities.schema-d572735d.esm.js → frontend-utilities.schema-c150e92a.esm.js} +1 -1
- package/dist/{frontend-utilities.schema-87bffa68.cjs.dev.js → frontend-utilities.schema-c3ccca7b.cjs.dev.js} +1 -1
- package/dist/{identity-api.schema-bf6bbbf4.cjs.prod.js → identity-api.schema-181d93d3.cjs.prod.js} +1267 -1271
- package/dist/{identity-api.schema-25e04205.esm.js → identity-api.schema-2df73bbd.esm.js} +1266 -1272
- package/dist/{identity-api.schema-4615eb5b.cjs.dev.js → identity-api.schema-8832ddec.cjs.dev.js} +1267 -1271
- package/dist/nexeraid-identity-schemas.cjs.dev.js +2 -2
- package/dist/nexeraid-identity-schemas.cjs.prod.js +2 -2
- package/dist/nexeraid-identity-schemas.esm.js +3 -3
- package/dist/package.json +15 -3
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
- package/package.json +15 -3
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.d.ts +2 -0
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +276 -0
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.js +7 -0
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +276 -0
- package/providers/dist/nexeraid-identity-schemas-providers.esm.js +4 -0
- package/providers/package.json +4 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.d.ts +2 -0
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +662 -0
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.js +7 -0
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +662 -0
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +580 -0
- package/webhooks/package.json +4 -0
|
@@ -1,923 +1,380 @@
|
|
|
1
1
|
import { z, ZodOptional, ZodNumber } from 'zod';
|
|
2
2
|
import { nanoid } from 'nanoid';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
15
|
-
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
16
|
-
birthday: z.string().describe("Birthday of the credential subject").optional(),
|
|
17
|
-
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
18
|
-
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
19
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
20
|
-
city: z.string().describe("City of the credential subject").optional(),
|
|
21
|
-
province: z.string().describe("Province of the credential subject").optional(),
|
|
22
|
-
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
23
|
-
emailAddress: z.string().describe("Email address of the credential subject").optional(),
|
|
24
|
-
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
25
|
-
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
26
|
-
middleName: z.string().describe("Middle name of the credential subject").optional()
|
|
27
|
-
}).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
|
|
28
|
-
authenticateSPResult: z.object({
|
|
29
|
-
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
30
|
-
Timestamp: z.string().datetime().describe("The timestamp of the authentication request").optional(),
|
|
31
|
-
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
32
|
-
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
33
|
-
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
34
|
-
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
35
|
-
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
36
|
-
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
37
|
-
ResultCodes: z.object({
|
|
38
|
-
GlobalItemCheckResultCodes: z.array(z.object({
|
|
39
|
-
Name: z.string().optional(),
|
|
40
|
-
Description: z.string().optional(),
|
|
41
|
-
Comment: z.object({
|
|
42
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
43
|
-
Description: z.string().optional(),
|
|
44
|
-
Code: z.number()["int"]().optional()
|
|
45
|
-
})).optional()
|
|
46
|
-
}).optional(),
|
|
47
|
-
Match: z.object({
|
|
48
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
49
|
-
Description: z.string().optional(),
|
|
50
|
-
Code: z.number()["int"]().optional()
|
|
51
|
-
})).optional()
|
|
52
|
-
}).optional(),
|
|
53
|
-
Warning: z.object({
|
|
54
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
55
|
-
Description: z.string().optional(),
|
|
56
|
-
Code: z.number()["int"]().optional()
|
|
57
|
-
})).optional()
|
|
58
|
-
}).optional(),
|
|
59
|
-
Mismatch: z.object({
|
|
60
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
61
|
-
Description: z.string().optional(),
|
|
62
|
-
Code: z.number()["int"]().optional()
|
|
63
|
-
})).optional()
|
|
64
|
-
}).optional(),
|
|
65
|
-
ID: z.number()["int"]().optional(),
|
|
66
|
-
Pass: z.string().optional(),
|
|
67
|
-
Address: z.string().optional(),
|
|
68
|
-
Forename: z.string().optional(),
|
|
69
|
-
Surname: z.string().optional(),
|
|
70
|
-
DOB: z.string().optional(),
|
|
71
|
-
Alert: z.string().optional(),
|
|
72
|
-
SanctionsMatches: z.object({
|
|
73
|
-
GlobalSanctionsMatch: z.array(z.object({
|
|
74
|
-
SanctionID: z.string().optional(),
|
|
75
|
-
Url: z.string().optional(),
|
|
76
|
-
Rank: z.number()["int"]().optional(),
|
|
77
|
-
CaseID: z.string().optional(),
|
|
78
|
-
SearchID: z.string().optional()
|
|
79
|
-
})).optional()
|
|
80
|
-
}).optional()
|
|
81
|
-
})).optional()
|
|
82
|
-
}).describe("The result codes of the authentication request").optional(),
|
|
83
|
-
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
84
|
-
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
85
|
-
Country: z.string().describe("Country type of the authentication request").optional(),
|
|
86
|
-
ItemCheckDecisionBands: z.object({
|
|
87
|
-
GlobalItemCheckDecisionBands: z.array(z.object({
|
|
88
|
-
ID: z.number()["int"]().optional(),
|
|
89
|
-
BandScore: z.number()["int"]().optional(),
|
|
90
|
-
BandText: z.string().optional()
|
|
91
|
-
})).optional()
|
|
92
|
-
}).describe("The item check decision bands of the authentication request").optional()
|
|
93
|
-
}).describe("Result of the authentication request").optional(),
|
|
94
|
-
pepIntelligenceResult: z.array(z.object({
|
|
95
|
-
Fullname: z.string().optional(),
|
|
96
|
-
Aliases: z.object({
|
|
97
|
-
elements: z.array(z.string()).optional()
|
|
98
|
-
}).optional(),
|
|
99
|
-
SanctionsAddresses: z.object({
|
|
100
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
101
|
-
AddressLine: z.string().optional(),
|
|
102
|
-
City: z.string().optional(),
|
|
103
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
104
|
-
Region: z.string().optional()
|
|
105
|
-
})).optional()
|
|
106
|
-
}).optional(),
|
|
107
|
-
SanctionsDates: z.object({
|
|
108
|
-
GlobalSanctionsDate: z.object({
|
|
109
|
-
DateType: z.string().optional(),
|
|
110
|
-
Day: z.number()["int"]().optional(),
|
|
111
|
-
Month: z.number()["int"]().optional(),
|
|
112
|
-
Year: z.number()["int"]().optional()
|
|
113
|
-
}).optional()
|
|
114
|
-
}).optional(),
|
|
115
|
-
IdentityInformation: z.string().optional(),
|
|
116
|
-
SanctionsPositions: z.object({
|
|
117
|
-
GlobalSanctionsPosition: z.array(z.object({
|
|
118
|
-
Position: z.string().optional(),
|
|
119
|
-
Country: z.string().optional()
|
|
120
|
-
})).optional()
|
|
121
|
-
}).optional()
|
|
122
|
-
})).optional(),
|
|
123
|
-
sanctionsEnforcementsResult: z.array(z.object({
|
|
124
|
-
Fullname: z.string().optional(),
|
|
125
|
-
SanctionsBodies: z.object({
|
|
126
|
-
elements: z.array(z.number()["int"]()).optional()
|
|
127
|
-
}).optional(),
|
|
128
|
-
Aliases: z.object({
|
|
129
|
-
elements: z.array(z.string()).optional()
|
|
130
|
-
}).optional(),
|
|
131
|
-
SanctionsAddresses: z.object({
|
|
132
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
133
|
-
AddressLine: z.string().optional(),
|
|
134
|
-
City: z.string().optional(),
|
|
135
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
136
|
-
Region: z.string().optional()
|
|
137
|
-
})).optional()
|
|
138
|
-
}).optional(),
|
|
139
|
-
SanctionsDates: z.object({
|
|
140
|
-
GlobalSanctionsDate: z.object({
|
|
141
|
-
DateType: z.string().optional(),
|
|
142
|
-
Day: z.number()["int"]().optional(),
|
|
143
|
-
Month: z.number()["int"]().optional(),
|
|
144
|
-
Year: z.number()["int"]().optional()
|
|
145
|
-
}).optional()
|
|
146
|
-
}).optional(),
|
|
147
|
-
IdentityInformation: z.string().optional()
|
|
148
|
-
})).optional()
|
|
149
|
-
}).describe("Details related to the amendments made to the original data."),
|
|
150
|
-
originalData: z.object({
|
|
151
|
-
data: z.object({
|
|
152
|
-
citizenship: z["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"]).describe("The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
153
|
-
documentType: z["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"]).describe("The type of document used to verify the credential subject").optional(),
|
|
154
|
-
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
155
|
-
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
156
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
157
|
-
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
158
|
-
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
159
|
-
birthday: z.string().describe("Birthday of the credential subject").optional(),
|
|
160
|
-
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
161
|
-
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
162
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
163
|
-
city: z.string().describe("City of the credential subject").optional(),
|
|
164
|
-
province: z.string().describe("Province of the credential subject").optional(),
|
|
165
|
-
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
166
|
-
emailAddress: z.string().describe("Email address of the credential subject").optional(),
|
|
167
|
-
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
168
|
-
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
169
|
-
middleName: z.string().describe("Middle name of the credential subject").optional()
|
|
170
|
-
}).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
|
|
171
|
-
authenticateSPResult: z.object({
|
|
172
|
-
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
173
|
-
Timestamp: z.string().datetime().describe("The date and time of the authentication request").optional(),
|
|
174
|
-
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
175
|
-
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
176
|
-
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
177
|
-
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
178
|
-
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
179
|
-
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
180
|
-
ResultCodes: z.object({
|
|
181
|
-
GlobalItemCheckResultCodes: z.array(z.object({
|
|
182
|
-
Name: z.string().optional(),
|
|
183
|
-
Description: z.string().optional(),
|
|
184
|
-
Comment: z.object({
|
|
185
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
186
|
-
Description: z.string().optional(),
|
|
187
|
-
Code: z.number()["int"]().optional()
|
|
188
|
-
})).optional()
|
|
189
|
-
}).optional(),
|
|
190
|
-
Match: z.object({
|
|
191
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
192
|
-
Description: z.string().optional(),
|
|
193
|
-
Code: z.number()["int"]().optional()
|
|
194
|
-
})).optional()
|
|
195
|
-
}).optional(),
|
|
196
|
-
Warning: z.object({
|
|
197
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
198
|
-
Description: z.string().optional(),
|
|
199
|
-
Code: z.number()["int"]().optional()
|
|
200
|
-
})).optional()
|
|
201
|
-
}).optional(),
|
|
202
|
-
Mismatch: z.object({
|
|
203
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
204
|
-
Description: z.string().optional(),
|
|
205
|
-
Code: z.number()["int"]().optional()
|
|
206
|
-
})).optional()
|
|
207
|
-
}).optional(),
|
|
208
|
-
ID: z.number()["int"]().optional(),
|
|
209
|
-
Pass: z.string().optional(),
|
|
210
|
-
Address: z.string().optional(),
|
|
211
|
-
Forename: z.string().optional(),
|
|
212
|
-
Surname: z.string().optional(),
|
|
213
|
-
DOB: z.string().optional(),
|
|
214
|
-
Alert: z.string().optional(),
|
|
215
|
-
SanctionsMatches: z.object({
|
|
216
|
-
GlobalSanctionsMatch: z.array(z.object({
|
|
217
|
-
SanctionID: z.string().optional(),
|
|
218
|
-
Url: z.string().optional(),
|
|
219
|
-
Rank: z.number()["int"]().optional(),
|
|
220
|
-
CaseID: z.string().optional(),
|
|
221
|
-
SearchID: z.string().optional()
|
|
222
|
-
})).optional()
|
|
223
|
-
}).optional()
|
|
224
|
-
})).optional()
|
|
225
|
-
}).describe("The result codes of the authentication request").optional(),
|
|
226
|
-
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
227
|
-
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
228
|
-
Country: z.string().describe("The country type of the authentication request").optional()
|
|
229
|
-
}).describe("The result of the Authenticate SP check").optional(),
|
|
230
|
-
pepIntelligenceResult: z.array(z.object({
|
|
231
|
-
Fullname: z.string().optional(),
|
|
232
|
-
Aliases: z.object({
|
|
233
|
-
elements: z.array(z.string()).optional()
|
|
234
|
-
}).optional(),
|
|
235
|
-
SanctionsAddresses: z.object({
|
|
236
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
237
|
-
AddressLine: z.string().optional(),
|
|
238
|
-
City: z.string().optional(),
|
|
239
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
240
|
-
Region: z.string().optional()
|
|
241
|
-
})).optional()
|
|
242
|
-
}).optional(),
|
|
243
|
-
SanctionsDates: z.object({
|
|
244
|
-
GlobalSanctionsDate: z.object({
|
|
245
|
-
DateType: z.string().optional(),
|
|
246
|
-
Day: z.number()["int"]().optional(),
|
|
247
|
-
Month: z.number()["int"]().optional(),
|
|
248
|
-
Year: z.number()["int"]().optional()
|
|
249
|
-
}).optional()
|
|
250
|
-
}).optional(),
|
|
251
|
-
IdentityInformation: z.string().optional(),
|
|
252
|
-
SanctionsPositions: z.object({
|
|
253
|
-
GlobalSanctionsPosition: z.array(z.object({
|
|
254
|
-
Position: z.string().optional(),
|
|
255
|
-
Country: z.string().optional()
|
|
256
|
-
})).optional()
|
|
257
|
-
}).optional()
|
|
258
|
-
})).describe("The result of the PEP Intelligence check").optional(),
|
|
259
|
-
sanctionsEnforcementsResult: z.array(z.object({
|
|
260
|
-
Fullname: z.string().optional(),
|
|
261
|
-
SanctionsBodies: z.object({
|
|
262
|
-
elements: z.array(z.number()["int"]()).optional()
|
|
263
|
-
}).optional(),
|
|
264
|
-
Aliases: z.object({
|
|
265
|
-
elements: z.array(z.string()).optional()
|
|
266
|
-
}).optional(),
|
|
267
|
-
SanctionsAddresses: z.object({
|
|
268
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
269
|
-
AddressLine: z.string().optional(),
|
|
270
|
-
City: z.string().optional(),
|
|
271
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
272
|
-
Region: z.string().optional()
|
|
273
|
-
})).optional()
|
|
274
|
-
}).optional(),
|
|
275
|
-
SanctionsDates: z.object({
|
|
276
|
-
GlobalSanctionsDate: z.object({
|
|
277
|
-
DateType: z.string().optional(),
|
|
278
|
-
Day: z.number()["int"]().optional(),
|
|
279
|
-
Month: z.number()["int"]().optional(),
|
|
280
|
-
Year: z.number()["int"]().optional()
|
|
281
|
-
}).optional()
|
|
282
|
-
}).optional(),
|
|
283
|
-
IdentityInformation: z.string().optional()
|
|
284
|
-
})).describe("The result of the Sanctions Enforcements check").optional()
|
|
285
|
-
}).describe("Details related to the original data before any amendments"),
|
|
286
|
-
personalDetails: z.object({
|
|
287
|
-
citizenship: z["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"]).describe("The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
288
|
-
documentType: z["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"]).describe("The type of document used to verify the credential subject").optional(),
|
|
289
|
-
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
290
|
-
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
291
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
292
|
-
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
293
|
-
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
294
|
-
birthday: z.string().describe("Birthday of the credential subject").optional(),
|
|
295
|
-
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
296
|
-
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
297
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
298
|
-
city: z.string().describe("City of the credential subject").optional(),
|
|
299
|
-
province: z.string().describe("Province of the credential subject").optional(),
|
|
300
|
-
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
301
|
-
emailAddress: z.string().describe("Email address of the credential subject").optional(),
|
|
302
|
-
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
303
|
-
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
304
|
-
middleName: z.string().describe("Middle name of the credential subject").optional()
|
|
305
|
-
}).describe("Personal details of the credential subject")
|
|
306
|
-
}).describe("Stores the data of the credential");
|
|
307
|
-
|
|
308
|
-
var IDScanCredentialSubjectSchema = z.object({
|
|
309
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
310
|
-
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
311
|
-
highLevelResult: z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
|
|
312
|
-
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
313
|
-
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
314
|
-
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
315
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
316
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
317
|
-
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
318
|
-
documentCategory: z.string().describe("Category of the document provided by the credential subject").optional(),
|
|
319
|
-
documentName: z.string().describe("Name of the document provided by the credential subject").optional(),
|
|
320
|
-
documentSide: z["enum"](["Front", "Back"]).describe("Side of the document provided by the credential subject").optional(),
|
|
321
|
-
documentType: z["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"]).describe("Type of the document provided by the credential subject").optional(),
|
|
322
|
-
entryDate: z.string().describe("Entry date associated with the credential").optional(),
|
|
323
|
-
entryTime: z.string().describe("Entry time associated with the credential").optional(),
|
|
324
|
-
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
325
|
-
addressLine1: z.string().describe("First line of the address of the credential subject").optional(),
|
|
326
|
-
addressLine2: z.string().describe("Second line of the address of the credential subject").optional(),
|
|
327
|
-
birthDate: z.string().describe("Date of birth of the credential subject").optional(),
|
|
328
|
-
birthPlace: z.string().nullable().optional(),
|
|
329
|
-
highLevelResultDetails: z.object({
|
|
330
|
-
documentOverallValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
|
|
331
|
-
documentBlockingPolicy: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
|
|
332
|
-
documentExpiry: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
|
|
333
|
-
documentSupport: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
|
|
334
|
-
documentValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
|
|
335
|
-
faceMatchValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
|
|
336
|
-
accumulativeLivenessResult: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
|
|
337
|
-
}).describe("Detailed results of the high level KYC check").optional(),
|
|
338
|
-
faceMatchScore: z.string().describe("Score for the face match validation").optional(),
|
|
339
|
-
qualityCheckDetails: z.array(z.object({
|
|
340
|
-
id: z.string().describe("ID of the quality check item").optional(),
|
|
341
|
-
title: z.string().describe("Title of the quality check item").optional(),
|
|
342
|
-
description: z.string().describe("Description of the quality check item").optional(),
|
|
343
|
-
state: z.number()["int"]().describe("State of the quality check item").optional()
|
|
344
|
-
}).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
|
|
345
|
-
validationDetails: z.array(z.object({
|
|
346
|
-
name: z.string().describe("Name of the validation item").optional(),
|
|
347
|
-
description: z.string().describe("Detailed description of the validation item").optional(),
|
|
348
|
-
result: z.number()["int"]().describe("Result code of the validation").optional()
|
|
349
|
-
}).describe("Details of a specific validation item")).describe("Details of the validation performed").optional()
|
|
350
|
-
}).describe("Stores the data of the credential");
|
|
351
|
-
|
|
352
|
-
var IDScanPassportCredentialSubjectSchema = z.object({
|
|
353
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
354
|
-
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
355
|
-
base64: z.string().describe("Base64 encoded image of the passport image"),
|
|
356
|
-
name: z.string().describe("Name of the docuemnt (e.g. passport.jpg)"),
|
|
357
|
-
documentType: z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
|
|
358
|
-
}).describe("Stores the data of the credential");
|
|
359
|
-
|
|
360
|
-
var IDScanSelfieCredentialSubjectSchema = z.object({
|
|
361
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
362
|
-
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
363
|
-
base64: z.string().describe("Base64 encoded image of the selfie image"),
|
|
364
|
-
name: z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
|
|
365
|
-
documentType: z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
|
|
366
|
-
}).describe("Stores the data of the credential");
|
|
367
|
-
|
|
368
|
-
var OLD_IDImageCredentialSubjectSchema = z.object({
|
|
369
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
370
|
-
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
371
|
-
base64: z.string().describe("Base64 encoded image of the passport image"),
|
|
372
|
-
name: z.string().describe("Name of the document (e.g. passport.jpg)"),
|
|
373
|
-
documentType: z["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"]).describe("Type of the document (e.g. passport)"),
|
|
374
|
-
mediaType: z["enum"](["image/jpeg", "image/jpg", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)")
|
|
375
|
-
}).describe("Stores the data of the credential");
|
|
376
|
-
|
|
377
|
-
var OLD_IDInformationCredentialSubjectSchema = z.object({
|
|
378
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
379
|
-
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
380
|
-
highLevelResult: z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
|
|
381
|
-
highLevelResultDetails: z.object({
|
|
382
|
-
documentOverallValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
|
|
383
|
-
documentBlockingPolicy: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
|
|
384
|
-
documentExpiry: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
|
|
385
|
-
documentSupport: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
|
|
386
|
-
documentValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
|
|
387
|
-
faceMatchValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
|
|
388
|
-
accumulativeLivenessResult: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
|
|
389
|
-
}).describe("Detailed results of the high level KYC check").optional(),
|
|
390
|
-
faceMatchScore: z.string().describe("Score for the face match validation").optional(),
|
|
391
|
-
qualityCheckDetails: z.array(z.object({
|
|
392
|
-
id: z.string().describe("ID of the quality check item").optional(),
|
|
393
|
-
title: z.string().describe("Title of the quality check item").optional(),
|
|
394
|
-
description: z.string().describe("Description of the quality check item").optional(),
|
|
395
|
-
state: z.number()["int"]().describe("State of the quality check item").optional()
|
|
396
|
-
}).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
|
|
397
|
-
validationDetails: z.array(z.object({
|
|
398
|
-
name: z.string().describe("Name of the validation item").optional(),
|
|
399
|
-
description: z.string().describe("Detailed description of the validation item").optional(),
|
|
400
|
-
result: z.number()["int"]().describe("Result code of the validation").optional()
|
|
401
|
-
}).describe("Details of a specific validation item")).describe("Details of the validation performed").optional(),
|
|
402
|
-
documentCategory: z.string().describe("Category of the document provided by the credential subject").optional(),
|
|
403
|
-
documentName: z.string().describe("Name of the document provided by the credential subject"),
|
|
404
|
-
documentType: z["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"]).describe("Type of the document provided by the credential subject"),
|
|
405
|
-
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
406
|
-
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
407
|
-
originalData: z.object({
|
|
408
|
-
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
409
|
-
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
410
|
-
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
411
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
412
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
413
|
-
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
414
|
-
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
415
|
-
addressLine1: z.string().describe("First line of the address of the credential subject").optional(),
|
|
416
|
-
addressLine2: z.string().describe("Second line of the address of the credential subject").optional(),
|
|
417
|
-
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
418
|
-
placeOfBirth: z.string().nullable().describe("Place of birth of the credential subject").optional()
|
|
419
|
-
}).describe("Original data extracted by the provider"),
|
|
420
|
-
amendmentsData: z.object({
|
|
421
|
-
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
422
|
-
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
423
|
-
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
424
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
425
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
426
|
-
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
427
|
-
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
428
|
-
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
429
|
-
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
430
|
-
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
431
|
-
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
432
|
-
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional()
|
|
433
|
-
}).describe("Personal details manually amended by the holder/user during authentication process.")
|
|
434
|
-
}).describe("Stores the data of the credential");
|
|
435
|
-
|
|
436
|
-
var OLD_ProofOfResidenceCredentialSubjectSchema = z.object({
|
|
437
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
438
|
-
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with").optional(),
|
|
439
|
-
country: z["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"]).describe("The country of residence - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
440
|
-
base64: z.string().describe("Base64 encoded image of the proof of residence").optional(),
|
|
441
|
-
name: z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
|
|
442
|
-
documentType: z["enum"](["Gas_bill", "Internet_bill", "Electricity_bill", "Rent_agreement", "Bank_statement"]).describe("Type of the document (e.g. Gas bill, Internet bill, Electricity bill, Rent agreement, Bank statement)").optional(),
|
|
443
|
-
mediaType: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)").optional(),
|
|
444
|
-
county: z.string().describe("The county of residence").optional(),
|
|
445
|
-
city: z.string().describe("The city of residence").optional(),
|
|
446
|
-
streetName: z.string().describe("The street name of residence").optional(),
|
|
447
|
-
postalCode: z.string().describe("The postal code of residence").optional()
|
|
448
|
-
}).describe("Stores the data of the credential");
|
|
449
|
-
|
|
450
|
-
var OLD_SelfieImageCredentialSubjectSchema = z.object({
|
|
451
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
452
|
-
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
453
|
-
base64: z.string().describe("Base64 encoded image of the selfie image"),
|
|
454
|
-
name: z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
|
|
455
|
-
mediaType: z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)")
|
|
456
|
-
}).describe("Stores the data of the credential");
|
|
457
|
-
|
|
458
|
-
var OLD_AMLScreeningsResultsCredentialSubjectSchema = z.object({
|
|
459
|
-
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
460
|
-
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
461
|
-
amendmentsData: z.object({
|
|
462
|
-
data: z.object({
|
|
463
|
-
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
464
|
-
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
465
|
-
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
466
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
467
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
468
|
-
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
469
|
-
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
470
|
-
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
471
|
-
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
472
|
-
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
473
|
-
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
474
|
-
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
475
|
-
city: z.string().describe("City of the credential subject").optional(),
|
|
476
|
-
province: z.string().describe("Province of the credential subject").optional(),
|
|
477
|
-
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
478
|
-
emailAddress: z.string().email().describe("Email address of the credential subject").optional(),
|
|
479
|
-
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
480
|
-
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional()
|
|
481
|
-
}).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
|
|
482
|
-
authenticateSPResult: z.object({
|
|
483
|
-
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
484
|
-
Timestamp: z.string().datetime().describe("The timestamp of the authentication request").optional(),
|
|
485
|
-
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
486
|
-
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
487
|
-
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
488
|
-
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
489
|
-
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
490
|
-
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
491
|
-
ResultCodes: z.object({
|
|
492
|
-
GlobalItemCheckResultCodes: z.array(z.object({
|
|
493
|
-
Name: z.string().optional(),
|
|
494
|
-
Description: z.string().optional(),
|
|
495
|
-
Comment: z.object({
|
|
496
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
497
|
-
Description: z.string().optional(),
|
|
498
|
-
Code: z.number()["int"]().optional()
|
|
499
|
-
})).optional()
|
|
500
|
-
}).optional(),
|
|
501
|
-
Match: z.object({
|
|
502
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
503
|
-
Description: z.string().optional(),
|
|
504
|
-
Code: z.number()["int"]().optional()
|
|
505
|
-
})).optional()
|
|
506
|
-
}).optional(),
|
|
507
|
-
Warning: z.object({
|
|
508
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
509
|
-
Description: z.string().optional(),
|
|
510
|
-
Code: z.number()["int"]().optional()
|
|
511
|
-
})).optional()
|
|
512
|
-
}).optional(),
|
|
513
|
-
Mismatch: z.object({
|
|
514
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
515
|
-
Description: z.string().optional(),
|
|
516
|
-
Code: z.number()["int"]().optional()
|
|
517
|
-
})).optional()
|
|
518
|
-
}).optional(),
|
|
519
|
-
ID: z.number()["int"]().optional(),
|
|
520
|
-
Pass: z.string().optional(),
|
|
521
|
-
Address: z.string().optional(),
|
|
522
|
-
Forename: z.string().optional(),
|
|
523
|
-
Surname: z.string().optional(),
|
|
524
|
-
DOB: z.string().optional(),
|
|
525
|
-
Alert: z.string().optional(),
|
|
526
|
-
SanctionsMatches: z.object({
|
|
527
|
-
GlobalSanctionsMatch: z.array(z.object({
|
|
528
|
-
SanctionID: z.string().optional(),
|
|
529
|
-
Url: z.string().optional(),
|
|
530
|
-
Rank: z.number()["int"]().optional(),
|
|
531
|
-
CaseID: z.string().optional(),
|
|
532
|
-
SearchID: z.string().optional()
|
|
533
|
-
})).optional()
|
|
534
|
-
}).optional()
|
|
535
|
-
})).optional()
|
|
536
|
-
}).describe("The result codes of the authentication request").optional(),
|
|
537
|
-
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
538
|
-
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
539
|
-
Country: z.string().describe("Country type of the authentication request").optional(),
|
|
540
|
-
ItemCheckDecisionBands: z.object({
|
|
541
|
-
GlobalItemCheckDecisionBands: z.array(z.object({
|
|
542
|
-
ID: z.number()["int"]().optional(),
|
|
543
|
-
BandScore: z.number()["int"]().optional(),
|
|
544
|
-
BandText: z.string().optional()
|
|
545
|
-
})).optional()
|
|
546
|
-
}).describe("The item check decision bands of the authentication request").optional()
|
|
547
|
-
}).describe("Result of the authentication request").optional(),
|
|
548
|
-
pepIntelligenceResult: z.array(z.object({
|
|
549
|
-
Fullname: z.string().optional(),
|
|
550
|
-
Aliases: z.object({
|
|
551
|
-
elements: z.array(z.string()).optional()
|
|
552
|
-
}).optional(),
|
|
553
|
-
SanctionsAddresses: z.object({
|
|
554
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
555
|
-
AddressLine: z.string().optional(),
|
|
556
|
-
City: z.string().optional(),
|
|
557
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
558
|
-
Region: z.string().optional()
|
|
559
|
-
})).optional()
|
|
560
|
-
}).optional(),
|
|
561
|
-
SanctionsDates: z.object({
|
|
562
|
-
GlobalSanctionsDate: z.object({
|
|
563
|
-
DateType: z.string().optional(),
|
|
564
|
-
Day: z.number()["int"]().optional(),
|
|
565
|
-
Month: z.number()["int"]().optional(),
|
|
566
|
-
Year: z.number()["int"]().optional()
|
|
567
|
-
}).optional()
|
|
568
|
-
}).optional(),
|
|
569
|
-
IdentityInformation: z.string().optional(),
|
|
570
|
-
SanctionsPositions: z.object({
|
|
571
|
-
GlobalSanctionsPosition: z.array(z.object({
|
|
572
|
-
Position: z.string().optional(),
|
|
573
|
-
Country: z.string().optional()
|
|
574
|
-
})).optional()
|
|
575
|
-
}).optional()
|
|
576
|
-
})).optional(),
|
|
577
|
-
sanctionsEnforcementsResult: z.array(z.object({
|
|
578
|
-
Fullname: z.string().optional(),
|
|
579
|
-
SanctionsBodies: z.object({
|
|
580
|
-
elements: z.array(z.number()["int"]()).optional()
|
|
581
|
-
}).optional(),
|
|
582
|
-
Aliases: z.object({
|
|
583
|
-
elements: z.array(z.string()).optional()
|
|
584
|
-
}).optional(),
|
|
585
|
-
SanctionsAddresses: z.object({
|
|
586
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
587
|
-
AddressLine: z.string().optional(),
|
|
588
|
-
City: z.string().optional(),
|
|
589
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
590
|
-
Region: z.string().optional()
|
|
591
|
-
})).optional()
|
|
592
|
-
}).optional(),
|
|
593
|
-
SanctionsDates: z.object({
|
|
594
|
-
GlobalSanctionsDate: z.object({
|
|
595
|
-
DateType: z.string().optional(),
|
|
596
|
-
Day: z.number()["int"]().optional(),
|
|
597
|
-
Month: z.number()["int"]().optional(),
|
|
598
|
-
Year: z.number()["int"]().optional()
|
|
599
|
-
}).optional()
|
|
600
|
-
}).optional(),
|
|
601
|
-
IdentityInformation: z.string().optional()
|
|
602
|
-
})).optional()
|
|
603
|
-
}).describe("Details related to the amendments made to the original data."),
|
|
604
|
-
originalData: z.object({
|
|
605
|
-
data: z.object({
|
|
606
|
-
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
607
|
-
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
608
|
-
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
609
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
610
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
611
|
-
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
612
|
-
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
613
|
-
addressLine1: z.string().describe("First line of the address of the credential subject").optional(),
|
|
614
|
-
addressLine2: z.string().describe("Second line of the address of the credential subject").optional(),
|
|
615
|
-
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
616
|
-
placeOfBirth: z.string().nullable().optional()
|
|
617
|
-
}).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
|
|
618
|
-
authenticateSPResult: z.object({
|
|
619
|
-
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
620
|
-
Timestamp: z.string().datetime().describe("The date and time of the authentication request").optional(),
|
|
621
|
-
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
622
|
-
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
623
|
-
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
624
|
-
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
625
|
-
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
626
|
-
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
627
|
-
ResultCodes: z.object({
|
|
628
|
-
GlobalItemCheckResultCodes: z.array(z.object({
|
|
629
|
-
Name: z.string().optional(),
|
|
630
|
-
Description: z.string().optional(),
|
|
631
|
-
Comment: z.object({
|
|
632
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
633
|
-
Description: z.string().optional(),
|
|
634
|
-
Code: z.number()["int"]().optional()
|
|
635
|
-
})).optional()
|
|
636
|
-
}).optional(),
|
|
637
|
-
Match: z.object({
|
|
638
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
639
|
-
Description: z.string().optional(),
|
|
640
|
-
Code: z.number()["int"]().optional()
|
|
641
|
-
})).optional()
|
|
642
|
-
}).optional(),
|
|
643
|
-
Warning: z.object({
|
|
644
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
645
|
-
Description: z.string().optional(),
|
|
646
|
-
Code: z.number()["int"]().optional()
|
|
647
|
-
})).optional()
|
|
648
|
-
}).optional(),
|
|
649
|
-
Mismatch: z.object({
|
|
650
|
-
GlobalItemCheckResultCode: z.array(z.object({
|
|
651
|
-
Description: z.string().optional(),
|
|
652
|
-
Code: z.number()["int"]().optional()
|
|
653
|
-
})).optional()
|
|
654
|
-
}).optional(),
|
|
655
|
-
ID: z.number()["int"]().optional(),
|
|
656
|
-
Pass: z.string().optional(),
|
|
657
|
-
Address: z.string().optional(),
|
|
658
|
-
Forename: z.string().optional(),
|
|
659
|
-
Surname: z.string().optional(),
|
|
660
|
-
DOB: z.string().optional(),
|
|
661
|
-
Alert: z.string().optional(),
|
|
662
|
-
SanctionsMatches: z.object({
|
|
663
|
-
GlobalSanctionsMatch: z.array(z.object({
|
|
664
|
-
SanctionID: z.string().optional(),
|
|
665
|
-
Url: z.string().optional(),
|
|
666
|
-
Rank: z.number()["int"]().optional(),
|
|
667
|
-
CaseID: z.string().optional(),
|
|
668
|
-
SearchID: z.string().optional()
|
|
669
|
-
})).optional()
|
|
670
|
-
}).optional()
|
|
671
|
-
})).optional()
|
|
672
|
-
}).describe("The result codes of the authentication request").optional(),
|
|
673
|
-
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
674
|
-
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
675
|
-
Country: z.string().describe("The country type of the authentication request").optional()
|
|
676
|
-
}).describe("The result of the Authenticate SP check").optional(),
|
|
677
|
-
pepIntelligenceResult: z.array(z.object({
|
|
678
|
-
Fullname: z.string().optional(),
|
|
679
|
-
Aliases: z.object({
|
|
680
|
-
elements: z.array(z.string()).optional()
|
|
681
|
-
}).optional(),
|
|
682
|
-
SanctionsAddresses: z.object({
|
|
683
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
684
|
-
AddressLine: z.string().optional(),
|
|
685
|
-
City: z.string().optional(),
|
|
686
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
687
|
-
Region: z.string().optional()
|
|
688
|
-
})).optional()
|
|
689
|
-
}).optional(),
|
|
690
|
-
SanctionsDates: z.object({
|
|
691
|
-
GlobalSanctionsDate: z.object({
|
|
692
|
-
DateType: z.string().optional(),
|
|
693
|
-
Day: z.number()["int"]().optional(),
|
|
694
|
-
Month: z.number()["int"]().optional(),
|
|
695
|
-
Year: z.number()["int"]().optional()
|
|
696
|
-
}).optional()
|
|
697
|
-
}).optional(),
|
|
698
|
-
IdentityInformation: z.string().optional(),
|
|
699
|
-
SanctionsPositions: z.object({
|
|
700
|
-
GlobalSanctionsPosition: z.array(z.object({
|
|
701
|
-
Position: z.string().optional(),
|
|
702
|
-
Country: z.string().optional()
|
|
703
|
-
})).optional()
|
|
704
|
-
}).optional()
|
|
705
|
-
})).describe("The result of the PEP Intelligence check").optional(),
|
|
706
|
-
sanctionsEnforcementsResult: z.array(z.object({
|
|
707
|
-
Fullname: z.string().optional(),
|
|
708
|
-
SanctionsBodies: z.object({
|
|
709
|
-
elements: z.array(z.number()["int"]()).optional()
|
|
710
|
-
}).optional(),
|
|
711
|
-
Aliases: z.object({
|
|
712
|
-
elements: z.array(z.string()).optional()
|
|
713
|
-
}).optional(),
|
|
714
|
-
SanctionsAddresses: z.object({
|
|
715
|
-
GlobalSanctionsAddress: z.array(z.object({
|
|
716
|
-
AddressLine: z.string().optional(),
|
|
717
|
-
City: z.string().optional(),
|
|
718
|
-
Country: z.string().describe("Full name of country").optional(),
|
|
719
|
-
Region: z.string().optional()
|
|
720
|
-
})).optional()
|
|
721
|
-
}).optional(),
|
|
722
|
-
SanctionsDates: z.object({
|
|
723
|
-
GlobalSanctionsDate: z.object({
|
|
724
|
-
DateType: z.string().optional(),
|
|
725
|
-
Day: z.number()["int"]().optional(),
|
|
726
|
-
Month: z.number()["int"]().optional(),
|
|
727
|
-
Year: z.number()["int"]().optional()
|
|
728
|
-
}).optional()
|
|
729
|
-
}).optional(),
|
|
730
|
-
IdentityInformation: z.string().optional()
|
|
731
|
-
})).describe("The result of the Sanctions Enforcements check").optional()
|
|
732
|
-
}).describe("Details related to the original data before any amendments")
|
|
733
|
-
}).describe("Stores the data of the credential");
|
|
4
|
+
function _toPrimitive(t, r) {
|
|
5
|
+
if ("object" != typeof t || !t) return t;
|
|
6
|
+
var e = t[Symbol.toPrimitive];
|
|
7
|
+
if (void 0 !== e) {
|
|
8
|
+
var i = e.call(t, r || "default");
|
|
9
|
+
if ("object" != typeof i) return i;
|
|
10
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11
|
+
}
|
|
12
|
+
return ("string" === r ? String : Number)(t);
|
|
13
|
+
}
|
|
734
14
|
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
reviewRejectType: z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
|
|
740
|
-
reviewRejectLabels: z.array(z["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"])).describe("Reject labels").optional(),
|
|
741
|
-
documentType: z["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"]).describe("Type of the document provided by the credential subject"),
|
|
742
|
-
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
743
|
-
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
744
|
-
personalData: z.object({
|
|
745
|
-
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
746
|
-
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
747
|
-
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
748
|
-
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
749
|
-
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
750
|
-
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
751
|
-
country: z["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"]).describe("Country of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
752
|
-
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
753
|
-
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
754
|
-
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
755
|
-
stateOfBirth: z.string().describe("State of birth of the credential subject").optional()
|
|
756
|
-
}).describe("Original data extracted by the provider"),
|
|
757
|
-
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
758
|
-
}).describe("Stores the data of the credential");
|
|
15
|
+
function _toPropertyKey(t) {
|
|
16
|
+
var i = _toPrimitive(t, "string");
|
|
17
|
+
return "symbol" == typeof i ? i : i + "";
|
|
18
|
+
}
|
|
759
19
|
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
769
|
-
mediaType_front: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the front of the document (e.g. image/jpeg, image/png, application/pdf)"),
|
|
770
|
-
mediaType_back: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the back of the document (e.g. image/jpeg, image/png, application/pdf)").optional(),
|
|
771
|
-
reviewAnswer: z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review answer from kyc provider"),
|
|
772
|
-
reviewRejectType: z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
|
|
773
|
-
reviewRejectLabels: z.array(z["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"])).describe("Reject labels").optional(),
|
|
774
|
-
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
775
|
-
}).describe("Stores the data of the credential");
|
|
20
|
+
function _defineProperty(e, r, t) {
|
|
21
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
22
|
+
value: t,
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0,
|
|
25
|
+
writable: !0
|
|
26
|
+
}) : e[r] = t, e;
|
|
27
|
+
}
|
|
776
28
|
|
|
777
|
-
var
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
29
|
+
var _EVM_BLOCK_TIME, _NEXERA_EVM_CHAIN_NAM, _NEXERA_CHAIN_VALUES;
|
|
30
|
+
var NEXERA_EVM_CHAINS = /*#__PURE__*/function (NEXERA_EVM_CHAINS) {
|
|
31
|
+
NEXERA_EVM_CHAINS["ETHEREUM"] = "1";
|
|
32
|
+
NEXERA_EVM_CHAINS["GOERLI"] = "5";
|
|
33
|
+
NEXERA_EVM_CHAINS["ARBITRUM"] = "42161";
|
|
34
|
+
NEXERA_EVM_CHAINS["ARBITRUM_GOERLI"] = "421613";
|
|
35
|
+
NEXERA_EVM_CHAINS["ARBITRUM_SEPOLIA"] = "421614";
|
|
36
|
+
NEXERA_EVM_CHAINS["OPTIMISM"] = "10";
|
|
37
|
+
NEXERA_EVM_CHAINS["OPTIMISM_GOERLI"] = "420";
|
|
38
|
+
NEXERA_EVM_CHAINS["OPTIMISM_SEPOLIA"] = "11155420";
|
|
39
|
+
NEXERA_EVM_CHAINS["AVALANCHE"] = "43114";
|
|
40
|
+
NEXERA_EVM_CHAINS["AVALANCHE_FUJI"] = "43113";
|
|
41
|
+
NEXERA_EVM_CHAINS["POLYGON"] = "137";
|
|
42
|
+
NEXERA_EVM_CHAINS["POLYGON_AMOY"] = "80002";
|
|
43
|
+
NEXERA_EVM_CHAINS["SEPOLIA"] = "11155111";
|
|
44
|
+
NEXERA_EVM_CHAINS["BASE"] = "8453";
|
|
45
|
+
NEXERA_EVM_CHAINS["BASE_GOERLI"] = "84531";
|
|
46
|
+
NEXERA_EVM_CHAINS["BASE_SEPOLIA"] = "84532";
|
|
47
|
+
NEXERA_EVM_CHAINS["MOONBEAM"] = "1284";
|
|
48
|
+
NEXERA_EVM_CHAINS["MOONRIVER"] = "1285";
|
|
49
|
+
NEXERA_EVM_CHAINS["BNB"] = "56";
|
|
50
|
+
NEXERA_EVM_CHAINS["BNB_TESTNET"] = "97";
|
|
51
|
+
NEXERA_EVM_CHAINS["SWISSTRONIK_TESTNET"] = "1291";
|
|
52
|
+
return NEXERA_EVM_CHAINS;
|
|
53
|
+
}({});
|
|
54
|
+
var EVM_BLOCK_TIME = (_EVM_BLOCK_TIME = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_EVM_BLOCK_TIME, NEXERA_EVM_CHAINS.ETHEREUM, 12), NEXERA_EVM_CHAINS.GOERLI, 12), NEXERA_EVM_CHAINS.SEPOLIA, 12), NEXERA_EVM_CHAINS.ARBITRUM, 0.26), NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, 0.26), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, 0.26), NEXERA_EVM_CHAINS.OPTIMISM, 2), NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, 2), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, 2), NEXERA_EVM_CHAINS.AVALANCHE, 3), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_EVM_BLOCK_TIME, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, 3), NEXERA_EVM_CHAINS.POLYGON, 2), NEXERA_EVM_CHAINS.POLYGON_AMOY, 2), NEXERA_EVM_CHAINS.BASE, 2), NEXERA_EVM_CHAINS.BASE_GOERLI, 2), NEXERA_EVM_CHAINS.BASE_SEPOLIA, 2), NEXERA_EVM_CHAINS.BNB, 3), NEXERA_EVM_CHAINS.BNB_TESTNET, 3), NEXERA_EVM_CHAINS.MOONBEAM, 12), NEXERA_EVM_CHAINS.MOONRIVER, 12), _defineProperty(_EVM_BLOCK_TIME, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, 4));
|
|
55
|
+
var NEXERA_TEZOS_CHAINS = /*#__PURE__*/function (NEXERA_TEZOS_CHAINS) {
|
|
56
|
+
NEXERA_TEZOS_CHAINS["TEZOS"] = "NetXdQprcVkpaWU";
|
|
57
|
+
NEXERA_TEZOS_CHAINS["TEZOS_GHOSTNET"] = "NetXnHfVqm9iesp";
|
|
58
|
+
return NEXERA_TEZOS_CHAINS;
|
|
59
|
+
}({});
|
|
60
|
+
var NEXERA_COSMOS_CHAINS = /*#__PURE__*/function (NEXERA_COSMOS_CHAINS) {
|
|
61
|
+
NEXERA_COSMOS_CHAINS["COSMOS"] = "cosmoshub-4";
|
|
62
|
+
NEXERA_COSMOS_CHAINS["COSMOS_TESTNET"] = "theta-testnet-001";
|
|
63
|
+
return NEXERA_COSMOS_CHAINS;
|
|
64
|
+
}({});
|
|
65
|
+
var NEXERA_STARKNET_CHAINS = /*#__PURE__*/function (NEXERA_STARKNET_CHAINS) {
|
|
66
|
+
NEXERA_STARKNET_CHAINS["STARKNET_MAIN"] = "0x534e5f4d41494e";
|
|
67
|
+
NEXERA_STARKNET_CHAINS["STARKNET_SEPOLIA"] = "0x534e5f5345504f4c4941";
|
|
68
|
+
return NEXERA_STARKNET_CHAINS;
|
|
69
|
+
}({});
|
|
70
|
+
var NEXERA_EVM_CHAIN_NAMES = (_NEXERA_EVM_CHAIN_NAM = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_EVM_CHAINS.ETHEREUM, "Ethereum Mainnet"), NEXERA_EVM_CHAINS.GOERLI, "Goerli"), NEXERA_EVM_CHAINS.SEPOLIA, "Sepolia"), NEXERA_EVM_CHAINS.POLYGON, "Polygon"), NEXERA_EVM_CHAINS.POLYGON_AMOY, "Polygon Amoy"), NEXERA_EVM_CHAINS.AVALANCHE, "Avalanche"), NEXERA_EVM_CHAINS.AVALANCHE_FUJI, "Avalanche Fuji"), NEXERA_EVM_CHAINS.ARBITRUM, "Arbitrum"), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, "Arbitrum Sepolia"), NEXERA_EVM_CHAINS.BASE, "Base"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_EVM_CHAINS.BASE_SEPOLIA, "Base Sepolia"), NEXERA_EVM_CHAINS.BNB, "BSC"), NEXERA_EVM_CHAINS.BNB_TESTNET, "BSC Testnet"), NEXERA_EVM_CHAINS.OPTIMISM, "Optimism"), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, "Optimism Sepolia"), NEXERA_EVM_CHAINS.MOONBEAM, "Moonbeam"), NEXERA_EVM_CHAINS.MOONRIVER, "Moonriver"), NEXERA_TEZOS_CHAINS.TEZOS, "tezos-mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "tezos-ghostnet"), NEXERA_COSMOS_CHAINS.COSMOS, "cosmos-mainnet"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "cosmos-testnet"), NEXERA_STARKNET_CHAINS.STARKNET_MAIN, "starknet-mainnet"), NEXERA_STARKNET_CHAINS.STARKNET_SEPOLIA, "starknet-sepolia"), NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, "Optimism Goerli"), NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, "Arbitrum Goerli"), NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, "Swisstronik Testnet"));
|
|
71
|
+
var NEXERA_EVM_CHAIN_NAMES_LIST = Object.values(NEXERA_EVM_CHAIN_NAMES);
|
|
72
|
+
var NEXERA_CHAIN_VALUES = (_NEXERA_CHAIN_VALUES = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_CHAIN_VALUES, NEXERA_EVM_CHAINS.ETHEREUM, 1), NEXERA_EVM_CHAINS.GOERLI, 5), NEXERA_EVM_CHAINS.POLYGON, 137), NEXERA_EVM_CHAINS.POLYGON_AMOY, 80002), NEXERA_EVM_CHAINS.AVALANCHE, 43114), NEXERA_EVM_CHAINS.AVALANCHE_FUJI, 43113), NEXERA_EVM_CHAINS.ARBITRUM, 42161), NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, 421613), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, 421614), NEXERA_EVM_CHAINS.SEPOLIA, 11155111), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_CHAIN_VALUES, NEXERA_EVM_CHAINS.BASE, 8453), NEXERA_EVM_CHAINS.BASE_GOERLI, 84531), NEXERA_EVM_CHAINS.BASE_SEPOLIA, 84532), NEXERA_EVM_CHAINS.BNB, 56), NEXERA_EVM_CHAINS.BNB_TESTNET, 97), NEXERA_EVM_CHAINS.MOONBEAM, 1284), NEXERA_EVM_CHAINS.MOONRIVER, 1285), NEXERA_EVM_CHAINS.OPTIMISM, 10), NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, 69), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, 11155420), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_CHAIN_VALUES, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, 1291), NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp"), NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001"), NEXERA_STARKNET_CHAINS.STARKNET_MAIN, "0x534e5f4d41494e"), NEXERA_STARKNET_CHAINS.STARKNET_SEPOLIA, "0x534e5f5345504f4c4941"));
|
|
73
|
+
var EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC = [NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
|
|
74
|
+
var ACTIVE_EVM_CHAIN_VALUES = [NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB,
|
|
75
|
+
// for Bsc
|
|
76
|
+
NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
|
|
77
|
+
var EvmChainId = z.preprocess(function (val) {
|
|
78
|
+
return String(val);
|
|
79
|
+
}, z["enum"](ACTIVE_EVM_CHAIN_VALUES).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
|
|
80
|
+
/////////////////////////////////////////
|
|
81
|
+
// Polygon //
|
|
82
|
+
/////////////////////////////////////////
|
|
790
83
|
|
|
791
|
-
var
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
name: z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
|
|
797
|
-
documentType: z["enum"](["Gas_bill", "Internet_bill", "Electricity_bill", "Rent_agreement", "Bank_statement"]).describe("Type of the document (e.g. Gas bill, Internet bill, Electricity bill, Rent agreement, Bank statement)"),
|
|
798
|
-
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
799
|
-
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
800
|
-
mediaType: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)").optional(),
|
|
801
|
-
county: z.string().describe("The county of residence").optional(),
|
|
802
|
-
city: z.string().describe("The city of residence").optional(),
|
|
803
|
-
streetName: z.string().describe("The street name of residence").optional(),
|
|
804
|
-
postalCode: z.string().describe("The postal code of residence").optional(),
|
|
805
|
-
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
806
|
-
}).describe("Stores the data of the credential");
|
|
84
|
+
var POLYGON_NETWORK_NAMES = ["main", "amoy"];
|
|
85
|
+
var PolygonNetworkNames = z["enum"](POLYGON_NETWORK_NAMES);
|
|
86
|
+
/////////////////////////////////////////
|
|
87
|
+
// TEZOS //
|
|
88
|
+
/////////////////////////////////////////
|
|
807
89
|
|
|
808
|
-
|
|
90
|
+
var NEXERA_TEZOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "Tezos Mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "Tezos Ghostnet");
|
|
91
|
+
var NEXERA_TEZOS_CHAIN_NAMES_LIST = Object.values(NEXERA_TEZOS_CHAIN_NAMES);
|
|
92
|
+
var NEXERA_TEZOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp");
|
|
93
|
+
var ACTIVE_TEZOS_CHAIN_VALUES = [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
|
|
94
|
+
var TezosChainId = z.preprocess(function (val) {
|
|
95
|
+
return String(val);
|
|
96
|
+
}, z["enum"](ACTIVE_TEZOS_CHAIN_VALUES).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
|
|
97
|
+
/////////////////////////////////////////
|
|
98
|
+
// COSMOS //
|
|
99
|
+
/////////////////////////////////////////
|
|
809
100
|
|
|
810
|
-
var
|
|
811
|
-
var
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
});
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
var
|
|
822
|
-
|
|
823
|
-
"
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
// modified: packages/clients/api/src/generated/apps/CustomersService.ts
|
|
858
|
-
// modified: packages/clients/api/src/generated/apps/ScenariosService.ts
|
|
859
|
-
// modified: packages/libs/schemas/src/compliance/vc-schemas/supported-schemas/GenericVerifiableCredentialSchema.ts
|
|
860
|
-
),
|
|
861
|
-
credentialStatus: CredentialStatusPID,
|
|
862
|
-
issuer: z.string(),
|
|
863
|
-
credentialSchema: CredentialSchemaPID,
|
|
864
|
-
proof: z.any() //object | unknown[];
|
|
101
|
+
var COSMOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "Cosmos Mainnet"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "Cosmos Testnet");
|
|
102
|
+
var COSMOS_CHAIN_NAMES_LIST = Object.values(COSMOS_CHAIN_NAMES);
|
|
103
|
+
var COSMOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001");
|
|
104
|
+
var ACTIVE_COSMOS_CHAIN_VALUES = [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
|
|
105
|
+
var CosmosChainId = z.preprocess(function (val) {
|
|
106
|
+
return String(val);
|
|
107
|
+
}, z["enum"](ACTIVE_COSMOS_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
|
|
108
|
+
/////////////////////////////////////////
|
|
109
|
+
// STARKNET //
|
|
110
|
+
/////////////////////////////////////////
|
|
111
|
+
|
|
112
|
+
var NEXERA_STARKNET_CHAIN_NAMES = {
|
|
113
|
+
STARKNET_MAIN: "Starknet Mainnet",
|
|
114
|
+
STARKNET_SEPOLIA: "Starknet Sepolia"
|
|
115
|
+
};
|
|
116
|
+
var NEXERA_STARKNET_CHAIN_VALUES = {
|
|
117
|
+
STARKNET_MAIN: "0x534e5f4d41494e",
|
|
118
|
+
STARKNET_SEPOLIA: "0x534e5f5345504f4c4941"
|
|
119
|
+
};
|
|
120
|
+
var NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = [NEXERA_STARKNET_CHAIN_VALUES.STARKNET_MAIN, NEXERA_STARKNET_CHAIN_VALUES.STARKNET_SEPOLIA];
|
|
121
|
+
var StarknetChainId = z.preprocess(function (val) {
|
|
122
|
+
return String(val);
|
|
123
|
+
}, z["enum"](NEXERA_ACTIVE_STARKNET_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
|
|
124
|
+
/////////////////////////////////////////
|
|
125
|
+
// MERGED //
|
|
126
|
+
/////////////////////////////////////////
|
|
127
|
+
|
|
128
|
+
var BlockchainId = z.union([EvmChainId, TezosChainId, CosmosChainId, StarknetChainId]);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* EIP155
|
|
132
|
+
*/
|
|
133
|
+
var isValidAddress = function isValidAddress(address) {
|
|
134
|
+
var regex = /^0x[a-fA-F0-9]{40}$/;
|
|
135
|
+
return regex.test(address);
|
|
136
|
+
};
|
|
137
|
+
var String0x = z.string().refine(function (value) {
|
|
138
|
+
return value.startsWith("0x");
|
|
139
|
+
}, {
|
|
140
|
+
message: "0x string must start with '0x'"
|
|
141
|
+
}).describe("0x string");
|
|
142
|
+
var PrivateKey = String0x;
|
|
143
|
+
var PublicKey = z.string();
|
|
144
|
+
var HexadecimalSchema = z.string().refine(function (value) {
|
|
145
|
+
return /^[0-9a-fA-F]+$/.test(value);
|
|
146
|
+
}, {
|
|
147
|
+
message: "Input must be a hexadecimal string"
|
|
865
148
|
});
|
|
866
149
|
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
150
|
+
/**
|
|
151
|
+
* Note: it might be nice to use String0x as the base object instead of z.string(),
|
|
152
|
+
* but this causes update-api to fail with the following error:
|
|
153
|
+
* TRPCError: [query.kyc.sumsub.getJourneyData] -
|
|
154
|
+
* Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
|
|
155
|
+
*/
|
|
156
|
+
var AddressSchema = z.string().refine(function (value) {
|
|
157
|
+
// Check if the string starts with '0x' and the rest is a valid hexadecimal string
|
|
158
|
+
return /^0x[0-9A-Fa-f]*$/.test(value);
|
|
159
|
+
}, {
|
|
160
|
+
message: "Value must be a valid hexadecimal string prefixed with 0x"
|
|
161
|
+
}).transform(function (value) {
|
|
162
|
+
return value;
|
|
163
|
+
}).describe("String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet.");
|
|
164
|
+
var TxHash = z.string().refine(function (value) {
|
|
165
|
+
// Check if the string starts with '0x' and the rest is a valid hexadecimal string
|
|
166
|
+
return /^0x[0-9A-Fa-f]*$/.test(value);
|
|
167
|
+
}, {
|
|
168
|
+
message: "Value must be a valid hexadecimal string prefixed with 0x"
|
|
169
|
+
}).transform(function (value) {
|
|
170
|
+
return value;
|
|
171
|
+
}).describe("Transaction hash");
|
|
172
|
+
var EIP155Signature = String0x;
|
|
173
|
+
var FunctionCallData = String0x;
|
|
174
|
+
var shortAddress = function shortAddress(address) {
|
|
175
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
176
|
+
return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
|
|
877
177
|
};
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Aptos
|
|
181
|
+
*/
|
|
182
|
+
var AptosAddress = String0x;
|
|
183
|
+
var AptosSignature = z.string();
|
|
184
|
+
/**
|
|
185
|
+
* Starknet
|
|
186
|
+
*/
|
|
187
|
+
var StarknetAddress = String0x;
|
|
188
|
+
var StarknetSignature = String0x;
|
|
189
|
+
/**
|
|
190
|
+
* Polkadot
|
|
191
|
+
*/
|
|
192
|
+
var PolkadotAddress = z.string();
|
|
193
|
+
var PolkadotSignature = String0x;
|
|
194
|
+
/**
|
|
195
|
+
* Cosmos
|
|
196
|
+
*/
|
|
197
|
+
var CosmosAddress = z.string().refine(function (value) {
|
|
198
|
+
return value.startsWith("cosmos");
|
|
881
199
|
}, {
|
|
882
|
-
|
|
883
|
-
|
|
200
|
+
message: "Cosmos address must start with 'cosmos'"
|
|
201
|
+
}).transform(function (value) {
|
|
202
|
+
return value;
|
|
203
|
+
}).describe("Cosmos address");
|
|
204
|
+
var CosmosSignature = HexadecimalSchema;
|
|
205
|
+
/**
|
|
206
|
+
* Tezos
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
var TezosImplicitAddress = z.string().refine(function (value) {
|
|
210
|
+
return value.startsWith("tz");
|
|
884
211
|
}, {
|
|
885
|
-
|
|
886
|
-
|
|
212
|
+
message: "Tezos address (implicit account) must start with 'tz'"
|
|
213
|
+
}).describe("Tezos address (implicit account)");
|
|
214
|
+
var TezosContractAddress = z.string().refine(function (value) {
|
|
215
|
+
return value.startsWith("KT1");
|
|
887
216
|
}, {
|
|
888
|
-
|
|
889
|
-
|
|
217
|
+
message: "Tezos contract address must start with 'KT1'"
|
|
218
|
+
}).describe("Tezos contract address");
|
|
219
|
+
var TezosAddress = z.union([TezosImplicitAddress, TezosContractAddress]);
|
|
220
|
+
var TezosEntrypointName = z.string().refine(function (value) {
|
|
221
|
+
return value.startsWith("%");
|
|
890
222
|
}, {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
"
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
var
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
223
|
+
message: "Tezos entrypoint name must start with '%'"
|
|
224
|
+
}).describe("Tezos entrypoint name");
|
|
225
|
+
var EdSignature = z.string().refine(function (value) {
|
|
226
|
+
return value.startsWith("edsig");
|
|
227
|
+
}, {
|
|
228
|
+
message: "EdSignature must start with 'edsig'"
|
|
229
|
+
});
|
|
230
|
+
var SpSignature = z.string().refine(function (value) {
|
|
231
|
+
return value.startsWith("spsig");
|
|
232
|
+
}, {
|
|
233
|
+
message: "SpSignature must start with 'spsig'"
|
|
234
|
+
});
|
|
235
|
+
var P2Signature = z.string().refine(function (value) {
|
|
236
|
+
return value.startsWith("p2sig");
|
|
237
|
+
}, {
|
|
238
|
+
message: "P2Signature must start with 'p2sig'"
|
|
239
|
+
});
|
|
240
|
+
var TezosSignature = z.union([EdSignature, SpSignature, P2Signature]);
|
|
241
|
+
/**
|
|
242
|
+
* Cardano
|
|
243
|
+
*/
|
|
244
|
+
var CardanoAddress = z.string().refine(function (value) {
|
|
245
|
+
return value.startsWith("addr");
|
|
246
|
+
}, {
|
|
247
|
+
message: "Cardano address must start with 'addr'"
|
|
248
|
+
}).transform(function (value) {
|
|
249
|
+
return value;
|
|
250
|
+
}).describe("Cosmos address");
|
|
251
|
+
var CardanoSignature = HexadecimalSchema;
|
|
252
|
+
/**
|
|
253
|
+
* Chain agnostic schemas
|
|
254
|
+
*/
|
|
255
|
+
var BlockchainAddress = z.union([AddressSchema, TezosAddress, AptosAddress, PolkadotAddress, StarknetAddress, CosmosAddress, CardanoAddress]);
|
|
256
|
+
var BlockchainSignature = z.union([EIP155Signature, TezosSignature, AptosSignature, PolkadotSignature, StarknetSignature, CosmosSignature, CardanoSignature]);
|
|
257
|
+
var BLOCKCHAIN_NAMESPACES = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
|
|
258
|
+
var BlockchainNamespace = z["enum"](BLOCKCHAIN_NAMESPACES);
|
|
259
|
+
// Nicer names
|
|
260
|
+
var BLOCKCHAIN_NAMESPACES_NAMES = {
|
|
261
|
+
tezos: "Tezos",
|
|
262
|
+
eip155: "EVM",
|
|
263
|
+
aptos: "Aptos",
|
|
264
|
+
polkadot: "Polkadot",
|
|
265
|
+
starknet: "Starknet",
|
|
266
|
+
cosmos: "Cosmos",
|
|
267
|
+
solana: "Solana",
|
|
268
|
+
cardano: "Cardano"
|
|
269
|
+
};
|
|
270
|
+
var DISPLAYED_LOCKCHAIN_NAMESPACES = ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"];
|
|
271
|
+
var DisplayedBlockchainNamespace = z["enum"](DISPLAYED_LOCKCHAIN_NAMESPACES);
|
|
272
|
+
var BLOCKCHAIN_NAME_TO_NAMESPACE = {
|
|
273
|
+
Tezos: "tezos",
|
|
274
|
+
EVM: "eip155",
|
|
275
|
+
Aptos: "aptos",
|
|
276
|
+
Polkadot: "polkadot",
|
|
277
|
+
Starknet: "starknet",
|
|
278
|
+
Cosmos: "cosmos",
|
|
279
|
+
Solana: "solana",
|
|
280
|
+
Cardano: "cardano"
|
|
281
|
+
};
|
|
282
|
+
var BLOCKCHAIN_NAMESPACE_TO_NAME = {
|
|
283
|
+
tezos: "Tezos",
|
|
284
|
+
eip155: "EVM",
|
|
285
|
+
aptos: "Aptos",
|
|
286
|
+
polkadot: "Polkadot",
|
|
287
|
+
starknet: "Starknet",
|
|
288
|
+
cosmos: "Cosmos",
|
|
289
|
+
solana: "Solana",
|
|
290
|
+
cardano: "Cardano"
|
|
291
|
+
};
|
|
292
|
+
var coerceBoolean = z["enum"](["0", "1", "true", "false"])["catch"]("false").transform(function (value) {
|
|
293
|
+
return value == "true" || value == "1";
|
|
294
|
+
});
|
|
295
|
+
var ENVS = ["cicd", "local", "test-dev-1", "test-dev-2", "dev", "stage", "prod"];
|
|
296
|
+
var EnvironmentSchema = z["enum"](ENVS);
|
|
297
|
+
var UuidString = z.string().uuid();
|
|
298
|
+
/**
|
|
299
|
+
* Zod parse without throwing an error if the value is invalid
|
|
300
|
+
* Rather, it returns a object with optional error and data fields
|
|
301
|
+
*
|
|
302
|
+
* @param schema
|
|
303
|
+
* @param value
|
|
304
|
+
* @constructor
|
|
305
|
+
*/
|
|
306
|
+
function ZodParse(schema, value) {
|
|
307
|
+
var result = schema.safeParse(value);
|
|
308
|
+
if (result.success) {
|
|
309
|
+
return {
|
|
310
|
+
data: result.data,
|
|
311
|
+
error: undefined
|
|
312
|
+
};
|
|
313
|
+
} else {
|
|
314
|
+
return {
|
|
315
|
+
error: result.error,
|
|
316
|
+
data: undefined
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
var shortBlockchainAddress = function shortBlockchainAddress(address) {
|
|
321
|
+
return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
|
|
322
|
+
};
|
|
323
|
+
var PUBLIC_SERVICES_SCHEMA_MAP = {
|
|
324
|
+
api: {
|
|
325
|
+
cicd: "http://localhost:3001",
|
|
326
|
+
local: "http://localhost:3001",
|
|
327
|
+
"test-dev-1": "https://api-test-dev-1.nexera.id",
|
|
328
|
+
"test-dev-2": "https://api-test-dev-2.nexera.id",
|
|
329
|
+
dev: "https://api-dev.nexera.id",
|
|
330
|
+
stage: "https://api-staging.nexera.id",
|
|
331
|
+
prod: "https://api.nexera.id"
|
|
332
|
+
},
|
|
333
|
+
identity_api: {
|
|
334
|
+
cicd: "http://localhost:3015",
|
|
335
|
+
local: "http://localhost:3015",
|
|
336
|
+
"test-dev-1": "https://identity-api-test-dev-1.nexera.id",
|
|
337
|
+
"test-dev-2": "https://identity-api-test-dev-2.nexera.id",
|
|
338
|
+
dev: "https://identity-api-dev.nexera.id",
|
|
339
|
+
stage: "https://identity-api-staging.nexera.id",
|
|
340
|
+
prod: "https://identity-api.nexera.id"
|
|
341
|
+
},
|
|
342
|
+
identityV2: {
|
|
343
|
+
cicd: "http://localhost:3009",
|
|
344
|
+
local: "http://localhost:3009",
|
|
345
|
+
branch: "https://identity-v2-branch.nexera.id",
|
|
346
|
+
"test-dev-1": "https://identity-v2-test-dev-1.nexera.id",
|
|
347
|
+
"test-dev-2": "https://identity-v2-test-dev-2.nexera.id",
|
|
348
|
+
dev: "https://identity-v2-dev.nexera.id",
|
|
349
|
+
stage: "https://identity-v2-staging.nexera.id",
|
|
350
|
+
prod: "https://identity-v2.nexera.id"
|
|
351
|
+
}
|
|
908
352
|
};
|
|
909
|
-
var CredentialType = z.string().transform(function (x) {
|
|
910
|
-
return x.replace("_", "-");
|
|
911
|
-
}) // TODO determine why this is needed
|
|
912
|
-
.pipe(z["enum"](CredentialTypes));
|
|
913
|
-
// Should this be replaced by GenericVerifiableCredentialSchema?
|
|
914
353
|
|
|
915
|
-
var
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
354
|
+
var IDInformationCredentialSubjectSchema = z.object({
|
|
355
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
356
|
+
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
357
|
+
reviewAnswer: z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
|
|
358
|
+
reviewRejectType: z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
|
|
359
|
+
reviewRejectLabels: z.array(z["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"])).describe("Reject labels").optional(),
|
|
360
|
+
documentType: z["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"]).describe("Type of the document provided by the credential subject"),
|
|
361
|
+
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
362
|
+
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
363
|
+
personalData: z.object({
|
|
364
|
+
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
365
|
+
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
366
|
+
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
367
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
368
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
369
|
+
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
370
|
+
country: z["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"]).describe("Country of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
371
|
+
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
372
|
+
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
373
|
+
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
374
|
+
stateOfBirth: z.string().describe("State of birth of the credential subject").optional()
|
|
375
|
+
}).describe("Original data extracted by the provider"),
|
|
376
|
+
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
377
|
+
}).describe("Stores the data of the credential");
|
|
921
378
|
|
|
922
379
|
var ISO3CountryCode = IDInformationCredentialSubjectSchema.shape.personalData.shape.citizenship.unwrap();
|
|
923
380
|
var ALPHA_2_COUNTRIES = ["AN", "XK", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "VG", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "HK", "MO", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
@@ -1685,290 +1142,927 @@ function parseISO3CountryCode(code) {
|
|
|
1685
1142
|
return ISO3CountryCode.safeParse(code).success ? ISO3CountryCode.parse(code) : undefined;
|
|
1686
1143
|
}
|
|
1687
1144
|
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1145
|
+
var ID3CredentialSubjectSchema = z.object({
|
|
1146
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1147
|
+
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
1148
|
+
amendmentsData: z.object({
|
|
1149
|
+
data: z.object({
|
|
1150
|
+
citizenship: z["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"]).describe("The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1151
|
+
documentType: z["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"]).describe("The type of document used to verify the credential subject").optional(),
|
|
1152
|
+
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
1153
|
+
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
1154
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1155
|
+
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
1156
|
+
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
1157
|
+
birthday: z.string().describe("Birthday of the credential subject").optional(),
|
|
1158
|
+
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
1159
|
+
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1160
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1161
|
+
city: z.string().describe("City of the credential subject").optional(),
|
|
1162
|
+
province: z.string().describe("Province of the credential subject").optional(),
|
|
1163
|
+
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
1164
|
+
emailAddress: z.string().describe("Email address of the credential subject").optional(),
|
|
1165
|
+
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
1166
|
+
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1167
|
+
middleName: z.string().describe("Middle name of the credential subject").optional()
|
|
1168
|
+
}).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
|
|
1169
|
+
authenticateSPResult: z.object({
|
|
1170
|
+
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
1171
|
+
Timestamp: z.string().datetime().describe("The timestamp of the authentication request").optional(),
|
|
1172
|
+
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
1173
|
+
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
1174
|
+
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
1175
|
+
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
1176
|
+
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
1177
|
+
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
1178
|
+
ResultCodes: z.object({
|
|
1179
|
+
GlobalItemCheckResultCodes: z.array(z.object({
|
|
1180
|
+
Name: z.string().optional(),
|
|
1181
|
+
Description: z.string().optional(),
|
|
1182
|
+
Comment: z.object({
|
|
1183
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1184
|
+
Description: z.string().optional(),
|
|
1185
|
+
Code: z.number()["int"]().optional()
|
|
1186
|
+
})).optional()
|
|
1187
|
+
}).optional(),
|
|
1188
|
+
Match: z.object({
|
|
1189
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1190
|
+
Description: z.string().optional(),
|
|
1191
|
+
Code: z.number()["int"]().optional()
|
|
1192
|
+
})).optional()
|
|
1193
|
+
}).optional(),
|
|
1194
|
+
Warning: z.object({
|
|
1195
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1196
|
+
Description: z.string().optional(),
|
|
1197
|
+
Code: z.number()["int"]().optional()
|
|
1198
|
+
})).optional()
|
|
1199
|
+
}).optional(),
|
|
1200
|
+
Mismatch: z.object({
|
|
1201
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1202
|
+
Description: z.string().optional(),
|
|
1203
|
+
Code: z.number()["int"]().optional()
|
|
1204
|
+
})).optional()
|
|
1205
|
+
}).optional(),
|
|
1206
|
+
ID: z.number()["int"]().optional(),
|
|
1207
|
+
Pass: z.string().optional(),
|
|
1208
|
+
Address: z.string().optional(),
|
|
1209
|
+
Forename: z.string().optional(),
|
|
1210
|
+
Surname: z.string().optional(),
|
|
1211
|
+
DOB: z.string().optional(),
|
|
1212
|
+
Alert: z.string().optional(),
|
|
1213
|
+
SanctionsMatches: z.object({
|
|
1214
|
+
GlobalSanctionsMatch: z.array(z.object({
|
|
1215
|
+
SanctionID: z.string().optional(),
|
|
1216
|
+
Url: z.string().optional(),
|
|
1217
|
+
Rank: z.number()["int"]().optional(),
|
|
1218
|
+
CaseID: z.string().optional(),
|
|
1219
|
+
SearchID: z.string().optional()
|
|
1220
|
+
})).optional()
|
|
1221
|
+
}).optional()
|
|
1222
|
+
})).optional()
|
|
1223
|
+
}).describe("The result codes of the authentication request").optional(),
|
|
1224
|
+
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
1225
|
+
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
1226
|
+
Country: z.string().describe("Country type of the authentication request").optional(),
|
|
1227
|
+
ItemCheckDecisionBands: z.object({
|
|
1228
|
+
GlobalItemCheckDecisionBands: z.array(z.object({
|
|
1229
|
+
ID: z.number()["int"]().optional(),
|
|
1230
|
+
BandScore: z.number()["int"]().optional(),
|
|
1231
|
+
BandText: z.string().optional()
|
|
1232
|
+
})).optional()
|
|
1233
|
+
}).describe("The item check decision bands of the authentication request").optional()
|
|
1234
|
+
}).describe("Result of the authentication request").optional(),
|
|
1235
|
+
pepIntelligenceResult: z.array(z.object({
|
|
1236
|
+
Fullname: z.string().optional(),
|
|
1237
|
+
Aliases: z.object({
|
|
1238
|
+
elements: z.array(z.string()).optional()
|
|
1239
|
+
}).optional(),
|
|
1240
|
+
SanctionsAddresses: z.object({
|
|
1241
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1242
|
+
AddressLine: z.string().optional(),
|
|
1243
|
+
City: z.string().optional(),
|
|
1244
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1245
|
+
Region: z.string().optional()
|
|
1246
|
+
})).optional()
|
|
1247
|
+
}).optional(),
|
|
1248
|
+
SanctionsDates: z.object({
|
|
1249
|
+
GlobalSanctionsDate: z.object({
|
|
1250
|
+
DateType: z.string().optional(),
|
|
1251
|
+
Day: z.number()["int"]().optional(),
|
|
1252
|
+
Month: z.number()["int"]().optional(),
|
|
1253
|
+
Year: z.number()["int"]().optional()
|
|
1254
|
+
}).optional()
|
|
1255
|
+
}).optional(),
|
|
1256
|
+
IdentityInformation: z.string().optional(),
|
|
1257
|
+
SanctionsPositions: z.object({
|
|
1258
|
+
GlobalSanctionsPosition: z.array(z.object({
|
|
1259
|
+
Position: z.string().optional(),
|
|
1260
|
+
Country: z.string().optional()
|
|
1261
|
+
})).optional()
|
|
1262
|
+
}).optional()
|
|
1263
|
+
})).optional(),
|
|
1264
|
+
sanctionsEnforcementsResult: z.array(z.object({
|
|
1265
|
+
Fullname: z.string().optional(),
|
|
1266
|
+
SanctionsBodies: z.object({
|
|
1267
|
+
elements: z.array(z.number()["int"]()).optional()
|
|
1268
|
+
}).optional(),
|
|
1269
|
+
Aliases: z.object({
|
|
1270
|
+
elements: z.array(z.string()).optional()
|
|
1271
|
+
}).optional(),
|
|
1272
|
+
SanctionsAddresses: z.object({
|
|
1273
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1274
|
+
AddressLine: z.string().optional(),
|
|
1275
|
+
City: z.string().optional(),
|
|
1276
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1277
|
+
Region: z.string().optional()
|
|
1278
|
+
})).optional()
|
|
1279
|
+
}).optional(),
|
|
1280
|
+
SanctionsDates: z.object({
|
|
1281
|
+
GlobalSanctionsDate: z.object({
|
|
1282
|
+
DateType: z.string().optional(),
|
|
1283
|
+
Day: z.number()["int"]().optional(),
|
|
1284
|
+
Month: z.number()["int"]().optional(),
|
|
1285
|
+
Year: z.number()["int"]().optional()
|
|
1286
|
+
}).optional()
|
|
1287
|
+
}).optional(),
|
|
1288
|
+
IdentityInformation: z.string().optional()
|
|
1289
|
+
})).optional()
|
|
1290
|
+
}).describe("Details related to the amendments made to the original data."),
|
|
1291
|
+
originalData: z.object({
|
|
1292
|
+
data: z.object({
|
|
1293
|
+
citizenship: z["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"]).describe("The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1294
|
+
documentType: z["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"]).describe("The type of document used to verify the credential subject").optional(),
|
|
1295
|
+
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
1296
|
+
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
1297
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1298
|
+
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
1299
|
+
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
1300
|
+
birthday: z.string().describe("Birthday of the credential subject").optional(),
|
|
1301
|
+
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
1302
|
+
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1303
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1304
|
+
city: z.string().describe("City of the credential subject").optional(),
|
|
1305
|
+
province: z.string().describe("Province of the credential subject").optional(),
|
|
1306
|
+
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
1307
|
+
emailAddress: z.string().describe("Email address of the credential subject").optional(),
|
|
1308
|
+
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
1309
|
+
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1310
|
+
middleName: z.string().describe("Middle name of the credential subject").optional()
|
|
1311
|
+
}).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
|
|
1312
|
+
authenticateSPResult: z.object({
|
|
1313
|
+
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
1314
|
+
Timestamp: z.string().datetime().describe("The date and time of the authentication request").optional(),
|
|
1315
|
+
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
1316
|
+
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
1317
|
+
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
1318
|
+
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
1319
|
+
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
1320
|
+
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
1321
|
+
ResultCodes: z.object({
|
|
1322
|
+
GlobalItemCheckResultCodes: z.array(z.object({
|
|
1323
|
+
Name: z.string().optional(),
|
|
1324
|
+
Description: z.string().optional(),
|
|
1325
|
+
Comment: z.object({
|
|
1326
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1327
|
+
Description: z.string().optional(),
|
|
1328
|
+
Code: z.number()["int"]().optional()
|
|
1329
|
+
})).optional()
|
|
1330
|
+
}).optional(),
|
|
1331
|
+
Match: z.object({
|
|
1332
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1333
|
+
Description: z.string().optional(),
|
|
1334
|
+
Code: z.number()["int"]().optional()
|
|
1335
|
+
})).optional()
|
|
1336
|
+
}).optional(),
|
|
1337
|
+
Warning: z.object({
|
|
1338
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1339
|
+
Description: z.string().optional(),
|
|
1340
|
+
Code: z.number()["int"]().optional()
|
|
1341
|
+
})).optional()
|
|
1342
|
+
}).optional(),
|
|
1343
|
+
Mismatch: z.object({
|
|
1344
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1345
|
+
Description: z.string().optional(),
|
|
1346
|
+
Code: z.number()["int"]().optional()
|
|
1347
|
+
})).optional()
|
|
1348
|
+
}).optional(),
|
|
1349
|
+
ID: z.number()["int"]().optional(),
|
|
1350
|
+
Pass: z.string().optional(),
|
|
1351
|
+
Address: z.string().optional(),
|
|
1352
|
+
Forename: z.string().optional(),
|
|
1353
|
+
Surname: z.string().optional(),
|
|
1354
|
+
DOB: z.string().optional(),
|
|
1355
|
+
Alert: z.string().optional(),
|
|
1356
|
+
SanctionsMatches: z.object({
|
|
1357
|
+
GlobalSanctionsMatch: z.array(z.object({
|
|
1358
|
+
SanctionID: z.string().optional(),
|
|
1359
|
+
Url: z.string().optional(),
|
|
1360
|
+
Rank: z.number()["int"]().optional(),
|
|
1361
|
+
CaseID: z.string().optional(),
|
|
1362
|
+
SearchID: z.string().optional()
|
|
1363
|
+
})).optional()
|
|
1364
|
+
}).optional()
|
|
1365
|
+
})).optional()
|
|
1366
|
+
}).describe("The result codes of the authentication request").optional(),
|
|
1367
|
+
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
1368
|
+
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
1369
|
+
Country: z.string().describe("The country type of the authentication request").optional()
|
|
1370
|
+
}).describe("The result of the Authenticate SP check").optional(),
|
|
1371
|
+
pepIntelligenceResult: z.array(z.object({
|
|
1372
|
+
Fullname: z.string().optional(),
|
|
1373
|
+
Aliases: z.object({
|
|
1374
|
+
elements: z.array(z.string()).optional()
|
|
1375
|
+
}).optional(),
|
|
1376
|
+
SanctionsAddresses: z.object({
|
|
1377
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1378
|
+
AddressLine: z.string().optional(),
|
|
1379
|
+
City: z.string().optional(),
|
|
1380
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1381
|
+
Region: z.string().optional()
|
|
1382
|
+
})).optional()
|
|
1383
|
+
}).optional(),
|
|
1384
|
+
SanctionsDates: z.object({
|
|
1385
|
+
GlobalSanctionsDate: z.object({
|
|
1386
|
+
DateType: z.string().optional(),
|
|
1387
|
+
Day: z.number()["int"]().optional(),
|
|
1388
|
+
Month: z.number()["int"]().optional(),
|
|
1389
|
+
Year: z.number()["int"]().optional()
|
|
1390
|
+
}).optional()
|
|
1391
|
+
}).optional(),
|
|
1392
|
+
IdentityInformation: z.string().optional(),
|
|
1393
|
+
SanctionsPositions: z.object({
|
|
1394
|
+
GlobalSanctionsPosition: z.array(z.object({
|
|
1395
|
+
Position: z.string().optional(),
|
|
1396
|
+
Country: z.string().optional()
|
|
1397
|
+
})).optional()
|
|
1398
|
+
}).optional()
|
|
1399
|
+
})).describe("The result of the PEP Intelligence check").optional(),
|
|
1400
|
+
sanctionsEnforcementsResult: z.array(z.object({
|
|
1401
|
+
Fullname: z.string().optional(),
|
|
1402
|
+
SanctionsBodies: z.object({
|
|
1403
|
+
elements: z.array(z.number()["int"]()).optional()
|
|
1404
|
+
}).optional(),
|
|
1405
|
+
Aliases: z.object({
|
|
1406
|
+
elements: z.array(z.string()).optional()
|
|
1407
|
+
}).optional(),
|
|
1408
|
+
SanctionsAddresses: z.object({
|
|
1409
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1410
|
+
AddressLine: z.string().optional(),
|
|
1411
|
+
City: z.string().optional(),
|
|
1412
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1413
|
+
Region: z.string().optional()
|
|
1414
|
+
})).optional()
|
|
1415
|
+
}).optional(),
|
|
1416
|
+
SanctionsDates: z.object({
|
|
1417
|
+
GlobalSanctionsDate: z.object({
|
|
1418
|
+
DateType: z.string().optional(),
|
|
1419
|
+
Day: z.number()["int"]().optional(),
|
|
1420
|
+
Month: z.number()["int"]().optional(),
|
|
1421
|
+
Year: z.number()["int"]().optional()
|
|
1422
|
+
}).optional()
|
|
1423
|
+
}).optional(),
|
|
1424
|
+
IdentityInformation: z.string().optional()
|
|
1425
|
+
})).describe("The result of the Sanctions Enforcements check").optional()
|
|
1426
|
+
}).describe("Details related to the original data before any amendments"),
|
|
1427
|
+
personalDetails: z.object({
|
|
1428
|
+
citizenship: z["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"]).describe("The country of citizenship of the credential subject ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1429
|
+
documentType: z["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"]).describe("The type of document used to verify the credential subject").optional(),
|
|
1430
|
+
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
1431
|
+
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
1432
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1433
|
+
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
1434
|
+
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
1435
|
+
birthday: z.string().describe("Birthday of the credential subject").optional(),
|
|
1436
|
+
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
1437
|
+
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1438
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1439
|
+
city: z.string().describe("City of the credential subject").optional(),
|
|
1440
|
+
province: z.string().describe("Province of the credential subject").optional(),
|
|
1441
|
+
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
1442
|
+
emailAddress: z.string().describe("Email address of the credential subject").optional(),
|
|
1443
|
+
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
1444
|
+
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1445
|
+
middleName: z.string().describe("Middle name of the credential subject").optional()
|
|
1446
|
+
}).describe("Personal details of the credential subject")
|
|
1447
|
+
}).describe("Stores the data of the credential");
|
|
1448
|
+
|
|
1449
|
+
var IDScanCredentialSubjectSchema = z.object({
|
|
1450
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1451
|
+
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
1452
|
+
highLevelResult: z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
|
|
1453
|
+
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
1454
|
+
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
1455
|
+
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
1456
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1457
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1458
|
+
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1459
|
+
documentCategory: z.string().describe("Category of the document provided by the credential subject").optional(),
|
|
1460
|
+
documentName: z.string().describe("Name of the document provided by the credential subject").optional(),
|
|
1461
|
+
documentSide: z["enum"](["Front", "Back"]).describe("Side of the document provided by the credential subject").optional(),
|
|
1462
|
+
documentType: z["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"]).describe("Type of the document provided by the credential subject").optional(),
|
|
1463
|
+
entryDate: z.string().describe("Entry date associated with the credential").optional(),
|
|
1464
|
+
entryTime: z.string().describe("Entry time associated with the credential").optional(),
|
|
1465
|
+
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
1466
|
+
addressLine1: z.string().describe("First line of the address of the credential subject").optional(),
|
|
1467
|
+
addressLine2: z.string().describe("Second line of the address of the credential subject").optional(),
|
|
1468
|
+
birthDate: z.string().describe("Date of birth of the credential subject").optional(),
|
|
1469
|
+
birthPlace: z.string().nullable().optional(),
|
|
1470
|
+
highLevelResultDetails: z.object({
|
|
1471
|
+
documentOverallValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
|
|
1472
|
+
documentBlockingPolicy: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
|
|
1473
|
+
documentExpiry: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
|
|
1474
|
+
documentSupport: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
|
|
1475
|
+
documentValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
|
|
1476
|
+
faceMatchValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
|
|
1477
|
+
accumulativeLivenessResult: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
|
|
1478
|
+
}).describe("Detailed results of the high level KYC check").optional(),
|
|
1479
|
+
faceMatchScore: z.string().describe("Score for the face match validation").optional(),
|
|
1480
|
+
qualityCheckDetails: z.array(z.object({
|
|
1481
|
+
id: z.string().describe("ID of the quality check item").optional(),
|
|
1482
|
+
title: z.string().describe("Title of the quality check item").optional(),
|
|
1483
|
+
description: z.string().describe("Description of the quality check item").optional(),
|
|
1484
|
+
state: z.number()["int"]().describe("State of the quality check item").optional()
|
|
1485
|
+
}).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
|
|
1486
|
+
validationDetails: z.array(z.object({
|
|
1487
|
+
name: z.string().describe("Name of the validation item").optional(),
|
|
1488
|
+
description: z.string().describe("Detailed description of the validation item").optional(),
|
|
1489
|
+
result: z.number()["int"]().describe("Result code of the validation").optional()
|
|
1490
|
+
}).describe("Details of a specific validation item")).describe("Details of the validation performed").optional()
|
|
1491
|
+
}).describe("Stores the data of the credential");
|
|
1693
1492
|
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1493
|
+
var IDScanPassportCredentialSubjectSchema = z.object({
|
|
1494
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1495
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1496
|
+
base64: z.string().describe("Base64 encoded image of the passport image"),
|
|
1497
|
+
name: z.string().describe("Name of the docuemnt (e.g. passport.jpg)"),
|
|
1498
|
+
documentType: z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
|
|
1499
|
+
}).describe("Stores the data of the credential");
|
|
1697
1500
|
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1501
|
+
var IDScanSelfieCredentialSubjectSchema = z.object({
|
|
1502
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1503
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1504
|
+
base64: z.string().describe("Base64 encoded image of the selfie image"),
|
|
1505
|
+
name: z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
|
|
1506
|
+
documentType: z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
|
|
1507
|
+
}).describe("Stores the data of the credential");
|
|
1701
1508
|
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
}
|
|
1509
|
+
var OLD_IDImageCredentialSubjectSchema = z.object({
|
|
1510
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1511
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1512
|
+
base64: z.string().describe("Base64 encoded image of the passport image"),
|
|
1513
|
+
name: z.string().describe("Name of the document (e.g. passport.jpg)"),
|
|
1514
|
+
documentType: z["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"]).describe("Type of the document (e.g. passport)"),
|
|
1515
|
+
mediaType: z["enum"](["image/jpeg", "image/jpg", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)")
|
|
1516
|
+
}).describe("Stores the data of the credential");
|
|
1710
1517
|
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1518
|
+
var OLD_IDInformationCredentialSubjectSchema = z.object({
|
|
1519
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1520
|
+
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
1521
|
+
highLevelResult: z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
|
|
1522
|
+
highLevelResultDetails: z.object({
|
|
1523
|
+
documentOverallValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
|
|
1524
|
+
documentBlockingPolicy: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
|
|
1525
|
+
documentExpiry: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
|
|
1526
|
+
documentSupport: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
|
|
1527
|
+
documentValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
|
|
1528
|
+
faceMatchValidation: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
|
|
1529
|
+
accumulativeLivenessResult: z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
|
|
1530
|
+
}).describe("Detailed results of the high level KYC check").optional(),
|
|
1531
|
+
faceMatchScore: z.string().describe("Score for the face match validation").optional(),
|
|
1532
|
+
qualityCheckDetails: z.array(z.object({
|
|
1533
|
+
id: z.string().describe("ID of the quality check item").optional(),
|
|
1534
|
+
title: z.string().describe("Title of the quality check item").optional(),
|
|
1535
|
+
description: z.string().describe("Description of the quality check item").optional(),
|
|
1536
|
+
state: z.number()["int"]().describe("State of the quality check item").optional()
|
|
1537
|
+
}).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
|
|
1538
|
+
validationDetails: z.array(z.object({
|
|
1539
|
+
name: z.string().describe("Name of the validation item").optional(),
|
|
1540
|
+
description: z.string().describe("Detailed description of the validation item").optional(),
|
|
1541
|
+
result: z.number()["int"]().describe("Result code of the validation").optional()
|
|
1542
|
+
}).describe("Details of a specific validation item")).describe("Details of the validation performed").optional(),
|
|
1543
|
+
documentCategory: z.string().describe("Category of the document provided by the credential subject").optional(),
|
|
1544
|
+
documentName: z.string().describe("Name of the document provided by the credential subject"),
|
|
1545
|
+
documentType: z["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"]).describe("Type of the document provided by the credential subject"),
|
|
1546
|
+
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
1547
|
+
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
1548
|
+
originalData: z.object({
|
|
1549
|
+
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
1550
|
+
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
1551
|
+
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
1552
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1553
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1554
|
+
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1555
|
+
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
1556
|
+
addressLine1: z.string().describe("First line of the address of the credential subject").optional(),
|
|
1557
|
+
addressLine2: z.string().describe("Second line of the address of the credential subject").optional(),
|
|
1558
|
+
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
1559
|
+
placeOfBirth: z.string().nullable().describe("Place of birth of the credential subject").optional()
|
|
1560
|
+
}).describe("Original data extracted by the provider"),
|
|
1561
|
+
amendmentsData: z.object({
|
|
1562
|
+
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
1563
|
+
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
1564
|
+
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
1565
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1566
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1567
|
+
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1568
|
+
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
1569
|
+
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
1570
|
+
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
1571
|
+
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
1572
|
+
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
1573
|
+
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional()
|
|
1574
|
+
}).describe("Personal details manually amended by the holder/user during authentication process.")
|
|
1575
|
+
}).describe("Stores the data of the credential");
|
|
1576
|
+
|
|
1577
|
+
var OLD_ProofOfResidenceCredentialSubjectSchema = z.object({
|
|
1578
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1579
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with").optional(),
|
|
1580
|
+
country: z["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"]).describe("The country of residence - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1581
|
+
base64: z.string().describe("Base64 encoded image of the proof of residence").optional(),
|
|
1582
|
+
name: z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
|
|
1583
|
+
documentType: z["enum"](["Gas_bill", "Internet_bill", "Electricity_bill", "Rent_agreement", "Bank_statement"]).describe("Type of the document (e.g. Gas bill, Internet bill, Electricity bill, Rent agreement, Bank statement)").optional(),
|
|
1584
|
+
mediaType: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)").optional(),
|
|
1585
|
+
county: z.string().describe("The county of residence").optional(),
|
|
1586
|
+
city: z.string().describe("The city of residence").optional(),
|
|
1587
|
+
streetName: z.string().describe("The street name of residence").optional(),
|
|
1588
|
+
postalCode: z.string().describe("The postal code of residence").optional()
|
|
1589
|
+
}).describe("Stores the data of the credential");
|
|
1590
|
+
|
|
1591
|
+
var OLD_SelfieImageCredentialSubjectSchema = z.object({
|
|
1592
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1593
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1594
|
+
base64: z.string().describe("Base64 encoded image of the selfie image"),
|
|
1595
|
+
name: z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
|
|
1596
|
+
mediaType: z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)")
|
|
1597
|
+
}).describe("Stores the data of the credential");
|
|
1598
|
+
|
|
1599
|
+
var OLD_AMLScreeningsResultsCredentialSubjectSchema = z.object({
|
|
1600
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1601
|
+
journeyId: z.string().uuid().describe("Journey ID of when credential was generated"),
|
|
1602
|
+
amendmentsData: z.object({
|
|
1603
|
+
data: z.object({
|
|
1604
|
+
firstName: z.string().describe("The first name of the credential subject").optional(),
|
|
1605
|
+
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
1606
|
+
lastName: z.string().describe("The last name of the credential subject").optional(),
|
|
1607
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1608
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1609
|
+
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1610
|
+
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
1611
|
+
addressLine1: z.string().describe("Address line 1 of the credential subject").optional(),
|
|
1612
|
+
addressLine2: z.string().describe("Address line 2 of the credential subject").optional(),
|
|
1613
|
+
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
1614
|
+
placeOfBirth: z.string().describe("Place of birth of the credential subject").optional(),
|
|
1615
|
+
countryOfResidence: z["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"]).describe("Country of residence of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1616
|
+
city: z.string().describe("City of the credential subject").optional(),
|
|
1617
|
+
province: z.string().describe("Province of the credential subject").optional(),
|
|
1618
|
+
postalCode: z.string().describe("Postal code of the credential subject").optional(),
|
|
1619
|
+
emailAddress: z.string().email().describe("Email address of the credential subject").optional(),
|
|
1620
|
+
phoneNumber: z.string().describe("Phone number of the credential subject").optional(),
|
|
1621
|
+
countryOfBirth: z["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"]).describe("Country of birth of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional()
|
|
1622
|
+
}).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
|
|
1623
|
+
authenticateSPResult: z.object({
|
|
1624
|
+
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
1625
|
+
Timestamp: z.string().datetime().describe("The timestamp of the authentication request").optional(),
|
|
1626
|
+
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
1627
|
+
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
1628
|
+
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
1629
|
+
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
1630
|
+
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
1631
|
+
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
1632
|
+
ResultCodes: z.object({
|
|
1633
|
+
GlobalItemCheckResultCodes: z.array(z.object({
|
|
1634
|
+
Name: z.string().optional(),
|
|
1635
|
+
Description: z.string().optional(),
|
|
1636
|
+
Comment: z.object({
|
|
1637
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1638
|
+
Description: z.string().optional(),
|
|
1639
|
+
Code: z.number()["int"]().optional()
|
|
1640
|
+
})).optional()
|
|
1641
|
+
}).optional(),
|
|
1642
|
+
Match: z.object({
|
|
1643
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1644
|
+
Description: z.string().optional(),
|
|
1645
|
+
Code: z.number()["int"]().optional()
|
|
1646
|
+
})).optional()
|
|
1647
|
+
}).optional(),
|
|
1648
|
+
Warning: z.object({
|
|
1649
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1650
|
+
Description: z.string().optional(),
|
|
1651
|
+
Code: z.number()["int"]().optional()
|
|
1652
|
+
})).optional()
|
|
1653
|
+
}).optional(),
|
|
1654
|
+
Mismatch: z.object({
|
|
1655
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1656
|
+
Description: z.string().optional(),
|
|
1657
|
+
Code: z.number()["int"]().optional()
|
|
1658
|
+
})).optional()
|
|
1659
|
+
}).optional(),
|
|
1660
|
+
ID: z.number()["int"]().optional(),
|
|
1661
|
+
Pass: z.string().optional(),
|
|
1662
|
+
Address: z.string().optional(),
|
|
1663
|
+
Forename: z.string().optional(),
|
|
1664
|
+
Surname: z.string().optional(),
|
|
1665
|
+
DOB: z.string().optional(),
|
|
1666
|
+
Alert: z.string().optional(),
|
|
1667
|
+
SanctionsMatches: z.object({
|
|
1668
|
+
GlobalSanctionsMatch: z.array(z.object({
|
|
1669
|
+
SanctionID: z.string().optional(),
|
|
1670
|
+
Url: z.string().optional(),
|
|
1671
|
+
Rank: z.number()["int"]().optional(),
|
|
1672
|
+
CaseID: z.string().optional(),
|
|
1673
|
+
SearchID: z.string().optional()
|
|
1674
|
+
})).optional()
|
|
1675
|
+
}).optional()
|
|
1676
|
+
})).optional()
|
|
1677
|
+
}).describe("The result codes of the authentication request").optional(),
|
|
1678
|
+
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
1679
|
+
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
1680
|
+
Country: z.string().describe("Country type of the authentication request").optional(),
|
|
1681
|
+
ItemCheckDecisionBands: z.object({
|
|
1682
|
+
GlobalItemCheckDecisionBands: z.array(z.object({
|
|
1683
|
+
ID: z.number()["int"]().optional(),
|
|
1684
|
+
BandScore: z.number()["int"]().optional(),
|
|
1685
|
+
BandText: z.string().optional()
|
|
1686
|
+
})).optional()
|
|
1687
|
+
}).describe("The item check decision bands of the authentication request").optional()
|
|
1688
|
+
}).describe("Result of the authentication request").optional(),
|
|
1689
|
+
pepIntelligenceResult: z.array(z.object({
|
|
1690
|
+
Fullname: z.string().optional(),
|
|
1691
|
+
Aliases: z.object({
|
|
1692
|
+
elements: z.array(z.string()).optional()
|
|
1693
|
+
}).optional(),
|
|
1694
|
+
SanctionsAddresses: z.object({
|
|
1695
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1696
|
+
AddressLine: z.string().optional(),
|
|
1697
|
+
City: z.string().optional(),
|
|
1698
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1699
|
+
Region: z.string().optional()
|
|
1700
|
+
})).optional()
|
|
1701
|
+
}).optional(),
|
|
1702
|
+
SanctionsDates: z.object({
|
|
1703
|
+
GlobalSanctionsDate: z.object({
|
|
1704
|
+
DateType: z.string().optional(),
|
|
1705
|
+
Day: z.number()["int"]().optional(),
|
|
1706
|
+
Month: z.number()["int"]().optional(),
|
|
1707
|
+
Year: z.number()["int"]().optional()
|
|
1708
|
+
}).optional()
|
|
1709
|
+
}).optional(),
|
|
1710
|
+
IdentityInformation: z.string().optional(),
|
|
1711
|
+
SanctionsPositions: z.object({
|
|
1712
|
+
GlobalSanctionsPosition: z.array(z.object({
|
|
1713
|
+
Position: z.string().optional(),
|
|
1714
|
+
Country: z.string().optional()
|
|
1715
|
+
})).optional()
|
|
1716
|
+
}).optional()
|
|
1717
|
+
})).optional(),
|
|
1718
|
+
sanctionsEnforcementsResult: z.array(z.object({
|
|
1719
|
+
Fullname: z.string().optional(),
|
|
1720
|
+
SanctionsBodies: z.object({
|
|
1721
|
+
elements: z.array(z.number()["int"]()).optional()
|
|
1722
|
+
}).optional(),
|
|
1723
|
+
Aliases: z.object({
|
|
1724
|
+
elements: z.array(z.string()).optional()
|
|
1725
|
+
}).optional(),
|
|
1726
|
+
SanctionsAddresses: z.object({
|
|
1727
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1728
|
+
AddressLine: z.string().optional(),
|
|
1729
|
+
City: z.string().optional(),
|
|
1730
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1731
|
+
Region: z.string().optional()
|
|
1732
|
+
})).optional()
|
|
1733
|
+
}).optional(),
|
|
1734
|
+
SanctionsDates: z.object({
|
|
1735
|
+
GlobalSanctionsDate: z.object({
|
|
1736
|
+
DateType: z.string().optional(),
|
|
1737
|
+
Day: z.number()["int"]().optional(),
|
|
1738
|
+
Month: z.number()["int"]().optional(),
|
|
1739
|
+
Year: z.number()["int"]().optional()
|
|
1740
|
+
}).optional()
|
|
1741
|
+
}).optional(),
|
|
1742
|
+
IdentityInformation: z.string().optional()
|
|
1743
|
+
})).optional()
|
|
1744
|
+
}).describe("Details related to the amendments made to the original data."),
|
|
1745
|
+
originalData: z.object({
|
|
1746
|
+
data: z.object({
|
|
1747
|
+
firstName: z.string().describe("First name of the credential subject").optional(),
|
|
1748
|
+
middleName: z.string().describe("Middle name of the credential subject").optional(),
|
|
1749
|
+
lastName: z.string().describe("Last name of the credential subject").optional(),
|
|
1750
|
+
gender: z.string().describe("Gender of the credential subject").optional(),
|
|
1751
|
+
age: z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
|
|
1752
|
+
citizenship: z["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"]).describe("Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1753
|
+
fullName: z.string().describe("Full name of the credential subject").optional(),
|
|
1754
|
+
addressLine1: z.string().describe("First line of the address of the credential subject").optional(),
|
|
1755
|
+
addressLine2: z.string().describe("Second line of the address of the credential subject").optional(),
|
|
1756
|
+
birthDate: z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
|
|
1757
|
+
placeOfBirth: z.string().nullable().optional()
|
|
1758
|
+
}).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
|
|
1759
|
+
authenticateSPResult: z.object({
|
|
1760
|
+
AuthenticationID: z.string().describe("The ID of the authentication request").optional(),
|
|
1761
|
+
Timestamp: z.string().datetime().describe("The date and time of the authentication request").optional(),
|
|
1762
|
+
CustomerRef: z.string().describe("The customer reference of the authentication request").optional(),
|
|
1763
|
+
ProfileID: z.string().describe("The ID of the profile used for the authentication request").optional(),
|
|
1764
|
+
ProfileName: z.string().describe("The name of the profile used for the authentication request").optional(),
|
|
1765
|
+
ProfileVersion: z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
|
|
1766
|
+
ProfileRevision: z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
|
|
1767
|
+
ProfileState: z.string().describe("The state of the profile used for the authentication request").optional(),
|
|
1768
|
+
ResultCodes: z.object({
|
|
1769
|
+
GlobalItemCheckResultCodes: z.array(z.object({
|
|
1770
|
+
Name: z.string().optional(),
|
|
1771
|
+
Description: z.string().optional(),
|
|
1772
|
+
Comment: z.object({
|
|
1773
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1774
|
+
Description: z.string().optional(),
|
|
1775
|
+
Code: z.number()["int"]().optional()
|
|
1776
|
+
})).optional()
|
|
1777
|
+
}).optional(),
|
|
1778
|
+
Match: z.object({
|
|
1779
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1780
|
+
Description: z.string().optional(),
|
|
1781
|
+
Code: z.number()["int"]().optional()
|
|
1782
|
+
})).optional()
|
|
1783
|
+
}).optional(),
|
|
1784
|
+
Warning: z.object({
|
|
1785
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1786
|
+
Description: z.string().optional(),
|
|
1787
|
+
Code: z.number()["int"]().optional()
|
|
1788
|
+
})).optional()
|
|
1789
|
+
}).optional(),
|
|
1790
|
+
Mismatch: z.object({
|
|
1791
|
+
GlobalItemCheckResultCode: z.array(z.object({
|
|
1792
|
+
Description: z.string().optional(),
|
|
1793
|
+
Code: z.number()["int"]().optional()
|
|
1794
|
+
})).optional()
|
|
1795
|
+
}).optional(),
|
|
1796
|
+
ID: z.number()["int"]().optional(),
|
|
1797
|
+
Pass: z.string().optional(),
|
|
1798
|
+
Address: z.string().optional(),
|
|
1799
|
+
Forename: z.string().optional(),
|
|
1800
|
+
Surname: z.string().optional(),
|
|
1801
|
+
DOB: z.string().optional(),
|
|
1802
|
+
Alert: z.string().optional(),
|
|
1803
|
+
SanctionsMatches: z.object({
|
|
1804
|
+
GlobalSanctionsMatch: z.array(z.object({
|
|
1805
|
+
SanctionID: z.string().optional(),
|
|
1806
|
+
Url: z.string().optional(),
|
|
1807
|
+
Rank: z.number()["int"]().optional(),
|
|
1808
|
+
CaseID: z.string().optional(),
|
|
1809
|
+
SearchID: z.string().optional()
|
|
1810
|
+
})).optional()
|
|
1811
|
+
}).optional()
|
|
1812
|
+
})).optional()
|
|
1813
|
+
}).describe("The result codes of the authentication request").optional(),
|
|
1814
|
+
Score: z.number()["int"]().describe("The score of the authentication request").optional(),
|
|
1815
|
+
BandText: z.string().describe("The band text of the authentication request").optional(),
|
|
1816
|
+
Country: z.string().describe("The country type of the authentication request").optional()
|
|
1817
|
+
}).describe("The result of the Authenticate SP check").optional(),
|
|
1818
|
+
pepIntelligenceResult: z.array(z.object({
|
|
1819
|
+
Fullname: z.string().optional(),
|
|
1820
|
+
Aliases: z.object({
|
|
1821
|
+
elements: z.array(z.string()).optional()
|
|
1822
|
+
}).optional(),
|
|
1823
|
+
SanctionsAddresses: z.object({
|
|
1824
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1825
|
+
AddressLine: z.string().optional(),
|
|
1826
|
+
City: z.string().optional(),
|
|
1827
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1828
|
+
Region: z.string().optional()
|
|
1829
|
+
})).optional()
|
|
1830
|
+
}).optional(),
|
|
1831
|
+
SanctionsDates: z.object({
|
|
1832
|
+
GlobalSanctionsDate: z.object({
|
|
1833
|
+
DateType: z.string().optional(),
|
|
1834
|
+
Day: z.number()["int"]().optional(),
|
|
1835
|
+
Month: z.number()["int"]().optional(),
|
|
1836
|
+
Year: z.number()["int"]().optional()
|
|
1837
|
+
}).optional()
|
|
1838
|
+
}).optional(),
|
|
1839
|
+
IdentityInformation: z.string().optional(),
|
|
1840
|
+
SanctionsPositions: z.object({
|
|
1841
|
+
GlobalSanctionsPosition: z.array(z.object({
|
|
1842
|
+
Position: z.string().optional(),
|
|
1843
|
+
Country: z.string().optional()
|
|
1844
|
+
})).optional()
|
|
1845
|
+
}).optional()
|
|
1846
|
+
})).describe("The result of the PEP Intelligence check").optional(),
|
|
1847
|
+
sanctionsEnforcementsResult: z.array(z.object({
|
|
1848
|
+
Fullname: z.string().optional(),
|
|
1849
|
+
SanctionsBodies: z.object({
|
|
1850
|
+
elements: z.array(z.number()["int"]()).optional()
|
|
1851
|
+
}).optional(),
|
|
1852
|
+
Aliases: z.object({
|
|
1853
|
+
elements: z.array(z.string()).optional()
|
|
1854
|
+
}).optional(),
|
|
1855
|
+
SanctionsAddresses: z.object({
|
|
1856
|
+
GlobalSanctionsAddress: z.array(z.object({
|
|
1857
|
+
AddressLine: z.string().optional(),
|
|
1858
|
+
City: z.string().optional(),
|
|
1859
|
+
Country: z.string().describe("Full name of country").optional(),
|
|
1860
|
+
Region: z.string().optional()
|
|
1861
|
+
})).optional()
|
|
1862
|
+
}).optional(),
|
|
1863
|
+
SanctionsDates: z.object({
|
|
1864
|
+
GlobalSanctionsDate: z.object({
|
|
1865
|
+
DateType: z.string().optional(),
|
|
1866
|
+
Day: z.number()["int"]().optional(),
|
|
1867
|
+
Month: z.number()["int"]().optional(),
|
|
1868
|
+
Year: z.number()["int"]().optional()
|
|
1869
|
+
}).optional()
|
|
1870
|
+
}).optional(),
|
|
1871
|
+
IdentityInformation: z.string().optional()
|
|
1872
|
+
})).describe("The result of the Sanctions Enforcements check").optional()
|
|
1873
|
+
}).describe("Details related to the original data before any amendments")
|
|
1874
|
+
}).describe("Stores the data of the credential");
|
|
1714
1875
|
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1876
|
+
var IDImageCredentialSubjectSchema = z.object({
|
|
1877
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1878
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1879
|
+
base64_front: z.string().describe("Base64 encoded image of the front of the document"),
|
|
1880
|
+
base64_back: z.string().describe("Base64 encoded image of the back of the document").optional(),
|
|
1881
|
+
name: z.string().describe("Name of the document (e.g. passport.jpg)"),
|
|
1882
|
+
documentType: z["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"]).describe("Type of the document (e.g. passport)"),
|
|
1883
|
+
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
1884
|
+
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
1885
|
+
mediaType_front: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the front of the document (e.g. image/jpeg, image/png, application/pdf)"),
|
|
1886
|
+
mediaType_back: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the back of the document (e.g. image/jpeg, image/png, application/pdf)").optional(),
|
|
1887
|
+
reviewAnswer: z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review answer from kyc provider"),
|
|
1888
|
+
reviewRejectType: z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
|
|
1889
|
+
reviewRejectLabels: z.array(z["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"])).describe("Reject labels").optional(),
|
|
1890
|
+
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
1891
|
+
}).describe("Stores the data of the credential");
|
|
1718
1892
|
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
var PublicKey = z.string();
|
|
1733
|
-
var HexadecimalSchema = z.string().refine(function (value) {
|
|
1734
|
-
return /^[0-9a-fA-F]+$/.test(value);
|
|
1735
|
-
}, {
|
|
1736
|
-
message: "Input must be a hexadecimal string"
|
|
1737
|
-
});
|
|
1893
|
+
var SelfieImageCredentialSubjectSchema = z.object({
|
|
1894
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1895
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1896
|
+
base64: z.string().describe("Base64 encoded image of the selfie image"),
|
|
1897
|
+
name: z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
|
|
1898
|
+
mediaType: z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)"),
|
|
1899
|
+
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
1900
|
+
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
1901
|
+
reviewAnswer: z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
|
|
1902
|
+
reviewRejectType: z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
|
|
1903
|
+
reviewRejectLabels: z.array(z["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"])).describe("Reject labels").optional(),
|
|
1904
|
+
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
1905
|
+
}).describe("Stores the data of the credential");
|
|
1738
1906
|
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
return /^0x[0-9A-Fa-f]*$/.test(value);
|
|
1756
|
-
}, {
|
|
1757
|
-
message: "Value must be a valid hexadecimal string prefixed with 0x"
|
|
1758
|
-
}).transform(function (value) {
|
|
1759
|
-
return value;
|
|
1760
|
-
}).describe("Transaction hash");
|
|
1761
|
-
var EIP155Signature = String0x;
|
|
1762
|
-
var FunctionCallData = String0x;
|
|
1763
|
-
var shortAddress = function shortAddress(address) {
|
|
1764
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
1765
|
-
return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
|
|
1766
|
-
};
|
|
1907
|
+
var ProofOfResidenceCredentialSubjectSchema = z.object({
|
|
1908
|
+
id: z.string().url().describe("Stores the DID of the subject that owns the credential"),
|
|
1909
|
+
journeyId: z.string().uuid().describe("The ID of the journey that this credential is associated with"),
|
|
1910
|
+
country: z["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"]).describe("The country of residence - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)").optional(),
|
|
1911
|
+
base64: z.string().describe("Base64 encoded image of the proof of residence").optional(),
|
|
1912
|
+
name: z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
|
|
1913
|
+
documentType: z["enum"](["Gas_bill", "Internet_bill", "Electricity_bill", "Rent_agreement", "Bank_statement"]).describe("Type of the document (e.g. Gas bill, Internet bill, Electricity bill, Rent agreement, Bank statement)"),
|
|
1914
|
+
entryDate: z.number()["int"]().describe("Entry date associated with the credential"),
|
|
1915
|
+
entryTime: z.string().describe("Entry time associated with the credential"),
|
|
1916
|
+
mediaType: z["enum"](["image/jpeg", "image/jpg", "image/png", "application/pdf"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)").optional(),
|
|
1917
|
+
county: z.string().describe("The county of residence").optional(),
|
|
1918
|
+
city: z.string().describe("The city of residence").optional(),
|
|
1919
|
+
streetName: z.string().describe("The street name of residence").optional(),
|
|
1920
|
+
postalCode: z.string().describe("The postal code of residence").optional(),
|
|
1921
|
+
isSandbox: z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
|
|
1922
|
+
}).describe("Stores the data of the credential");
|
|
1767
1923
|
|
|
1768
|
-
|
|
1769
|
-
* Aptos
|
|
1770
|
-
*/
|
|
1771
|
-
var AptosAddress = String0x;
|
|
1772
|
-
var AptosSignature = z.string();
|
|
1773
|
-
/**
|
|
1774
|
-
* Starknet
|
|
1775
|
-
*/
|
|
1776
|
-
var StarknetAddress = String0x;
|
|
1777
|
-
var StarknetSignature = String0x;
|
|
1778
|
-
/**
|
|
1779
|
-
* Polkadot
|
|
1780
|
-
*/
|
|
1781
|
-
var PolkadotAddress = z.string();
|
|
1782
|
-
var PolkadotSignature = String0x;
|
|
1783
|
-
/**
|
|
1784
|
-
* Cosmos
|
|
1785
|
-
*/
|
|
1786
|
-
var CosmosAddress = z.string().refine(function (value) {
|
|
1787
|
-
return value.startsWith("cosmos");
|
|
1788
|
-
}, {
|
|
1789
|
-
message: "Cosmos address must start with 'cosmos'"
|
|
1790
|
-
}).transform(function (value) {
|
|
1791
|
-
return value;
|
|
1792
|
-
}).describe("Cosmos address");
|
|
1793
|
-
var CosmosSignature = HexadecimalSchema;
|
|
1794
|
-
/**
|
|
1795
|
-
* Tezos
|
|
1796
|
-
*/
|
|
1924
|
+
// NB: this is supposed to reproduce W3CCredential used in polygon id js sdk
|
|
1797
1925
|
|
|
1798
|
-
var
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
return value.startsWith("KT1");
|
|
1805
|
-
}, {
|
|
1806
|
-
message: "Tezos contract address must start with 'KT1'"
|
|
1807
|
-
}).describe("Tezos contract address");
|
|
1808
|
-
var TezosAddress = z.union([TezosImplicitAddress, TezosContractAddress]);
|
|
1809
|
-
var TezosEntrypointName = z.string().refine(function (value) {
|
|
1810
|
-
return value.startsWith("%");
|
|
1811
|
-
}, {
|
|
1812
|
-
message: "Tezos entrypoint name must start with '%'"
|
|
1813
|
-
}).describe("Tezos entrypoint name");
|
|
1814
|
-
var EdSignature = z.string().refine(function (value) {
|
|
1815
|
-
return value.startsWith("edsig");
|
|
1816
|
-
}, {
|
|
1817
|
-
message: "EdSignature must start with 'edsig'"
|
|
1818
|
-
});
|
|
1819
|
-
var SpSignature = z.string().refine(function (value) {
|
|
1820
|
-
return value.startsWith("spsig");
|
|
1821
|
-
}, {
|
|
1822
|
-
message: "SpSignature must start with 'spsig'"
|
|
1926
|
+
var CredentialStatusTypePID = z["enum"](["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]);
|
|
1927
|
+
var CredentialStatusPID = z.object({
|
|
1928
|
+
id: z.string(),
|
|
1929
|
+
type: CredentialStatusTypePID,
|
|
1930
|
+
revocationNonce: z.number().optional()
|
|
1931
|
+
//statusIssuer?: CredentialStatus;
|
|
1823
1932
|
});
|
|
1824
|
-
var
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
message: "P2Signature must start with 'p2sig'"
|
|
1933
|
+
var CredentialSchemaPID = z.object({
|
|
1934
|
+
id: z.string(),
|
|
1935
|
+
type: z.string()
|
|
1828
1936
|
});
|
|
1829
|
-
var
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
eip155: "EVM",
|
|
1874
|
-
aptos: "Aptos",
|
|
1875
|
-
polkadot: "Polkadot",
|
|
1876
|
-
starknet: "Starknet",
|
|
1877
|
-
cosmos: "Cosmos",
|
|
1878
|
-
solana: "Solana",
|
|
1879
|
-
cardano: "Cardano"
|
|
1880
|
-
};
|
|
1881
|
-
var coerceBoolean = z["enum"](["0", "1", "true", "false"])["catch"]("false").transform(function (value) {
|
|
1882
|
-
return value == "true" || value == "1";
|
|
1937
|
+
var GenericVerifiableCredentialSchema = z.object({
|
|
1938
|
+
id: z.string(),
|
|
1939
|
+
"@context": z.array(z.string()).optional(),
|
|
1940
|
+
// context: z.array(z.string()),
|
|
1941
|
+
type: z.array(z.string()),
|
|
1942
|
+
expirationDate: z.string().optional(),
|
|
1943
|
+
issuanceDate: z.string().optional(),
|
|
1944
|
+
credentialSubject: z.record(z.string(),
|
|
1945
|
+
// The old version of the generated API does not handle z.union correctly.
|
|
1946
|
+
// Until we either
|
|
1947
|
+
// 1. discontinue usage of the old apiClient
|
|
1948
|
+
// or
|
|
1949
|
+
// 2. remove {nullable: true} from the birthPlace field in the IDInformation schema
|
|
1950
|
+
// we need to use z.any() instead.
|
|
1951
|
+
//
|
|
1952
|
+
// if you do the following test you can see that the old apiClient does not change
|
|
1953
|
+
// when you add z.null() to the union below.
|
|
1954
|
+
//
|
|
1955
|
+
// 1. comment out the z.any() below.
|
|
1956
|
+
z.any()
|
|
1957
|
+
// 2. uncomment the following lines
|
|
1958
|
+
// z.union([
|
|
1959
|
+
// z.record(z.string(), z.any()),
|
|
1960
|
+
// z.string(),
|
|
1961
|
+
// z.number(),
|
|
1962
|
+
// z.boolean(),
|
|
1963
|
+
// z.null(),
|
|
1964
|
+
// z.array(z.any()),
|
|
1965
|
+
// ]),
|
|
1966
|
+
// 3. run the following command: pnpnm update-api
|
|
1967
|
+
// 4. Notice that several generated files are modified.
|
|
1968
|
+
// 5. make a temporary branch to throw away later
|
|
1969
|
+
// 6. comment out z.null() above
|
|
1970
|
+
// 7. run the following command: pnpnm update-api
|
|
1971
|
+
// 8. notice that only the new apiClient is modified.
|
|
1972
|
+
// modified: packages/clients/api/src/generated/apps/ComplianceService.ts
|
|
1973
|
+
// modified: packages/clients/api/src/generated/apps/CustomersService.ts
|
|
1974
|
+
// modified: packages/clients/api/src/generated/apps/ScenariosService.ts
|
|
1975
|
+
// modified: packages/libs/schemas/src/compliance/vc-schemas/supported-schemas/GenericVerifiableCredentialSchema.ts
|
|
1976
|
+
),
|
|
1977
|
+
credentialStatus: CredentialStatusPID,
|
|
1978
|
+
issuer: z.string(),
|
|
1979
|
+
credentialSchema: CredentialSchemaPID,
|
|
1980
|
+
proof: z.any() //object | unknown[];
|
|
1883
1981
|
});
|
|
1884
|
-
|
|
1885
|
-
var
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
function ZodParse(schema, value) {
|
|
1896
|
-
var result = schema.safeParse(value);
|
|
1897
|
-
if (result.success) {
|
|
1898
|
-
return {
|
|
1899
|
-
data: result.data,
|
|
1900
|
-
error: undefined
|
|
1901
|
-
};
|
|
1902
|
-
} else {
|
|
1903
|
-
return {
|
|
1904
|
-
error: result.error,
|
|
1905
|
-
data: undefined
|
|
1906
|
-
};
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
var shortBlockchainAddress = function shortBlockchainAddress(address) {
|
|
1910
|
-
return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
|
|
1982
|
+
|
|
1983
|
+
var CredentialSchemas = {
|
|
1984
|
+
ProofOfResidence: ProofOfResidenceCredentialSubjectSchema,
|
|
1985
|
+
SelfieImage: SelfieImageCredentialSubjectSchema,
|
|
1986
|
+
IDImage: IDImageCredentialSubjectSchema,
|
|
1987
|
+
IDInformation: IDInformationCredentialSubjectSchema,
|
|
1988
|
+
AMLScreeningsResults: OLD_AMLScreeningsResultsCredentialSubjectSchema,
|
|
1989
|
+
ID3: ID3CredentialSubjectSchema,
|
|
1990
|
+
IDScan: IDScanCredentialSubjectSchema,
|
|
1991
|
+
IDScanSelfie: IDScanSelfieCredentialSubjectSchema,
|
|
1992
|
+
IDScanPassport: IDScanPassportCredentialSubjectSchema
|
|
1911
1993
|
};
|
|
1912
|
-
var
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1994
|
+
var CredentialNames = [{
|
|
1995
|
+
value: "AMLScreeningsResults",
|
|
1996
|
+
label: "AML screening results"
|
|
1997
|
+
}, {
|
|
1998
|
+
value: "ProofOfResidence",
|
|
1999
|
+
label: "Proof of residence"
|
|
2000
|
+
}, {
|
|
2001
|
+
value: "SelfieImage",
|
|
2002
|
+
label: "Selfie image"
|
|
2003
|
+
}, {
|
|
2004
|
+
value: "IDImage",
|
|
2005
|
+
label: "ID image"
|
|
2006
|
+
}, {
|
|
2007
|
+
value: "IDInformation",
|
|
2008
|
+
label: "ID information"
|
|
2009
|
+
}];
|
|
2010
|
+
var CredentialTypes = ["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "ID3",
|
|
2011
|
+
// this is for backwards compatibility
|
|
2012
|
+
"IDScan",
|
|
2013
|
+
// this is for backwards compatibility
|
|
2014
|
+
"IDScanSelfie",
|
|
2015
|
+
// this is for backwards compatibility
|
|
2016
|
+
"IDScanPassport" // this is for backwards compatibility
|
|
2017
|
+
];
|
|
2018
|
+
var NexeraCredentialType = z["enum"](CredentialTypes);
|
|
2019
|
+
var getCredentialName = function getCredentialName(value) {
|
|
2020
|
+
var _CredentialNames$find;
|
|
2021
|
+
return (_CredentialNames$find = CredentialNames.find(function (obj) {
|
|
2022
|
+
return obj.value === value;
|
|
2023
|
+
})) === null || _CredentialNames$find === void 0 ? void 0 : _CredentialNames$find.label;
|
|
1941
2024
|
};
|
|
2025
|
+
var CredentialType = z.string().transform(function (x) {
|
|
2026
|
+
return x.replace("_", "-");
|
|
2027
|
+
}) // TODO determine why this is needed
|
|
2028
|
+
.pipe(z["enum"](CredentialTypes));
|
|
2029
|
+
// Should this be replaced by GenericVerifiableCredentialSchema?
|
|
1942
2030
|
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2031
|
+
var VerifiableCredential = z.object({
|
|
2032
|
+
issuer: z.string(),
|
|
2033
|
+
type: z.array(z.union([z.string(), CredentialType])),
|
|
2034
|
+
credentialSubject: z.record(z.unknown())
|
|
2035
|
+
}).catchall(z.any());
|
|
2036
|
+
var CredentialMediaType = IDImageCredentialSubjectSchema.shape.mediaType_front;
|
|
2037
|
+
|
|
2038
|
+
function _arrayLikeToArray(r, a) {
|
|
2039
|
+
(null == a || a > r.length) && (a = r.length);
|
|
2040
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
2041
|
+
return n;
|
|
1952
2042
|
}
|
|
1953
2043
|
|
|
1954
|
-
function
|
|
1955
|
-
|
|
1956
|
-
return "symbol" == typeof i ? i : i + "";
|
|
2044
|
+
function _arrayWithoutHoles(r) {
|
|
2045
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
1957
2046
|
}
|
|
1958
2047
|
|
|
1959
|
-
function
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
} else {
|
|
1969
|
-
obj[key] = value;
|
|
2048
|
+
function _iterableToArray(r) {
|
|
2049
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
function _unsupportedIterableToArray(r, a) {
|
|
2053
|
+
if (r) {
|
|
2054
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
2055
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
2056
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
1970
2057
|
}
|
|
1971
|
-
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
function _nonIterableSpread() {
|
|
2061
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
function _toConsumableArray(r) {
|
|
2065
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
1972
2066
|
}
|
|
1973
2067
|
|
|
1974
2068
|
var ScenarioTypes = ["ChallengeQuery", "OnChainZKP", "OffChainZKP"];
|
|
@@ -2102,16 +2196,16 @@ function parseSessionIdFromUrl(urlString) {
|
|
|
2102
2196
|
return sessionId;
|
|
2103
2197
|
}
|
|
2104
2198
|
|
|
2105
|
-
function _arrayWithHoles(
|
|
2106
|
-
if (Array.isArray(
|
|
2199
|
+
function _arrayWithHoles(r) {
|
|
2200
|
+
if (Array.isArray(r)) return r;
|
|
2107
2201
|
}
|
|
2108
2202
|
|
|
2109
2203
|
function _nonIterableRest() {
|
|
2110
2204
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2111
2205
|
}
|
|
2112
2206
|
|
|
2113
|
-
function _toArray(
|
|
2114
|
-
return _arrayWithHoles(
|
|
2207
|
+
function _toArray(r) {
|
|
2208
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
2115
2209
|
}
|
|
2116
2210
|
|
|
2117
2211
|
function zodEnumFromObjKeys(obj) {
|
|
@@ -2474,6 +2568,7 @@ var WorkflowId = z.string();
|
|
|
2474
2568
|
var ExternalCustomerId = z.string();
|
|
2475
2569
|
var IdentityAppV2BaseJWT = z.object({
|
|
2476
2570
|
sub: IdentityId,
|
|
2571
|
+
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2477
2572
|
flowType: z.union([z.literal(FlowType.Values.web3), z.literal(FlowType.Values.web2)]),
|
|
2478
2573
|
exp: z.number(),
|
|
2479
2574
|
customerId: UuidString,
|
|
@@ -2621,107 +2716,6 @@ var ComplianceImplementationStepsInput = z.object({
|
|
|
2621
2716
|
monitorIdentity: z["boolean"]().nullish()
|
|
2622
2717
|
});
|
|
2623
2718
|
|
|
2624
|
-
var _EVM_BLOCK_TIME, _NEXERA_EVM_CHAIN_NAM, _NEXERA_CHAIN_VALUES;
|
|
2625
|
-
var NEXERA_EVM_CHAINS = /*#__PURE__*/function (NEXERA_EVM_CHAINS) {
|
|
2626
|
-
NEXERA_EVM_CHAINS["ETHEREUM"] = "1";
|
|
2627
|
-
NEXERA_EVM_CHAINS["GOERLI"] = "5";
|
|
2628
|
-
NEXERA_EVM_CHAINS["ARBITRUM"] = "42161";
|
|
2629
|
-
NEXERA_EVM_CHAINS["ARBITRUM_GOERLI"] = "421613";
|
|
2630
|
-
NEXERA_EVM_CHAINS["ARBITRUM_SEPOLIA"] = "421614";
|
|
2631
|
-
NEXERA_EVM_CHAINS["OPTIMISM"] = "10";
|
|
2632
|
-
NEXERA_EVM_CHAINS["OPTIMISM_GOERLI"] = "420";
|
|
2633
|
-
NEXERA_EVM_CHAINS["OPTIMISM_SEPOLIA"] = "11155420";
|
|
2634
|
-
NEXERA_EVM_CHAINS["AVALANCHE"] = "43114";
|
|
2635
|
-
NEXERA_EVM_CHAINS["AVALANCHE_FUJI"] = "43113";
|
|
2636
|
-
NEXERA_EVM_CHAINS["POLYGON"] = "137";
|
|
2637
|
-
NEXERA_EVM_CHAINS["POLYGON_AMOY"] = "80002";
|
|
2638
|
-
NEXERA_EVM_CHAINS["SEPOLIA"] = "11155111";
|
|
2639
|
-
NEXERA_EVM_CHAINS["BASE"] = "8453";
|
|
2640
|
-
NEXERA_EVM_CHAINS["BASE_GOERLI"] = "84531";
|
|
2641
|
-
NEXERA_EVM_CHAINS["BASE_SEPOLIA"] = "84532";
|
|
2642
|
-
NEXERA_EVM_CHAINS["MOONBEAM"] = "1284";
|
|
2643
|
-
NEXERA_EVM_CHAINS["MOONRIVER"] = "1285";
|
|
2644
|
-
NEXERA_EVM_CHAINS["BNB"] = "56";
|
|
2645
|
-
NEXERA_EVM_CHAINS["BNB_TESTNET"] = "97";
|
|
2646
|
-
NEXERA_EVM_CHAINS["SWISSTRONIK_TESTNET"] = "1291";
|
|
2647
|
-
return NEXERA_EVM_CHAINS;
|
|
2648
|
-
}({});
|
|
2649
|
-
var EVM_BLOCK_TIME = (_EVM_BLOCK_TIME = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_EVM_BLOCK_TIME, NEXERA_EVM_CHAINS.ETHEREUM, 12), NEXERA_EVM_CHAINS.GOERLI, 12), NEXERA_EVM_CHAINS.SEPOLIA, 12), NEXERA_EVM_CHAINS.ARBITRUM, 0.26), NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, 0.26), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, 0.26), NEXERA_EVM_CHAINS.OPTIMISM, 2), NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, 2), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, 2), NEXERA_EVM_CHAINS.AVALANCHE, 3), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_EVM_BLOCK_TIME, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, 3), NEXERA_EVM_CHAINS.POLYGON, 2), NEXERA_EVM_CHAINS.POLYGON_AMOY, 2), NEXERA_EVM_CHAINS.BASE, 2), NEXERA_EVM_CHAINS.BASE_GOERLI, 2), NEXERA_EVM_CHAINS.BASE_SEPOLIA, 2), NEXERA_EVM_CHAINS.BNB, 3), NEXERA_EVM_CHAINS.BNB_TESTNET, 3), NEXERA_EVM_CHAINS.MOONBEAM, 12), NEXERA_EVM_CHAINS.MOONRIVER, 12), _defineProperty(_EVM_BLOCK_TIME, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, 4));
|
|
2650
|
-
var NEXERA_TEZOS_CHAINS = /*#__PURE__*/function (NEXERA_TEZOS_CHAINS) {
|
|
2651
|
-
NEXERA_TEZOS_CHAINS["TEZOS"] = "NetXdQprcVkpaWU";
|
|
2652
|
-
NEXERA_TEZOS_CHAINS["TEZOS_GHOSTNET"] = "NetXnHfVqm9iesp";
|
|
2653
|
-
return NEXERA_TEZOS_CHAINS;
|
|
2654
|
-
}({});
|
|
2655
|
-
var NEXERA_COSMOS_CHAINS = /*#__PURE__*/function (NEXERA_COSMOS_CHAINS) {
|
|
2656
|
-
NEXERA_COSMOS_CHAINS["COSMOS"] = "cosmoshub-4";
|
|
2657
|
-
NEXERA_COSMOS_CHAINS["COSMOS_TESTNET"] = "theta-testnet-001";
|
|
2658
|
-
return NEXERA_COSMOS_CHAINS;
|
|
2659
|
-
}({});
|
|
2660
|
-
var NEXERA_STARKNET_CHAINS = /*#__PURE__*/function (NEXERA_STARKNET_CHAINS) {
|
|
2661
|
-
NEXERA_STARKNET_CHAINS["STARKNET_MAIN"] = "0x534e5f4d41494e";
|
|
2662
|
-
NEXERA_STARKNET_CHAINS["STARKNET_SEPOLIA"] = "0x534e5f5345504f4c4941";
|
|
2663
|
-
return NEXERA_STARKNET_CHAINS;
|
|
2664
|
-
}({});
|
|
2665
|
-
var NEXERA_EVM_CHAIN_NAMES = (_NEXERA_EVM_CHAIN_NAM = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_EVM_CHAINS.ETHEREUM, "Ethereum Mainnet"), NEXERA_EVM_CHAINS.GOERLI, "Goerli"), NEXERA_EVM_CHAINS.SEPOLIA, "Sepolia"), NEXERA_EVM_CHAINS.POLYGON, "Polygon"), NEXERA_EVM_CHAINS.POLYGON_AMOY, "Polygon Amoy"), NEXERA_EVM_CHAINS.AVALANCHE, "Avalanche"), NEXERA_EVM_CHAINS.AVALANCHE_FUJI, "Avalanche Fuji"), NEXERA_EVM_CHAINS.ARBITRUM, "Arbitrum"), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, "Arbitrum Sepolia"), NEXERA_EVM_CHAINS.BASE, "Base"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_EVM_CHAINS.BASE_SEPOLIA, "Base Sepolia"), NEXERA_EVM_CHAINS.BNB, "BSC"), NEXERA_EVM_CHAINS.BNB_TESTNET, "BSC Testnet"), NEXERA_EVM_CHAINS.OPTIMISM, "Optimism"), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, "Optimism Sepolia"), NEXERA_EVM_CHAINS.MOONBEAM, "Moonbeam"), NEXERA_EVM_CHAINS.MOONRIVER, "Moonriver"), NEXERA_TEZOS_CHAINS.TEZOS, "tezos-mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "tezos-ghostnet"), NEXERA_COSMOS_CHAINS.COSMOS, "cosmos-mainnet"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "cosmos-testnet"), NEXERA_STARKNET_CHAINS.STARKNET_MAIN, "starknet-mainnet"), NEXERA_STARKNET_CHAINS.STARKNET_SEPOLIA, "starknet-sepolia"), NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, "Optimism Goerli"), NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, "Arbitrum Goerli"), NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, "Swisstronik Testnet"));
|
|
2666
|
-
var NEXERA_EVM_CHAIN_NAMES_LIST = Object.values(NEXERA_EVM_CHAIN_NAMES);
|
|
2667
|
-
var NEXERA_CHAIN_VALUES = (_NEXERA_CHAIN_VALUES = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_CHAIN_VALUES, NEXERA_EVM_CHAINS.ETHEREUM, 1), NEXERA_EVM_CHAINS.GOERLI, 5), NEXERA_EVM_CHAINS.POLYGON, 137), NEXERA_EVM_CHAINS.POLYGON_AMOY, 80002), NEXERA_EVM_CHAINS.AVALANCHE, 43114), NEXERA_EVM_CHAINS.AVALANCHE_FUJI, 43113), NEXERA_EVM_CHAINS.ARBITRUM, 42161), NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, 421613), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, 421614), NEXERA_EVM_CHAINS.SEPOLIA, 11155111), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_CHAIN_VALUES, NEXERA_EVM_CHAINS.BASE, 8453), NEXERA_EVM_CHAINS.BASE_GOERLI, 84531), NEXERA_EVM_CHAINS.BASE_SEPOLIA, 84532), NEXERA_EVM_CHAINS.BNB, 56), NEXERA_EVM_CHAINS.BNB_TESTNET, 97), NEXERA_EVM_CHAINS.MOONBEAM, 1284), NEXERA_EVM_CHAINS.MOONRIVER, 1285), NEXERA_EVM_CHAINS.OPTIMISM, 10), NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, 69), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, 11155420), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_CHAIN_VALUES, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, 1291), NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp"), NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001"), NEXERA_STARKNET_CHAINS.STARKNET_MAIN, "0x534e5f4d41494e"), NEXERA_STARKNET_CHAINS.STARKNET_SEPOLIA, "0x534e5f5345504f4c4941"));
|
|
2668
|
-
var EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC = [NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
|
|
2669
|
-
var ACTIVE_EVM_CHAIN_VALUES = [NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB,
|
|
2670
|
-
// for Bsc
|
|
2671
|
-
NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
|
|
2672
|
-
var EvmChainId = z.preprocess(function (val) {
|
|
2673
|
-
return String(val);
|
|
2674
|
-
}, z["enum"](ACTIVE_EVM_CHAIN_VALUES).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
|
|
2675
|
-
/////////////////////////////////////////
|
|
2676
|
-
// Polygon //
|
|
2677
|
-
/////////////////////////////////////////
|
|
2678
|
-
|
|
2679
|
-
var POLYGON_NETWORK_NAMES = ["main", "amoy"];
|
|
2680
|
-
var PolygonNetworkNames = z["enum"](POLYGON_NETWORK_NAMES);
|
|
2681
|
-
/////////////////////////////////////////
|
|
2682
|
-
// TEZOS //
|
|
2683
|
-
/////////////////////////////////////////
|
|
2684
|
-
|
|
2685
|
-
var NEXERA_TEZOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "Tezos Mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "Tezos Ghostnet");
|
|
2686
|
-
var NEXERA_TEZOS_CHAIN_NAMES_LIST = Object.values(NEXERA_TEZOS_CHAIN_NAMES);
|
|
2687
|
-
var NEXERA_TEZOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp");
|
|
2688
|
-
var ACTIVE_TEZOS_CHAIN_VALUES = [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
|
|
2689
|
-
var TezosChainId = z.preprocess(function (val) {
|
|
2690
|
-
return String(val);
|
|
2691
|
-
}, z["enum"](ACTIVE_TEZOS_CHAIN_VALUES).describe("a numeric value that identifies the chain of the address. There are many sites that retrieve information on chainIDs such as <a href='https://chainlist.org/'>https://chainlist.org</a>."));
|
|
2692
|
-
/////////////////////////////////////////
|
|
2693
|
-
// COSMOS //
|
|
2694
|
-
/////////////////////////////////////////
|
|
2695
|
-
|
|
2696
|
-
var COSMOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "Cosmos Mainnet"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "Cosmos Testnet");
|
|
2697
|
-
var COSMOS_CHAIN_NAMES_LIST = Object.values(COSMOS_CHAIN_NAMES);
|
|
2698
|
-
var COSMOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001");
|
|
2699
|
-
var ACTIVE_COSMOS_CHAIN_VALUES = [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
|
|
2700
|
-
var CosmosChainId = z.preprocess(function (val) {
|
|
2701
|
-
return String(val);
|
|
2702
|
-
}, z["enum"](ACTIVE_COSMOS_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
|
|
2703
|
-
/////////////////////////////////////////
|
|
2704
|
-
// STARKNET //
|
|
2705
|
-
/////////////////////////////////////////
|
|
2706
|
-
|
|
2707
|
-
var NEXERA_STARKNET_CHAIN_NAMES = {
|
|
2708
|
-
STARKNET_MAIN: "Starknet Mainnet",
|
|
2709
|
-
STARKNET_SEPOLIA: "Starknet Sepolia"
|
|
2710
|
-
};
|
|
2711
|
-
var NEXERA_STARKNET_CHAIN_VALUES = {
|
|
2712
|
-
STARKNET_MAIN: "0x534e5f4d41494e",
|
|
2713
|
-
STARKNET_SEPOLIA: "0x534e5f5345504f4c4941"
|
|
2714
|
-
};
|
|
2715
|
-
var NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = [NEXERA_STARKNET_CHAIN_VALUES.STARKNET_MAIN, NEXERA_STARKNET_CHAIN_VALUES.STARKNET_SEPOLIA];
|
|
2716
|
-
var StarknetChainId = z.preprocess(function (val) {
|
|
2717
|
-
return String(val);
|
|
2718
|
-
}, z["enum"](NEXERA_ACTIVE_STARKNET_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
|
|
2719
|
-
/////////////////////////////////////////
|
|
2720
|
-
// MERGED //
|
|
2721
|
-
/////////////////////////////////////////
|
|
2722
|
-
|
|
2723
|
-
var BlockchainId = z.union([EvmChainId, TezosChainId, CosmosChainId, StarknetChainId]);
|
|
2724
|
-
|
|
2725
2719
|
/////////////
|
|
2726
2720
|
// EIP-155 //
|
|
2727
2721
|
/////////////
|
|
@@ -3229,4 +3223,4 @@ var WalletSignatureData = WalletSignatureResponse.and(z.object({
|
|
|
3229
3223
|
blockchainId: BlockchainId.optional()
|
|
3230
3224
|
}));
|
|
3231
3225
|
|
|
3232
|
-
export { TezosSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, TxHash as D, EVM_BLOCK_TIME as E, EIP155Signature as F, FunctionCallData as G, shortAddress as H, AptosAddress as I, AptosSignature as J, StarknetAddress as K, StarknetSignature as L, PolkadotAddress as M, NEXERA_EVM_CHAINS as N, PolkadotSignature as O, POLYGON_NETWORK_NAMES as P, CosmosAddress as Q, CosmosSignature as R, StarknetChainId as S, TezosChainId as T, TezosImplicitAddress as U, TezosContractAddress as V, TezosAddress as W, TezosEntrypointName as X, EdSignature as Y, SpSignature as Z, P2Signature as _, NEXERA_TEZOS_CHAINS as a,
|
|
3226
|
+
export { TezosSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, TxHash as D, EVM_BLOCK_TIME as E, EIP155Signature as F, FunctionCallData as G, shortAddress as H, AptosAddress as I, AptosSignature as J, StarknetAddress as K, StarknetSignature as L, PolkadotAddress as M, NEXERA_EVM_CHAINS as N, PolkadotSignature as O, POLYGON_NETWORK_NAMES as P, CosmosAddress as Q, CosmosSignature as R, StarknetChainId as S, TezosChainId as T, TezosImplicitAddress as U, TezosContractAddress as V, TezosAddress as W, TezosEntrypointName as X, EdSignature as Y, SpSignature as Z, P2Signature as _, NEXERA_TEZOS_CHAINS as a, PolygonIdInitialized as a$, CardanoAddress as a0, CardanoSignature as a1, BlockchainAddress as a2, BlockchainSignature as a3, BLOCKCHAIN_NAMESPACES as a4, BlockchainNamespace as a5, BLOCKCHAIN_NAMESPACES_NAMES as a6, DISPLAYED_LOCKCHAIN_NAMESPACES as a7, DisplayedBlockchainNamespace as a8, BLOCKCHAIN_NAME_TO_NAMESPACE as a9, CustomerStatus as aA, BasicCustomerContactInformation as aB, CUSTOMERS_CHARTS as aC, CustomersChartType as aD, CUSTOMER_TABLE_COLUMNS as aE, CustomerTableColumn as aF, CUSTOMER_AUTOMATION_REASONS as aG, createBrandedSchemaId as aH, StorageId as aI, IdentityId as aJ, EmailId as aK, WalletId as aL, AppId as aM, ChallengeId as aN, TestId as aO, generateId as aP, ScenarioAuthorizationData as aQ, SdkVerificationResponseSchema as aR, CloseScreenNotification as aS, KycCompletionData as aT, KycCompletionNotification as aU, RuleEngineScenarioExecutionData as aV, OffChainScenarioExecutionData as aW, OnChainScenarioExecutionData as aX, ScenarioExecutionData as aY, ScenarioExecutionNotification as aZ, IsVerifiedNotification as a_, BLOCKCHAIN_NAMESPACE_TO_NAME as aa, coerceBoolean as ab, ENVS as ac, EnvironmentSchema as ad, UuidString as ae, ZodParse as af, shortBlockchainAddress as ag, PUBLIC_SERVICES_SCHEMA_MAP as ah, ISO3CountryCode as ai, ALPHA_2_COUNTRIES as aj, Alpha2Country as ak, countryISO3toISO2Mapping as al, countryISO2toISO3Mapping as am, isoCountriesNameFromISO2 as an, parseISO3CountryCode as ao, RiskScoreTypes as ap, RiskScoreType as aq, CustomerTypes as ar, CustomerType as as, KycOnboardingLevels as at, KycOnboardingLevel as au, KybOnboardingLevels as av, KybOnboardingLevel as aw, CustomerOnboardingLevels as ax, CustomerOnboardingLevel as ay, CustomerStatuses as az, NEXERA_COSMOS_CHAINS as b, IdentitySdkMessage as b$, OcvSdkInitialized as b0, StartCompletedNotification as b1, IdentityNotificationMessage as b2, InitialDataRequest as b3, SignatureRequest as b4, TransactionData as b5, SendTransactionRequest as b6, IdentityRequestMessage as b7, AVAILABLE_FLOWS as b8, AvailableFlow as b9, ScenarioExecutionResponse as bA, RuleResultStatuses as bB, RuleResultStatus as bC, RuleResultStatusLabels as bD, ComplianceImplementationStepsInput as bE, SimplifiedCredential as bF, GetCredentialsRequest as bG, GetCredentialsResponse as bH, PolygonIdRequestData as bI, PolygonIdRequest as bJ, PolygonIdResponseData as bK, PolygonIdResponse as bL, StartFlowRequest as bM, IsVerifiedRequest as bN, IsVerifiedResponse as bO, GetTxAuthSigRequest as bP, GetTxAuthSigResponse as bQ, GetTxAuthSigRequestTezos as bR, GetTxAuthSigResponseTezos as bS, HostRequestMessage as bT, IdentityResponseMessage as bU, WalletChallengeRequest as bV, AuthSession as bW, ChallengeResponse as bX, WalletSignResponse as bY, TxAuthDataSignatureGatingRequest as bZ, GetCustomerStatusRequest as b_, DataAvailableOnStart as ba, InitialDataResponse as bb, SignatureResponse as bc, TransactionResponse as bd, HostResponseMessage as be, ChallengeQueryOperators as bf, ChallengeQueryOperator as bg, OperatorToChallengeQueryOperator as bh, ChallengeQueryOperatorToOperator as bi, ChallengeQuerySchema as bj, ExecuteChallengeQueryInput as bk, ExecuteChallengeQueryConfig as bl, OpaChallengeQueryResponse as bm, ExecuteChallengeQueryResponse as bn, OPAChallengeQuery as bo, OnChainRuleResult as bp, OffChainZKPRuleResult as bq, SdkVerificationOutput as br, VerificationSessionStatuses as bs, VerificationSessionStatus as bt, VerificationOutput as bu, ScenarioTypes as bv, ScenarioType as bw, ScenarioStatuses as bx, ScenarioStatus as by, RuleEngineResponse as bz, NEXERA_STARKNET_CHAINS as c, ExtendedTxAuthDataSignatureResponse as c$, IdentitySdkMessageWithIdentifier as c0, TxAuthDataSignatureResponse as c1, GetCustomerStatusResponse as c2, IdentityAppMessage as c3, HostMessage as c4, IdentityMessage as c5, RequiredDataRowSchema as c6, RequiredVerificationData as c7, MediaType as c8, MediaTypePID as c9, SupportedType as cA, SupportedTypes as cB, IDInformation as cC, QueryConfig as cD, QueryType as cE, QueryConfigSimplified as cF, PartialQueryConfigSimplified as cG, QueryConfigSimplifiedParsed as cH, QueryConfiguration as cI, NonParsedQueryConfiguration as cJ, CreateQueryConfigurationInput as cK, CreateQueryConfigurationResponse as cL, UpdateQueryConfigurationInput as cM, UpdateQueryConfigurationResponse as cN, DeleteQueryConfigurationInput as cO, DeleteQueryConfigurationResponse as cP, QueryCredentialTypes as cQ, QueryCredentialType as cR, TxAuthInput as cS, TxSignatureResponse as cT, GetTxAuthDataSignatureResponse as cU, TezosTxAuthInput as cV, TezosTxSignatureResponse as cW, GetTezosTxAuthDataSignatureResponse as cX, ExtendedTxAuthInput as cY, ExtendedTezosTxAuthInput as cZ, AnyTxAuthInput as c_, ZeroKnowledgeProofRequest as ca, AuthorizationRequestMessage as cb, ProofData as cc, ZeroKnowledgeProofResponse as cd, AuthorizationResponseMessage as ce, CredentialQrCodeData as cf, AuthQrCodeData as cg, QrCodeLinkWithSchemaType as ch, parseIden3Message as ci, parseSessionIdFromUrl as cj, AllCredentialAttributes as ck, AllCredentialValues as cl, Operator as cm, ZKPOperator as cn, operatorDisplayMap as co, ARRAY_OPERATORS as cp, ArrayOperator as cq, STRING_OPERATORS as cr, StringOperator as cs, NUMERIC_OPERATORS as ct, NumericOperator as cu, BOOLEAN_OPERATORS as cv, BooleanOperator as cw, DATE_OPERATORS as cx, DateOperator as cy, SUPPORTED_TYPES as cz, NEXERA_EVM_CHAIN_NAMES as d, _defineProperty as d$, ExtendedTezosTxAuthDataSignatureResponse as d0, AnyTxAuthDataSignatureResponse as d1, ZKPRequest as d2, ZKPRequestFromZKVerifier as d3, OffChainZKP as d4, CreateAuthRequestProps as d5, CreateZKProofRequestProps as d6, AllScenarioExecutionAuthorizationData as d7, ProjectAuthorizationData as d8, OnChainZKP as d9, IdentityAppV2Web2JWT as dA, IdentityWidgetAccessToken_NEW as dB, IdentityWidgetSessionToken as dC, Web2CreateSessionParams as dD, ID3CredentialSubjectSchema as dE, IDScanCredentialSubjectSchema as dF, IDScanPassportCredentialSubjectSchema as dG, IDScanSelfieCredentialSubjectSchema as dH, OLD_IDImageCredentialSubjectSchema as dI, OLD_IDInformationCredentialSubjectSchema as dJ, OLD_ProofOfResidenceCredentialSubjectSchema as dK, OLD_SelfieImageCredentialSubjectSchema as dL, OLD_AMLScreeningsResultsCredentialSubjectSchema as dM, IDInformationCredentialSubjectSchema as dN, IDImageCredentialSubjectSchema as dO, SelfieImageCredentialSubjectSchema as dP, ProofOfResidenceCredentialSubjectSchema as dQ, GenericVerifiableCredentialSchema as dR, CredentialSchemas as dS, CredentialNames as dT, NexeraCredentialType as dU, getCredentialName as dV, CredentialType as dW, VerifiableCredential as dX, CredentialMediaType as dY, _toConsumableArray as dZ, _toArray as d_, OnChainZKPFromNexeraID as da, OnChainZKPScenarioFromCms as db, OnChainZKPPayload as dc, SCENARIO_AUTHORIZATION_STATUSES as dd, ScenarioAuthorizationStatus as de, WalletSignatureResponse as df, WalletSignatureData as dg, FLOW_TYPES as dh, FlowType as di, VerificationModes as dj, VerificationMode as dk, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as dl, IdentityDocumentCountryListOption as dm, IDENTITY_DOCUMENT_OPTIONS as dn, IdentityDocumentOptionsType as dp, PERSONAL_INFORMATION_FIELDS as dq, PersonalInformationFieldsIdentityDocuments as dr, Identifier as ds, AdditionalCustomerInformationParams as dt, IdentityWidgetAccessToken as du, OrganizationId as dv, WorkspaceId as dw, WorkflowId as dx, ExternalCustomerId as dy, IdentityAppV2Web3JWT as dz, NEXERA_EVM_CHAIN_NAMES_LIST as e, NEXERA_CHAIN_VALUES as f, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as g, EvmChainId as h, PolygonNetworkNames as i, NEXERA_TEZOS_CHAIN_NAMES as j, NEXERA_TEZOS_CHAIN_NAMES_LIST as k, NEXERA_TEZOS_CHAIN_VALUES as l, ACTIVE_TEZOS_CHAIN_VALUES as m, COSMOS_CHAIN_NAMES as n, COSMOS_CHAIN_NAMES_LIST as o, COSMOS_CHAIN_VALUES as p, ACTIVE_COSMOS_CHAIN_VALUES as q, CosmosChainId as r, NEXERA_STARKNET_CHAIN_NAMES as s, NEXERA_STARKNET_CHAIN_VALUES as t, NEXERA_ACTIVE_STARKNET_CHAIN_VALUES as u, isValidAddress as v, String0x as w, PrivateKey as x, PublicKey as y, AddressSchema as z };
|